ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ROS2 components tutorial fails to launch

asked 2020-12-11 15:38:16 -0600

Dereck gravatar image

I tried to follow the composition tutorial for ROS2 using the official docker images but it fails to load even the sample components. Is this a bug or did I mess something up?

Terminal #1:

$ docker run --name fox --rm -it osrf/ros:foxy-desktop
root@a32781ba07af:/# ros2 run rclcpp_components component_container
[INFO] [1607722128.302447462] [ComponentManager]: Load Library: /opt/ros/foxy/lib/
[ERROR] [1607722128.303362581] [ComponentManager]: Failed to load library: Could not load library LoadLibrary error: cannot open shared object file: No such file or directory, at /tmp/binarydeb/ros-foxy-rcutils-1.0.1/src/shared_library.c:68

Terminal #2:

$ docker exec -it fox / bash
root@a32781ba07af:/# ros2 component list
root@a32781ba07af:/# ros2 component load /ComponentManager composition composition::Talker
Failed to load component: Failed to load library: could not load library loadlibrary error: cannot open shared object file: no such file or directory, at /tmp/binarydeb/ros-foxy-rcutils-1.0.1/src/shared_library.c:68
root@a32781ba07af:/# ros2 component types
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-12-11 15:48:09 -0600

Dereck gravatar image

Using osrf/ros2:nightly-rmw works as expected.

It looks like ros:foxy-desktop has not been updated in a few months. Is this a bug and if so, where should it be reported.

edit flag offensive delete link more



You can report it here:

The osrf/ros repo still isn't as automated as the official library/ros image builds, given DockerHub deprecated triggering automated builds from official library images a year or so ago.

I'd recommend using the official repo for most uptodate images:

ruffsl gravatar image ruffsl  ( 2020-12-15 00:10:58 -0600 )edit

Question Tools

1 follower


Asked: 2020-12-11 15:38:16 -0600

Seen: 723 times

Last updated: Dec 11 '20