Skip to content

Commit

Permalink
Stub for serialized message size.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <michael@openrobotics.org>
  • Loading branch information
mjcarroll committed May 1, 2019
1 parent da3b839 commit 2d3f5e1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
10 changes: 10 additions & 0 deletions rmw_fastrtps_cpp/src/rmw_serialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,14 @@ rmw_deserialize(
delete tss;
return ret == true ? RMW_RET_OK : RMW_RET_ERROR;
}

rmw_ret_t
rmw_get_serialized_message_size(
const rosidl_message_type_support_t * /*type_support*/,
const rosidl_message_bounds_t * /*message_bounds*/,
size_t * /*size*/)
{
RMW_SET_ERROR_MSG("unimplemented");
return RMW_RET_ERROR;
}
} // extern "C"
5 changes: 1 addition & 4 deletions rmw_fastrtps_cpp/src/rmw_subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ rmw_init_subscription_allocation(
{
(void) type_support;
(void) message_bounds;
// Since this feature is currently not implemented in FastRTPS, set the
// allocation pointer to NULL. The downstream `rmw_take` methods will
// ignore the value.
allocation = nullptr;
(void) allocation;
return RMW_RET_OK;
}

Expand Down
10 changes: 10 additions & 0 deletions rmw_fastrtps_dynamic_cpp/src/rmw_serialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,14 @@ rmw_deserialize(
delete tss;
return ret == true ? RMW_RET_OK : RMW_RET_ERROR;
}

rmw_ret_t
rmw_get_serialized_message_size(
const rosidl_message_type_support_t * /*type_support*/,
const rosidl_message_bounds_t * /*message_bounds*/,
size_t * /*size*/)
{
RMW_SET_ERROR_MSG("unimplemented");
return RMW_RET_ERROR;
}
} // extern "C"

0 comments on commit 2d3f5e1

Please sign in to comment.