-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rclcpp] Type Adaptation feature (#1557)
* initial version of type_adaptor.hpp Signed-off-by: William Woodall <[email protected]> * initial version of rclcpp::get_message_type_support_handle() Signed-off-by: William Woodall <[email protected]> * initial version of rclcpp::is_ros_compatible_type check Signed-off-by: William Woodall <[email protected]> * fixup include statement order in publisher.hpp Signed-off-by: William Woodall <[email protected]> * use new rclcpp::get_message_type_support_handle() and check in Publisher Signed-off-by: William Woodall <[email protected]> * update adaptor->adapter, update TypeAdapter to use two arguments, add implicit default Signed-off-by: William Woodall <[email protected]> * move away from shared_ptr<allocator> to just allocator, like the STL Signed-off-by: William Woodall <[email protected]> * fixes to TypeAdapter and adding new publish function signatures Signed-off-by: William Woodall <[email protected]> * bugfixes Signed-off-by: William Woodall <[email protected]> * more bugfixes Signed-off-by: William Woodall <[email protected]> * Add nullptr check Signed-off-by: Audrow Nash <[email protected]> * Remove public from struct inheritance Signed-off-by: Audrow Nash <[email protected]> * Add tests for publisher with type adapter Signed-off-by: Audrow Nash <[email protected]> * Update packages to C++17 Signed-off-by: Audrow Nash <[email protected]> * Revert "Update packages to C++17" This reverts commit 4585605. Signed-off-by: William Woodall <[email protected]> * Begin updating AnySubscriptionCallback to use the TypeAdapter Signed-off-by: Audrow Nash <[email protected]> * Use type adapter's custom type Signed-off-by: Audrow Nash <[email protected]> * Correct which AnySubscriptionCallbackHelper is selected Signed-off-by: Audrow Nash <[email protected]> * Setup dispatch function to work with adapted types Signed-off-by: Audrow Nash <[email protected]> * Improve template logic on dispatch methods Signed-off-by: Audrow Nash <[email protected]> * implement TypeAdapter for Subscription Signed-off-by: William Woodall <[email protected]> * Add intraprocess tests with all supported message types Signed-off-by: Audrow Nash <[email protected]> * Add intra process tests Signed-off-by: Audrow Nash <[email protected]> * Add tests for subscription with type adapter Signed-off-by: Audrow Nash <[email protected]> * Fix null allocator test Signed-off-by: Audrow Nash <[email protected]> * Handle serialized message correctly Signed-off-by: Audrow Nash <[email protected]> * Fix generic subscription Signed-off-by: Audrow Nash <[email protected]> * Fix trailing space Signed-off-by: Audrow Nash <[email protected]> * fix some issues found while testing type_adapter in demos Signed-off-by: William Woodall <[email protected]> * add more tests, WIP Signed-off-by: William Woodall <[email protected]> * Improve pub/sub tests Signed-off-by: Audrow Nash <[email protected]> * Apply uncrustify formatting Signed-off-by: Audrow Nash <[email protected]> * finish new tests for any subscription callback with type adapter Signed-off-by: William Woodall <[email protected]> * fix adapt_type<...>::as<...> syntax Signed-off-by: William Woodall <[email protected]> * fix explicit template instantiation of create_subscription() in new test Signed-off-by: William Woodall <[email protected]> * cpplint fix Signed-off-by: William Woodall <[email protected]> * Fix bug by aligning allocator types on both sides of ipm Signed-off-by: Audrow Nash <[email protected]> * Fix intra process manager tests Signed-off-by: Audrow Nash <[email protected]> Co-authored-by: Audrow Nash <[email protected]>
- Loading branch information
Showing
31 changed files
with
2,792 additions
and
368 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.