Failed to load plugin libgazebo_ros_openni_kinect.so while using Kinect with Gazebo and ROS
I recently upgraded to Ubuntu 18.04. Earlier, I had ROS Kinetic but after porting to ROS Melodic, sensor plugins for both Hokuyo and Kinect are not working. This is the whole error:
adi99@adi99:~$ rosrun gazebo_ros gazebo --verbose Gazebo multi-robot simulator, version 9.11.0 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org
[Msg] Waiting for master. [Msg] Connected to gazebo master @ http://127.0.0.1:11345 [Msg] Publicized address: 192.168.0.105 [Wrn] [msgs.cc:1852] Conversion of sensor type[depth] not supported. [Wrn] [msgs.cc:1852] Conversion of sensor type[depth] not supported. [Err] [Plugin.hh:187] Failed to load plugin libgazebo_ros_openni_kinect.so: libavdevice-ffmpeg.so.56: cannot open shared object file: No such file or directory [Wrn] [Publisher.cc:141] Queue limit reached for topic /gazebo/default/pose/local/info, deleting message. This warning is printed only once. [Wrn] [Publisher.cc:141] Queue limit reached for topic /gazebo/default/physics/contacts, deleting message. This warning is printed only once.
I followed the tutorial on this link to integrate Kinect with gazebo: http://gazebosim.org/tutorials/?tut=r...
When I try to install the missing library by sudo apt-get install, the output shows 'Unable to locate package'. Thank You. Any help would be appreciated.
Have you looked at plugin installation here.