Robotics StackExchange | Archived questions

Error with libgazebo_ros_multicamera plugin.

I wanted to add a stereo camera to my drone. So I made lanch file and drone.urdf file. And I also got the code about gazeborosmulticamera.cpp and gazeborosmulticamera.h from https://github.com/ros-simulation/gazeborospkgs. But when I launched Gazebo with the launch file, I got the following error.

[Err] [Plugin.hh:212] Failed to load plugin /home/kyungtaek/PX4-Autopilot/build/px4_sitl_default/build_gazebo/libgazebo_ros_multicamera.so: /home/kyungtaek/PX4-Autopilot/build/px4_sitl_default/build_gazebo/libgazebo_ros_multicamera.so: undefined symbol: _ZTIN6gazebo17MultiCameraPluginE

I can't understand why the error occurred, because I already had the libgazeborosmulticamera.so file in that directory.

kyungtaek@kyungtaek-15U780-PA76K:~/PX4-Autopilot$ locate libgazebo_ros_multi 
/home/kyungtaek/PX4-Autopilot/build/px4_sitl_default/build_gazebo/libgazebo_ros_multicamera.so
/opt/ros/noetic/lib/libgazebo_ros_multicamera.so

So, could you tell me how to solve this problem?

I'm using ROS noetic and Gazebo 11.

Thank you.

Asked by Kyungtaek on 2022-08-22 19:13:30 UTC

Comments

Answers