Skip to content

Commit

Permalink
Add message lost event (#673)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
  • Loading branch information
ivanpauno authored Jun 17, 2020
1 parent 9b8edab commit f84592f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions rcl/include/rcl/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ typedef enum rcl_subscription_event_type_t
RCL_SUBSCRIPTION_REQUESTED_DEADLINE_MISSED,
RCL_SUBSCRIPTION_LIVELINESS_CHANGED,
RCL_SUBSCRIPTION_REQUESTED_INCOMPATIBLE_QOS,
RCL_SUBSCRIPTION_MESSAGE_LOST,
} rcl_subscription_event_type_t;

/// rmw struct.
Expand Down
3 changes: 3 additions & 0 deletions rcl/src/rcl/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ rcl_subscription_event_init(
case RCL_SUBSCRIPTION_REQUESTED_INCOMPATIBLE_QOS:
rmw_event_type = RMW_EVENT_REQUESTED_QOS_INCOMPATIBLE;
break;
case RCL_SUBSCRIPTION_MESSAGE_LOST:
rmw_event_type = RMW_EVENT_MESSAGE_LOST;
break;
default:
RCL_SET_ERROR_MSG("Event type for subscription not supported");
return RCL_RET_INVALID_ARGUMENT;
Expand Down

0 comments on commit f84592f

Please sign in to comment.