Skip to content

Enable minimal changes with improved template logic #18

@tfoote

Description

@tfoote

The design of the TypeAdaptor shouldn't need this line changed.

publisher_ = this->create_publisher<std_msgs::msg::typesupport_protobuf_cpp::StringTypeAdapter>("topic", 10);

You should be able to use the

publisher_ = this->create_publisher<std_msgs::msg::String>("topic", 10);

And the compiler template logic should be able to let you publish with either data type if you've included the right headers. So I think that we're slightly off on how we have the headers/templates setup to enable this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions