Skip to content

Commit 0ec13a2

Browse files
ivanpaunoahcorde
authored andcommitted
Add message lost event (#673)
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
1 parent 881324b commit 0ec13a2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

rcl/include/rcl/event.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ typedef enum rcl_subscription_event_type_t
3939
RCL_SUBSCRIPTION_REQUESTED_DEADLINE_MISSED,
4040
RCL_SUBSCRIPTION_LIVELINESS_CHANGED,
4141
RCL_SUBSCRIPTION_REQUESTED_INCOMPATIBLE_QOS,
42+
RCL_SUBSCRIPTION_MESSAGE_LOST,
4243
} rcl_subscription_event_type_t;
4344

4445
/// rmw struct.

rcl/src/rcl/event.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ rcl_subscription_event_init(
118118
case RCL_SUBSCRIPTION_REQUESTED_INCOMPATIBLE_QOS:
119119
rmw_event_type = RMW_EVENT_REQUESTED_QOS_INCOMPATIBLE;
120120
break;
121+
case RCL_SUBSCRIPTION_MESSAGE_LOST:
122+
rmw_event_type = RMW_EVENT_MESSAGE_LOST;
123+
break;
121124
default:
122125
RCL_SET_ERROR_MSG("Event type for subscription not supported");
123126
return RCL_RET_INVALID_ARGUMENT;

0 commit comments

Comments
 (0)