Repository navigation
Closed
Description
The goal is to avoid the need for separate libraries of * (e.g. rclcpp, user land code) for each typesupport. Also the obscure method to include the "right" headers using include_directories to point to typesupport specific impl folders should be removed. This requires the following high level steps:
- Create "meta" typesupport which knows about all other typesupports, all calls go through this, the requested typesupport is dispatched at runtime (opening the specific typesupport with
dlopen). - The "meta" typesupport can directly refer to a single specific typesupport if only one is supported by all available rmw implementations.
- Create "meta" rmw in a similar fashion
More detailed list of necessary changes:
- "meta" typesupport for C++ typesupport C++ reloaded rosidl#182
- "meta" typesupport for C typesupport c reloaded rosidl_typesupport#6
- remove dependency of rmw implementations on "meta" typesupport remove dependency on rosidl_typesupport_* rmw_fastrtps#85
- expose symbols for specific typesupports through unified header files expose typesupport symbol rosidl#196
- optionally bypass "dispatch" and
dlopenif only one typesupport is matching the available rmw implementations, the "meta" typesupports need to depend on the rmw implementations for this shortcut for single typesupport rosidl_typesupport#7- after this we can try to optionally support linking statically
- make poco actually optional make poco optional rosidl_typesupport#8
- "meta" rmw implementation make rmw_implementation a meta rmw implementation rmw_implementation#17
- remove rmw specific targets with single targets using
rmw_implementation, tests need to set the environment variableRMW_IMPLEMENTATIONto test with non-default implementations use rmw implementation rcl#106 - cleanup
- remove
RCLPY_IMPLEMENTATIONlogic fromrclpyuse rmw implementation rclpy#66 - remove obsolete CMake functions from
rcl/rclcppuse rmw implementation rcl#106 use rmw implementation rclcpp#302 - replace loading mechanism for the rmw implementation in rclpy with something less complex remove obsolete parts from import machinery rosidl#202
- avoid building rmw specific test targets, some test classes use the rmw name to generate unique test results though
- https://github.com/ros2/system_tests/blob/5617961025fa9a71fe8c1ec9fdd256801b534107/test_communication/CMakeLists.txt#L301
- https://github.com/ros2/system_tests/blob/5617961025fa9a71fe8c1ec9fdd256801b534107/test_rclcpp/CMakeLists.txt#L96-L134
- remove
- Update docs / tutorials / wiki
- Update
rmw_openspliceto at least build again update typesupport rmw_opensplice#161 - deduplicate code (e.g.
rosidl_typesupport_c|cpp/type_support_map.h, CMake)
Metadata
Metadata
Assignees
Labels
No labels
Activity
dirk-thomas commentedon Jan 9, 2017
I have updated the two wiki pages I found with instructions to choose the rmw implementation using the new environment variable:
I kept the previous information for beta 1 and before in subsections.
dirk-thomas commentedon Jan 31, 2017
I have addresses almost all the bullets by now.
The two packages
test_communicationandtest_rclcppbuild several tests for each RMW impl. But since the gtests use a define of the rmw impl. name to make the results unique they can't be replaced with a single binary easily.Regarding the duplicated code in C and C++ typesupport packages (especially the CMake code) I will not try to deduplicate this as part of this endeavor. While it would certainly be nice it has been that way for a long time so I don't want to spend any time on this now.