Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation of a modular Strategy #12

Open
1 of 4 tasks
Terae opened this issue Nov 28, 2018 · 0 comments
Open
1 of 4 tasks

Creation of a modular Strategy #12

Terae opened this issue Nov 28, 2018 · 0 comments

Comments

@Terae
Copy link
Member

Terae commented Nov 28, 2018

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:

  • module interfacers
  • communication protocol between the robots, see Communication between robots. #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:

PhysicalRobot::Robot robot(. . .);
Strategy::Interfacers::Servos servo_interf;
servo_interf.set_position(&robot, 5, 50_deg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant