Gazebo | Ignition | Community
Ask Your Question
0

Failed to load plugin libgazebo_ros2_control.so: libgazebo_ros2_control.so: cannot open shared object file: No such file or directory

asked 2022-11-21 07:08:32 -0500

Vincent gravatar image

Hi. Sorry for all mistakes, English is not my native language. I'm trying to spawn my robot in gazebo. The world is loaded successfully but model of robot itself is not and I have following error in terminal.

[gazebo-1] [Err] [Plugin.hh:212] Failed to load plugin libgazebo_ros2_control.so: libgazebo_ros2_control.so: cannot open shared object file: No such file or directory
[spawn_entity.py-4] [INFO] [1669073669.505081456] [urdf_spawner]: Spawn status: SpawnEntity: Successfully spawned entity [minicar]
[INFO] [spawn_entity.py-4]: process has finished cleanly [pid 10576]

I've installed my gazebo with ros2 foxy using desktop installation, after receiving this error first time I checked if this file can be found in /opt/ros/foxy/lib folder and there are no such file. I reinstall gazebo with following command

sudo apt install ros-foxy-gazebo-pkg

Didn't work ether. If first and last time than I launched it environment has been sourced with:

source /opt/ros/foxy/setup.bash

so I, honestly speaking, have no idea where the problem can be. Appreciate any help.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2022-11-21 08:08:00 -0500

Vincent gravatar image

Problem solved with sudo apt install ros-foxy-gazebo-ros2-control

edit flag offensive delete link more
0

answered 2023-01-19 08:08:49 -0500

gsisinna gravatar image

Hello, I'm using gz-sim (Garden) + ROS2 (Humble) and I couldn't find a way to start properly this plugin. I receive the following error:

[gz-2] [Err] [SystemLoader.cc:118] Failed to load system plugin: (Reason: Could not find shared library) [gz-2] - Requested plugin name: [gazebo_ros2_control] [gz-2] - Requested library name: [libgazebo_ros2_control.so]

What do I need to install for my Gazebo version?

Thanks!

edit flag offensive delete link more

Comments

Hi, sorry for the delay. I have no experience with humble, but I assume that it should be something like this: ros-humble-gazebo-ros2-control

Vincent gravatar imageVincent ( 2023-07-14 08:15:34 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2022-11-21 07:00:57 -0500

Seen: 1,522 times

Last updated: Nov 21 '22