Function rmw_subscription_event_init

Function Documentation

rmw_ret_t rmw_subscription_event_init(rmw_event_t *rmw_event, const rmw_subscription_t *subscription, rmw_event_type_t event_type)

Initialize a rmw subscription event.

Parameters:
  • rmw_event[inout] to initialize

  • subscription[in] to initialize with

  • event_type[inout] for the event to handle

Returns:

RMW_RET_OK if successful, or

Returns:

RMW_RET_INVALID_ARGUMENT if invalid argument, or

Returns:

RMW_RET_UNSUPPORTED if event_type is not supported, or

Returns:

RMW_RET_ERROR if an unexpected error occurs.