rmw implementation error running ros2 examples
I tried to run the basic rclcpp examples from the colcon tutorial https://index.ros.org/doc/ros2/Tutori...
after installing ROS2 Crystal Clemmys regarding to this instructions https://index.ros.org/doc/ros2/Instal... on my Ubuntu 18.04 system.
running the subscriber example
ros2 run examples_rclcpp_minimal_subscriber subscriber_member_function
i end up in an error:
terminate called after throwing an instance of 'rclcpp::exceptions::RCLError'
what(): failed to initialized rcl init options: failed to load shared library of rmw implementation. Exception: Cannot load library: /opt/ros/crystal/lib/librmw_fastrtps_cpp.so: undefined symbol: _ZTVN8eprosima8fastrtps27DataRepresentationQosPolicyE, at /tmp/binarydeb/ros-crystal-rmw-implementation-0.6.1/src/functions.cpp:136, at /tmp/binarydeb/ros-crystal-rcl-0.6.5/src/rcl/init_options.c:55
any hints on how to solve this?
same thing happening to me too today. I left some terminals open from yesterday and running things there was ok. as soon as i sourced a new environment i got the same error.