state_exchanger.h
Go to the documentation of this file.
1 #ifndef STATE_EXCHANGER_H
2 #define STATE_EXCHANGER_H
3 
4 #include <map>
5 #include <ros/ros.h>
6 #include <smach_msgs/SmachContainerStatus.h>
7 #include <cpswarm_msgs/ArrayOfStates.h>
8 #include <cpswarm_msgs/StateEvent.h>
9 
10 using namespace std;
11 using namespace ros;
12 
16 typedef struct state_t {
17  string uuid;
18  string state;
19  Time stamp;
20 } state_t;
21 
25 string state;
26 
31 
35 map<string, state_t> swarm_state;
36 
40 string sm_path;
41 
42 #endif // STATE_EXCHANGER_H
string uuid
struct state_t state_t
A STATE type containing UUID and state of the corresponding CPS together with last updated time stamp...
string sm_path
The path of the smach state machine whose state shall be exchanged.
bool state_valid
Whether a valid state has been received.
string state
Current state of the CPS.
A STATE type containing UUID and state of the corresponding CPS together with last updated time stamp...
string state
map< string, state_t > swarm_state
The state of all known swarm members.


state_exchanger
Author(s): Micha Sende
autogenerated on Thu Oct 31 2019 12:13:16