Module io :: Class SensorInput
[frames] | no frames]

Class SensorInput

Represents one set of sensor readings from the robot, incluing sonars, odometry, and readings from the analogInputs

Instance Methods
 
__init__(self, cheat=False)
 
__str__(self)
Instance Variables
  sonars
List of 8 sonar readings, in meters.
  odometry
Instance of util.Pose, representing robot's pose in the global frame if cheat = True and the odometry frame if cheat = False.
  analogInputs
List of 4 analog input values.
Method Details

__init__(self, cheat=False)
(Constructor)

 
Parameters:
  • cheat - If True, then get odometry readings in absolute coordinate frame of simulated world. Otherwise, odometry frame is defined by robot's initial pose when powered on or simulated world is reset. Should never be set to True on the real robot.