Tuesday, February 1, 2011

Exercise 1, Task 1. Hello World!

A simple and easy task is to tell the robot to go forward, turn and get back.
The code is:

fwd 1.5 @v0.3
turn 180
fwd 1.5 @v0.3

That means: go forward 1.5m at the velocity 0.3m/s, turn around 180 degrees and the same length back.

Here is the result in the simulator.




Notice that the simulator includes movement errors; i.e. the returning position is slightly offset.

No comments:

Post a Comment