State¶
Immutable snapshots and commands exchanged between the engine and your code.
state
¶
Command
dataclass
¶
RobotState
dataclass
¶
RobotState(
id,
x,
y,
theta,
v=0.0,
omega=0.0,
type="differential",
radius=0.1375,
battery=100.0,
goal=None,
)
Immutable snapshot of a single B-bot at a given timestep.
goal is the robot's current waypoint as a tuple, either (x, y) or
(x, y, theta); None when the robot has no active target.