SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
|
A data structure that stores normal command message. More...
#include <CommandManagement.hh>
Public Member Functions | |
CommandPro () | |
Constructor. | |
CommandPro (CommandPtr command) | |
Constructor. More... | |
CommandPro (CommandPtr command, unsigned int timer) | |
Constructor. More... | |
~CommandPro () | |
Destructor. | |
void | SetTimer (unsigned int timer) |
Set a timer for the current command. More... | |
void | SetCondition (string condition) |
Set condition string of the current command. More... | |
void | SetDependency (string dependency) |
Set dependency string of the current command. More... | |
void | SetSpecialCommand (SpecialCommand specialcommand) |
Make current command a special command. More... | |
Public Attributes | |
CommandPtr | ActualCommandMessage |
A pointer of the CommandMessage object. | |
bool | TimeBased |
Flag indicates whether the current command is a time based command. | |
unsigned int | TimeInterval |
Timer of the current command, unit: msec. | |
bool | ConditionCommand |
Flag indicates whether this command has a condition. | |
string | ConditionID |
The condition string. | |
bool | ConditionOnOtherCommand |
Flag indicates whether this command has a dependency. | |
string | Dependency |
The dependency string. | |
bool | SpecialCommandFlag |
Flag indicates whether this command is a special command. | |
SpecialCommand | Command |
Special command object. | |
A data structure that stores normal command message.
gazebo::CommandPro::CommandPro | ( | CommandPtr | command | ) |
Constructor.
command | A smart pointer of the CommandMessage object |
gazebo::CommandPro::CommandPro | ( | CommandPtr | command, |
unsigned int | timer | ||
) |
Constructor.
command | A smart pointer of the CommandMessage object |
timer | Timer of the time-based command, unit: msec |
void gazebo::CommandPro::SetCondition | ( | string | condition | ) |
Set condition string of the current command.
condition | Condition string |
void gazebo::CommandPro::SetDependency | ( | string | dependency | ) |
Set dependency string of the current command.
dependency | Dependency string |
void gazebo::CommandPro::SetSpecialCommand | ( | SpecialCommand | specialcommand | ) |
Make current command a special command.
specialcommand | A specialcommand object |
void gazebo::CommandPro::SetTimer | ( | unsigned int | timer | ) |
Set a timer for the current command.
timer | A timer, unit: msec |