ros2/rmw_cyclonedds

Error getting RMW implementation identifier

deepak-anzo opened this issue · 6 comments

Bug report

[rcl]: Error getting RMW implementation identifier / RMW implementation not installed (expected identifier of 'rmw_cyclonedds_cpp'), with error message 'failed to load shared library 'librmw_cyclonedds_cpp.so' due to dlopen error: libddsc.so.0: cannot open shared object file: No such file or directory, at ./src/shared_library.c:99, at ./src/functions.cpp:65', exiting with 1., at ./src/rcl/rmw_implementation_identifier_check.c:139

Required Info:

  • Operating System:
    • OS and version LUbuntu 22.04 ROS2 HUMBLE
  • Installation type:
  • Version or commit hash:
  • DDS implementation:
  • Client library (if applicable):
    • <! rclcpp -->

Can you give some information on what steps you followed to install Humble?

Thank you for your reply.
I followed the the official documentation
https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html

So it kind of looks like the installation isn't correct, for some reason. Can you tell us:

  1. What commands you were running at the time
  2. What ls /opt/ros/humble/lib/x86_64-linux-gnu/libddsc* shows?

I have the same situation, you can try sudo apt-get install -y ros-humble-rmw-cyclonedds-cpp

I found the solution for this.
Just put /opt/ros/humble/lib/x86_64-linux-gnu in your ld config file.