ClubRobotInsat / info-archive

Code informatique du Club Robot INSA Toulouse
MIT License
3 stars 1 forks source link

Creation of a modular Strategy #12

Open Terae opened 5 years ago

Terae commented 5 years ago

We need to set up a Strategy which is able to take in charge

Work to be done:

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:

PhysicalRobot::Robot robot(. . .);
Strategy::Interfacers::Servos servo_interf;
servo_interf.set_position(&robot, 5, 50_deg);