I have been trying to get the kinect sensor to work in gazebo 1.9 with ROS Groovy from the following tutorial, http://gazebosim.org/wiki/Tutorials/1.9/ROS_Motor_and_Sensor_Plugins#Openni_Kinect
But I keep getting the following error.
Error [Model.cc:761] Model[robot] is attempting to load a plugin, but detected an incorrect
plugin type. Plugin filename[libgazebo_ros_openni_kinect.so] name[head_camera_controller]
gzserver: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr<T>::operator->()
const [with T = gazebo::sensors::Sensor]: Assertion `px != 0' failed.
In my URDF, I have the following listed at the end of the file after gazebo robot joint are referenced.
<gazebo>
<plugin name="head_camera_controller" filename="libgazebo_ros_openni_kinect.so">
<baseline>0.2</baseline>
<alwaysOn>true</alwaysOn>
<updateRate>1.0</updateRate>
<cameraName>head_camera_ir</cameraName>
<imageTopicName>/head_camera/depth/image_raw</imageTopicName>
<cameraInfoTopicName>/head_camera/depth/camera_info</cameraInfoTopicName>
<depthImageTopicName>/head_camera/depth/image_raw</depthImageTopicName>
<depthImageInfoTopicName>/head_camera/depth/camera_info</depthImageInfoTopicName>
<pointCloudTopicName>/head_camera/depth/points</pointCloudTopicName>
<frameName>/head_camera</frameName>
<pointCloudCutoff>0.5</pointCloudCutoff>
<distortionK1>0.00000001</distortionK1>
<distortionK2>0.00000001</distortionK2>
<distortionK3>0.00000001</distortionK3>
<distortionT1>0.00000001</distortionT1>
<distortionT2>0.00000001</distortionT2>
<CxPrime>0</CxPrime>
<Cx>0</Cx>
<Cy>0</Cy>
<focalLength>0</focalLength>
<hackBaseline>0</hackBaseline>
</plugin>
</gazebo>
Any ideas as to why I am getting this error?
It seems that I have an issue with gazebo sensor plugins. The joint controller plugins are working fine though...
Originally posted by ncr7 on Gazebo Answers with karma: 38 on 2013-10-12
Post score: 1