Today has no practice yet.0/30 daily XP0 Sparks0 XP

WORKSHOP · STATION

Robot Coder

AB3 m
  1. Drive to B
  2. Drive to A
  3. Wait, facing B
  4. Wait, facing A

PATROL ROBOT

Starts in “Drive to B” at A. Every 0.1 s it checks the rows for its current state, top to bottom, and takes the first whose condition is true. The sensor sees 0.6 m ahead.

TRANSITIONS
#In stateWhenGo toRow tools
The same machine as Python
state = "toB"
while True:
    act(state)  # drive, or stop and wait
    sleep_until_next_tick()  # 10 Hz

Simplified: the robot moves 0.5 m/s with no braking distance; people appear at fixed times.

t = 0.00 s
x m0.00visits 0
READY