This type of robots implements communication with a real-world robot.
Although this is a SimObject, it doesn’t move by itself. Use set_pose() to move the robot.
Stops the robot, saving the state
Restarts the robot from the saved state
Initiate communication with the real robot and get state info back.
The robot is a SimObject that implements drawing and information functions to interface with supervisor.
Draw the sensors that this robot has
Return the robot information structure, including sensor readings and shape information
Set drive inputs in the format needed by this robot
The robot defined by this class is a simulated robot, and implements its own motion in move().
To make your robot move, implement move().
To make you robot controllable, implement set_inputs().
If your robot has sensors that can be drawn in the view, implement draw_sensors().
Get the external sensors of the robot as a list. This function is used to update the sensor readings in proximity sensors.
Move the robot for a time interval dt.
The simulator can run with any robot and any supervisor, as long as they implement the necessary methods in the Robot and Supervisor base classes. However, not any supervisor can work with any robot. Specifically, the supervisor has to correctly use the output of robot.Robot.get_info() and supply the correct input to robot.Robot.set_inputs().
When the simulation is run, the supervisor does not have a direct access to the robot. All the information that the supervisor can get, is the output of get_info(). It is important when implementing a robot to put all the necessary information about the robot into this structure. This includes the sensor readings and the geometry of the robot.
The only way that the supervisor can influence the robot, is through the set_inputs() method. The supervisor has to produce the correct output from its execute() method. This output will be fed to the robot at the end of the cycle.
Base superclass for sensor objects
Returns the value with an added normal noise
The return value is normally distributed around value with a standard deviation sigma
A sensor that moves together with its parent object.
The sensor is assumed to be attached to parent at pose in local coordinates.
Get the pose of the sensor in the parent (robot) coordinates.
Create a proximity sensor mounted on robot at pose. The geometry is a (rmin, rmax, angle) tuple.
Return the envelope of the sensor
Returns the distance to the value using sensor calculations
Returns the distance instance
Returns the reading value
updates all the distances from the reading
draws the sensor simobject
Gets the distance to another simobject returns distance in meters or None if not in contact