__init__(self,
device,
value,
pos=None,
geometry=None,
noise=0.0)
(Constructor)
Constructor for the SensorValue object.
A SensorValue is created for each range device reading.
>>> robot.sonar[0][3]
<SensorValue>
>>> robot.sonar[0][3].value
2.354
Methods:
display() - same as .value, but can change units
angle() - same as .geometry[3], but can change units
Properties:
value - the rawvalue of the device
pos - the ID of this sensor
geometry - (origin x, origin y, origin z, th, arc in radians) of ray
noise - percentage of noise to add to reading
hit - the (x,y,z) of the position of the hit
-
|