Skip to content

Interface for a function that returns the serialized size of a message #363

Description

@kfabian

Feature request

Feature description

I noticed that none of the major rmw implementations implements rmw_get_serialized_message_size. I wonder if that is the case because it works on the rosidl_runtime_c__Sequence__bound struct and not an actual instance of a message. I could not really grasp how the rosidl_runtime_c__Sequence__bound should be used and to what structure * data should be pointing to.

Implementation considerations

Maybe it would be helpful to add a function interface that works on an actual instance of a message, that should be more straightforward to implement, e.g. for cyclonedds similar to this code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions