WORKSHOP · STATION
Robot Coder
- Drive to B
- Drive to A
- Wait, facing B
- 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.
| # | In state | When | Go to | Row tools |
|---|
The same machine as Python
state = "toB"
while True:
act(state) # drive, or stop and wait
sleep_until_next_tick() # 10 HzSimplified: 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