2 Robots Meeting Up

From FIRE Wiki
Revision as of 18:02, 20 May 2011 by Som (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is the second lab that follows after Lesson 8 of the Lesson Curriculum. The initial positions of both robots are known, and one robot has to compute the actions required in order for both robots to meet-up, such that both robots travel the minimum possible distance.

To do so, each robot has to turn a certain amount to face each other, and then both robots move forward to each cover half the distance between them. These actions, once computed by one robot, is communicated to the other robot, so that both robots perform the actions simultaneously.

This lab's purpose is both to reinforce Lessons 1-8, and also to reinforce geometry concepts. The arc-tangent function (atan) is used to compute the angles that the robots have to turn to face each other. The Pythagoras' theorem is then used to compute the distance between both robots. Finally, multi-robot communication concepts have to be applied so that the robots perform the actions simultaneously.