-
Notifications
You must be signed in to change notification settings - Fork 416
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 <william@osrfoundation.org> * initial version of rclcpp::get_message_type_support_handle() Signed-off-by: William Woodall <william@osrfoundation.org> * initial version of rclcpp::is_ros_compatible_type check Signed-off-by: William Woodall <william@osrfoundation.org> * fixup include statement order in publisher.hpp Signed-off-by: William Woodall <william@osrfoundation.org> * use new rclcpp::get_message_type_support_handle() and check in Publisher Signed-off-by: William Woodall <william@osrfoundation.org> * update adaptor->adapter, update TypeAdapter to use two arguments, add implicit default Signed-off-by: William Woodall <william@osrfoundation.org> * move away from shared_ptr<allocator> to just allocator, like the STL Signed-off-by: William Woodall <william@osrfoundation.org> * fixes to TypeAdapter and adding new publish function signatures Signed-off-by: William Woodall <william@osrfoundation.org> * bugfixes Signed-off-by: William Woodall <william@osrfoundation.org> * more bugfixes Signed-off-by: William Woodall <william@osrfoundation.org> * Add nullptr check Signed-off-by: Audrow Nash <audrow@hey.com> * Remove public from struct inheritance Signed-off-by: Audrow Nash <audrow@hey.com> * Add tests for publisher with type adapter Signed-off-by: Audrow Nash <audrow@hey.com> * Update packages to C++17 Signed-off-by: Audrow Nash <audrow@hey.com> * Revert "Update packages to C++17" This reverts commit 4585605. Signed-off-by: William Woodall <william@osrfoundation.org> * Begin updating AnySubscriptionCallback to use the TypeAdapter Signed-off-by: Audrow Nash <audrow@hey.com> * Use type adapter's custom type Signed-off-by: Audrow Nash <audrow@hey.com> * Correct which AnySubscriptionCallbackHelper is selected Signed-off-by: Audrow Nash <audrow@hey.com> * Setup dispatch function to work with adapted types Signed-off-by: Audrow Nash <audrow@hey.com> * Improve template logic on dispatch methods Signed-off-by: Audrow Nash <audrow@hey.com> * implement TypeAdapter for Subscription Signed-off-by: William Woodall <william@osrfoundation.org> * Add intraprocess tests with all supported message types Signed-off-by: Audrow Nash <audrow@hey.com> * Add intra process tests Signed-off-by: Audrow Nash <audrow@hey.com> * Add tests for subscription with type adapter Signed-off-by: Audrow Nash <audrow@hey.com> * Fix null allocator test Signed-off-by: Audrow Nash <audrow@hey.com> * Handle serialized message correctly Signed-off-by: Audrow Nash <audrow@hey.com> * Fix generic subscription Signed-off-by: Audrow Nash <audrow@hey.com> * Fix trailing space Signed-off-by: Audrow Nash <audrow@hey.com> * fix some issues found while testing type_adapter in demos Signed-off-by: William Woodall <william@osrfoundation.org> * add more tests, WIP Signed-off-by: William Woodall <william@osrfoundation.org> * Improve pub/sub tests Signed-off-by: Audrow Nash <audrow@hey.com> * Apply uncrustify formatting Signed-off-by: Audrow Nash <audrow@hey.com> * finish new tests for any subscription callback with type adapter Signed-off-by: William Woodall <william@osrfoundation.org> * fix adapt_type<...>::as<...> syntax Signed-off-by: William Woodall <william@osrfoundation.org> * fix explicit template instantiation of create_subscription() in new test Signed-off-by: William Woodall <william@osrfoundation.org> * cpplint fix Signed-off-by: William Woodall <william@osrfoundation.org> * Fix bug by aligning allocator types on both sides of ipm Signed-off-by: Audrow Nash <audrow@hey.com> * Fix intra process manager tests Signed-off-by: Audrow Nash <audrow@hey.com> Co-authored-by: Audrow Nash <audrow@hey.com>
- 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.