Skip to content

Remove asymmetry in subscribing/publishing serialized messages #532

@Martin-Idel-SI

Description

@Martin-Idel-SI

Small Feature request

Remove asymmetry in subscribing/publishing to serialized message

Current behavior

I can subscribe to a serialized message directly by calling create_subscription with a callback of the form

[](std::shared_ptr<rcutils_char_array_t> msg) { ... }

However, I call publish handing in a raw pointer:

publish(const rcl_serialized_message_t * serialized_msg)

Improved behavior

I can call publish also by handing in a shared_ptr of a serialized message.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions