rcl_action - user friendly error messages for invalid transitions (#448)

* user friendly error messages for invalid transitions

Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
This commit is contained in:
Siddharth Kucheria 2019-05-21 15:17:37 -07:00 committed by GitHub
parent 0736f93cc0
commit 9566f39d60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 3 deletions

View file

@ -93,6 +93,11 @@ typedef int8_t rcl_action_goal_state_t;
#define GOAL_STATE_ABORTED action_msgs__msg__GoalStatus__STATUS_ABORTED
#define GOAL_STATE_NUM_STATES 7
/// User friendly error messages for invalid trasntions
// Description variables in types.c should be changed if enum values change
extern const char * goal_state_descriptions[];
extern const char * goal_event_descriptions[];
/// Goal state transition events
typedef enum rcl_action_goal_event_t
{