#include <Robots/LoBot/control/LoSpinArbiter.H>
Public Member Functions | |
Vote (float spin=0) | |
float | spin () const |
Retrieving the specified spin. |
To spin the robot, each behaviour must vote for the desired amount of rotation. These votes are represented by this inner class. In order to vote, a behaviour must instantiate this class with the new operator, fill out the voting structure properly and then pass it to the arbiter's vote() method.
Definition at line 100 of file LoSpinArbiter.H.
lobot::SpinArbiter::Vote::Vote | ( | float | spin = 0 |
) |
Filling out a speed arbiter vote object simply involves passing the desired spin amount to the constructor.
Definition at line 62 of file LoSpinArbiter.C.
float lobot::SpinArbiter::Vote::spin | ( | ) | const [inline] |
Retrieving the specified spin.
Definition at line 113 of file LoSpinArbiter.H.