rcl_lifecycle
master
C API providing common functionality for ROS lifecycle.
|
15 #ifndef RCL_LIFECYCLE__DATA_TYPES_H_
16 #define RCL_LIFECYCLE__DATA_TYPES_H_
20 #include "rcl_lifecycle/visibility_control.h"
104 #endif // RCL_LIFECYCLE__DATA_TYPES_H_
rcl_service_t srv_change_state
Service that allows to trigger changes on the state.
Definition: data_types.h:78
It contains the state of the lifecycle state machine.
Definition: data_types.h:30
It contains the communication interfac with the ROS world.
Definition: data_types.h:71
rcl_lifecycle_state_t * start
The value where the transition is initialized.
Definition: data_types.h:52
unsigned int id
Identifier of the state.
Definition: data_types.h:35
rcl_lifecycle_transition_map_t transition_map
Map/Associated array of registered states and transitions.
Definition: data_types.h:95
const char * label
Definition: data_types.h:48
rcl_lifecycle_state_t * goal
The objetive of the transition.
Definition: data_types.h:54
const char * label
String with state name: Unconfigured, Inactive, Active or Finalized.
Definition: data_types.h:33
rcl_lifecycle_com_interface_t com_interface
Communication interface into a ROS world.
Definition: data_types.h:97
It contains the transition map states and transitions.
Definition: data_types.h:58
rcl_lifecycle_state_t * states
States used to generate the transition map.
Definition: data_types.h:61
rcl_publisher_t pub_transition_event
Event used to publish the transitions.
Definition: data_types.h:76
rcl_lifecycle_transition_t * valid_transitions
Pointer to a struct with the valid transitions.
Definition: data_types.h:38
It contains the state machine data.
Definition: data_types.h:90
unsigned int id
Identifier of the transition.
Definition: data_types.h:50
rcl_service_t srv_get_available_states
Service that allows to get the available states.
Definition: data_types.h:82
rcl_service_t srv_get_transition_graph
Service that allows to get transitions from the graph.
Definition: data_types.h:86
rcl_service_t srv_get_state
Service that allows to get the current state.
Definition: data_types.h:80
unsigned int states_size
Number of states.
Definition: data_types.h:63
const rcl_lifecycle_state_t * current_state
Current state of the state machine.
Definition: data_types.h:93
rcl_lifecycle_transition_t * transitions
Transitions used to generate the transition map.
Definition: data_types.h:65
It contains the transitions of the lifecycle state machine.
Definition: data_types.h:44
unsigned int transitions_size
Number of transitions.
Definition: data_types.h:67
rcl_node_t * node_handle
Handle to the node used to create the publisher and the services.
Definition: data_types.h:74
rcl_service_t srv_get_available_transitions
Service that allows to get the available transitions.
Definition: data_types.h:84
unsigned int valid_transition_size
Number of valid transitions.
Definition: data_types.h:40