#include "state_exchanger.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
A ROS node that exchanges the behavioral state between CPSs in a swarm. More... | |
void | state_callback (const smach_msgs::SmachContainerStatus::ConstPtr &msg) |
Callback function for state updates. More... | |
void | swarm_state_callback (cpswarm_msgs::StateEvent msg) |
Callback function for state updates from other swarm members. More... | |
int main | ( | int | argc, |
char ** | argv | ||
) |
A ROS node that exchanges the behavioral state between CPSs in a swarm.
argc | Number of command line arguments. |
argv | Array of command line arguments. |
Definition at line 47 of file state_exchanger.cpp.
void state_callback | ( | const smach_msgs::SmachContainerStatus::ConstPtr & | msg | ) |
Callback function for state updates.
msg | State received from the CPS state machine. |
Definition at line 7 of file state_exchanger.cpp.
void swarm_state_callback | ( | cpswarm_msgs::StateEvent | msg | ) |
Callback function for state updates from other swarm members.
msg | The state received from another CPS. |
Definition at line 24 of file state_exchanger.cpp.