We need to set up a Strategy which is able to take in charge
the team color
the table environment
a reference to implement the mirror behavior
primary and secondary robots
Work to be done:
[x] module interfacers
[ ] communication protocol between the robots, see #11
[ ] make the previous code working for a single robot (allerA, mirror strategy)
[ ] centralized navigation calculation for both robots, avoiding collisions
Module interfacers
The actual robot owns its modules but all functions are not blocking (that is to say, when we ask a servo to go at a certain position, the functions directly returns without waiting until the movement is done). The strategy should implement module interfacers which are able to perform a complex blocking action.
Typically, the servos' interfacer would allow this sample code:
We need to set up a Strategy which is able to take in charge
Work to be done:
allerA
, mirror strategy)Module interfacers
The actual robot owns its modules but all functions are not blocking (that is to say, when we ask a servo to go at a certain position, the functions directly returns without waiting until the movement is done). The strategy should implement module interfacers which are able to perform a complex blocking action.
Typically, the servos' interfacer would allow this sample code: