How to compile the Connext DDS with ROS2
Hi, I followed the instructions from https://github.com/ros2/ros2/wiki/Lin... , in particular I installed Connext DDS packages:
sudo apt install -q -y \
rti-connext-dds-5.3.1 # from repo.ros2.org
Then I compiled ROS2, and it seems that rmw_connext_cpp compiled fine, because librwm_connext_cpp.so
has been built.
Starting >>> rmw_implementation_cmake
Finished <<< connext_cmake_module [3.83s]
However, ROS2 prints the following:
$ RMW_IMPLEMENTATION=rmw_connext_cpp ros2 run demo_nodes_py listener
[ERROR] [rcl]: Error getting RMW implementation identifier / RMW implementation not installed (expected identifier of 'rmw_connext_cpp'), exiting with 1.
The binary ros2 is within the compiled ros sources: /ros2_ws/install/ros2cli/bin/ros2
.
Did you source the Connext specific script before invoking the build as mentioned in the instructions ( https://github.com/ros2/ros2/wiki/Lin...
setenv_ros2rti.bash is called from bash.bashrc since long and connext.so has been built, but I redid all once more (this time calling the connext script directly, but setenv_ros2rti.bash does that anyway). Now it works, but what made the difference no idea.
You might want to provide a complete log of your build. Then it because possible to say what actually happened during the build.
Is compiling ROS2 same as building ros workspace (colcon build)?