Runtime Interface Reflection: Dynamic Typesupport Wrappers #2134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is part of the runtime interface reflection subscription feature of REP-2011: ros2/ros2#1374
It is a dependency of: #2077
Depends on:
Description
This PR implements C++ wrapper classes for the rosidl_dynamic_typesupport dynamic type/type builder/data structs that help manage lifetime and type casting.
They also feature many templated functions to lessen the reading burden for any new users of dynamic typesupport.
rclcpp::dynamic_typesupport::DynamicData
rclcpp::dynamic_typesupport::DynamicMessage
rclcpp::dynamic_typesupport::DynamicMessageType
rclcpp::dynamic_typesupport::DynamicSerializationSupport
rclcpp::dynamic_typesupport::DynamicTypeBuilder
rclcpp::dynamic_typesupport::DynamicType
I also created a typesupport wrapper class that wraps the
rosidl_message_type_support_t
that should be passed into a subscription. It'll manage all the necessary lifetimes.rclcpp::dynamic_typesupport::DynamicMessageTypeSupport
Everything builds nicely, though I don't have tests written yet...