6 #ifndef _GAZEBO_COMMAND_MANAGEMENT_HH_
7 #define _GAZEBO_COMMAND_MANAGEMENT_HH_
9 #include <boost/shared_ptr.hpp>
11 #include "command_message.pb.h"
16 typedef boost::shared_ptr<command_message::msgs::CommandMessage> CommandPtr;
36 SpecialCommand(
int commandtype,
string modelname1,
string modelname2,
37 int node1,
int node2);
73 CommandPro(CommandPtr command,
unsigned int timer);
~CommandPro()
Destructor.
Definition: CommandManagement.cc:62
CommandPtr ActualCommandMessage
A pointer of the CommandMessage object.
Definition: CommandManagement.hh:89
bool SpecialCommandFlag
Flag indicates whether this command is a special command.
Definition: CommandManagement.hh:103
gazebo name space
Definition: system_gui.cc:41
A class used to store a cluster of nodes which has rigid connectivity.
Definition: SmoresModule.hh:29
void SetDependency(string dependency)
Set dependency string of the current command.
Definition: CommandManagement.cc:73
SmoresModulePtr WhichModule
Pointer of the parent SmoresModule object.
Definition: CommandManagement.hh:118
int Node1
Node id of the first module.
Definition: CommandManagement.hh:55
bool ConditionCommand
Flag indicates whether this command has a condition.
Definition: CommandManagement.hh:95
Definition: CommandManagement.hh:109
unsigned int TimeInterval
Timer of the current command, unit: msec.
Definition: CommandManagement.hh:93
SpecialCommand Command
Special command object.
Definition: CommandManagement.hh:105
A data structure that stores normal command message.
Definition: CommandManagement.hh:60
bool ConditionOnOtherCommand
Flag indicates whether this command has a dependency.
Definition: CommandManagement.hh:99
bool FinishedFlag
The indicator of whether a command has been finished.
Definition: CommandManagement.hh:122
~SpecialCommand()
Destructor.
Definition: CommandManagement.cc:29
void SetCondition(string condition)
Set condition string of the current command.
Definition: CommandManagement.cc:68
SpecialCommand()
Constructor.
Definition: CommandManagement.cc:21
~ModuleCommands()
Destructor.
Definition: CommandManagement.cc:90
void SetTimer(unsigned int timer)
Set a timer for the current command.
Definition: CommandManagement.cc:63
boost::shared_ptr< SmoresModule > SmoresModulePtr
Smart pointer of the SmoresModule object.
Definition: CommandManagement.hh:19
ModuleCommands(SmoresModulePtr which_module)
Constructor.
Definition: CommandManagement.cc:83
bool TimeBased
Flag indicates whether the current command is a time based command.
Definition: CommandManagement.hh:91
string Module2
Name of the second module.
Definition: CommandManagement.hh:53
string Dependency
The dependency string.
Definition: CommandManagement.hh:101
Definition: CommandManagement.hh:24
int Node2
Node id of the second module.
Definition: CommandManagement.hh:57
bool ReceivedFlag
The indicator of whether a command has been received by model.
Definition: CommandManagement.hh:124
int CommandType
CommandType: 0 no special command; 1 connect; 2 disconnect.
Definition: CommandManagement.hh:49
string Module1
Name of the first module.
Definition: CommandManagement.hh:51
CommandPro()
Constructor.
Definition: CommandManagement.cc:30
vector< CommandPro > CommandSquence
The vector of command array.
Definition: CommandManagement.hh:120
bool ExecutionFlag
The indicator of whether a command has been executing.
Definition: CommandManagement.hh:126
string ConditionID
The condition string.
Definition: CommandManagement.hh:97
void SetSpecialCommand(SpecialCommand specialcommand)
Make current command a special command.
Definition: CommandManagement.cc:78