dotbot.dotbot_simulator module
Dotbot simulator for the DotBot project.
-
class dotbot.dotbot_simulator.DotBotSimulator(address)[source]
Bases: object
Simulator class for the dotbot.
-
advertise()[source]
Send an adertisement message to the gateway.
-
decode_serial_input(frame)[source]
Decode the serial input received from the gateway.
-
encode_serial_output()[source]
Encode the dotbot data to be sent to the gateway.
-
update()[source]
State space model update.
-
class dotbot.dotbot_simulator.DotBotSimulatorMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases: Enum
Operation mode of the dotbot simulator.
-
AUTOMATIC = 'AUTOMATIC'
-
MANUAL = 'MANUAL'
-
class dotbot.dotbot_simulator.DotBotSimulatorSerialInterface(callback)[source]
Bases: Thread
Bidirectional serial interface to control simulated robots
- Parameters:
callback (Callable)
-
run()[source]
Listen continuously at each byte received on the fake serial interface.
-
write(bytes_)[source]
Write bytes on the fake serial.
-
class dotbot.dotbot_simulator.Waypoint(x, y)[source]
Bases: object
Waypoint class for the dotbot simulator.
- Parameters:
-
-
x: int
-
y: int
-
dotbot.dotbot_simulator.diff_drive_bot(x_pos_old, y_pos_old, theta_old, v_right, v_left)[source]
Execute state space model of a rigid differential drive robot.