Template Struct TypeAdapter< T, void, std::enable_if_t< ImplicitTypeAdapter< T >::is_specialized::value > >
Defined in File type_adapter.hpp
Inheritance Relationships
Base Type
public rclcpp::ImplicitTypeAdapter< T >
(Template Struct ImplicitTypeAdapter)
Struct Documentation
-
template<typename T>
struct TypeAdapter<T, void, std::enable_if_t<ImplicitTypeAdapter<T>::is_specialized::value>> : public rclcpp::ImplicitTypeAdapter<T> Specialization of TypeAdapter for ImplicitTypeAdapter.
This allows for things like this:
RCLCPP_USING_CUSTOM_TYPE_AS_ROS_MESSAGE_TYPE(std::string, std_msgs::msg::String); auto pub = node->create_publisher<std::string>(“topic”, 10);