13 #include <llvm/Twine.h> 15 #include "Commands/Command.h" 16 #include "Commands/CommandGroupEntry.h" 47 bool IsInterruptible()
const;
56 virtual void _Initialize();
57 virtual void _Interrupted();
58 virtual void _Execute();
62 void CancelConflicts(
Command* command);
65 std::vector<CommandGroupEntry> m_commands;
68 std::list<CommandGroupEntry> m_children;
71 int m_currentCommandIndex = -1;
void AddParallel(Command *command)
Adds a new child Command to the group.
Definition: CommandGroup.cpp:108
Definition: RobotController.cpp:14
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79
virtual void Initialize()
The initialize method is called the first time this Command is run after being started.
Definition: CommandGroup.cpp:262
void AddSequential(Command *command)
Adds a new Command to the group.
Definition: CommandGroup.cpp:33
virtual void End()
Called when the command ended peacefully.
Definition: CommandGroup.cpp:268
A CommandGroup is a list of commands which are executed in sequence.
Definition: CommandGroup.h:37
virtual void Execute()
The execute method is called repeatedly until this Command either finishes or is canceled.
Definition: CommandGroup.cpp:265
virtual bool IsFinished()
Returns whether this command is finished.
Definition: CommandGroup.cpp:273
The Command class is at the very core of the entire command framework.
Definition: Command.h:48
virtual void Interrupted()
Called when the command ends because somebody called Cancel() or another command shared the same requ...
Definition: CommandGroup.cpp:271