Skip to content

Commit

Permalink
Add stubs for new rmw interfaces (#447)
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <methylDragon@gmail.com>
  • Loading branch information
methylDragon committed Apr 8, 2023
1 parent 6510ad2 commit 2bbb809
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions rmw_cyclonedds_cpp/src/rmw_node.cpp
Expand Up @@ -3808,6 +3808,58 @@ extern "C" rmw_ret_t rmw_return_loaned_message_from_subscription(
{
return return_loaned_message_from_subscription_int(subscription, loaned_message);
}


/////////////////////////////////////////////////////////////////////////////////////////
/////////// ///////////
/////////// DYNAMIC MESSAGE TYPESUPPORT ///////////
/////////// ///////////
/////////////////////////////////////////////////////////////////////////////////////////

extern "C" rmw_ret_t rmw_take_dynamic_message(
const rmw_subscription_t * subscription,
rosidl_dynamic_typesupport_dynamic_data_t * dynamic_message,
bool * taken,
rmw_subscription_allocation_t * allocation)
{
static_cast<void>(subscription);
static_cast<void>(dynamic_message);
static_cast<void>(taken);
static_cast<void>(allocation);

RMW_SET_ERROR_MSG("rmw_take_dynamic_message: unimplemented");
return RMW_RET_UNSUPPORTED;
}

extern "C" rmw_ret_t rmw_take_dynamic_message_with_info(
const rmw_subscription_t * subscription,
rosidl_dynamic_typesupport_dynamic_data_t * dynamic_message,
bool * taken,
rmw_message_info_t * message_info,
rmw_subscription_allocation_t * allocation)
{
static_cast<void>(subscription);
static_cast<void>(dynamic_message);
static_cast<void>(taken);
static_cast<void>(message_info);
static_cast<void>(allocation);

RMW_SET_ERROR_MSG("rmw_take_dynamic_message_with_info: unimplemented");
return RMW_RET_UNSUPPORTED;
}

extern "C" rmw_ret_t rmw_get_serialization_support(
const char * serialization_lib_name,
rosidl_dynamic_typesupport_serialization_support_t ** serialization_support)
{
static_cast<void>(serialization_lib_name);
static_cast<void>(serialization_support);

RMW_SET_ERROR_MSG("rmw_get_serialization_support: unimplemented");
return RMW_RET_UNSUPPORTED;
}


/////////////////////////////////////////////////////////////////////////////////////////
/////////// ///////////
/////////// EVENTS ///////////
Expand Down

0 comments on commit 2bbb809

Please sign in to comment.