Gazebo | Ignition | Community
Ask Your Question
0

Is libgazebo_ros_multicamera.so deprecated ? [closed]

asked 2022-04-28 04:12:57 -0600

Clement gravatar image

I'd like to add a stereo camera to my robot.
I followed the Gazebo documentation and added a Multicamera sensor: https://classic.gazebosim.org/tutoria....
But when I launch Gazebo and add my robot, I get the following error: Failed to load plugin libgazebo_ros_multicamera.so.
So I checked if it was installed using locate libgazebo_ros_ and it turned out that it was not, there was only /opt/ros/foxy/lib/libgazebo_ros_camera.so.
I tried reinstalling ros-foxy-gazebo-ros-pkgs and building the package from the sources but the library is still missing.
Hence my question, is this lib (and part of the doc) deprecated ?
How I am suppose to add a stereo camera to my rover ? If I add two cameras will they be synchronized ?

I'm using ROS2 foxy and Gazebo 11

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Clement
close date 2022-05-04 08:44:12.611011

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-05-03 05:58:37 -0600

Clement gravatar image

Replacing the plugin libgazebo_ros_multicamera.so by libgazebo_ros_camera.so in the xacro definition of the sensor seems to work. At least, the images are published as well as their cameraInfo.
But the images are not published at the same timestamp even though I'm using use_sim_time, and the /clock corresponds to the time displayed in Gazebo... I also tried to launch Gazebo with the lock_step option without success.

Someone can help me with this ?
Also I'd like to understand why the libgazebo_ros_multicamera.so isn't built while the build and install ionstructions are clearly in the cmakelist.txt or gazebo_ros_pkgs.

edit flag offensive delete link more

Comments

After a reboot, everything is synchronized...

Clement gravatar imageClement ( 2022-05-04 08:43:34 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2022-04-28 04:12:57 -0600

Seen: 474 times

Last updated: May 03 '22