Define RCLCPP_USING_CUSTOM_TYPE_AS_ROS_MESSAGE_TYPE

Define Documentation

RCLCPP_USING_CUSTOM_TYPE_AS_ROS_MESSAGE_TYPE(CustomType, ROSMessageType)

Assigns the custom type implicitly to the given custom type/ros message type pair.

Note: this macro needs to be used in the root namespace. We cannot use rclcpp to protect against this, due to how GCC interprets the syntax, see: https://stackoverflow.com/a/2781537

See also

TypeAdapter

See also

ImplicitTypeAdapter