Skip to content

HOW-TO: How to use custom convertFromString in Node loaded as Plugin #953

Open
@LUGGGI

Description

@LUGGGI

Hello,

I have a Node that uses a custom type. I've created the template specialization for convertFromString for that type.

When I use the Node directly, meaning registering it in the same file with factory.registerNodeType, everything works and the type gets converted.

But when I use the Node as a plugin I get the error that the specialization is not found:

You didn't implement the template specialization of convertFromString for this type: geometry_msgs::msg::Point_<std::allocator<void> >

I tried adding the template specialization to the file where I load the plugins, but that didn't work (I already thought it wouldn't work, but didn't have any other ideas.

Does anyone know how to do this? I would really appreciate it.

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