How to use libgazebo_ros_camera.so in gazebo (urdf)
I was using a .model file in gazebo with a libgazebo_ros_camera.so camera. But for the PR2 controllers I needed to switch to urdf file. I am now using the libgazebo_ros_prosilica.so camera. But the performance of the tracking of markers using ar_pose seems worse. Therefore I want to try the libgazebo one again. But I cannot get a good urdf description of it. How can I convert this model code to urdf syntax?
<sensor name='camera' type='camera' always_on='1' update_rate='30' visualize='true'>
<camera>
<horizontal_fov angle='1.57079633'/>
<image width='640' height='480' format='R8G8B8'/>
<clip near='0.1' far='100'/>
</camera>
<plugin name="camera_plugin" filename="libgazebo_ros_camera.so">
<alwaysOn>true</alwaysOn>
<imageTopicName>image_raw</imageTopicName>
<cameraInfoTopicName>camera_info</cameraInfoTopicName>
<updateRate>30.0</updateRate>
<cameraName>usb_cam</cameraName>
<frameName>/robot_camera_link</frameName>
<CxPrime>320.5</CxPrime>
<Cx>320.5</Cx>
<Cy>240.5</Cy>
<hackBaseline>0</hackBaseline>
<focalLength>320.000101</focalLength>
<distortionK1>0.0</distortionK1>
<distortionK2>0.0</distortionK2>
<distortionK3>0.0</distortionK3>
<distortionT1>0.0</distortionT1>
<distortionT2>0.0</distortionT2>
</plugin>
</sensor>
hey. Did you solve your issue? I am looking for a camera plugin that could publish pointcloud2, and I used the depth_camera plugin instead. Please update on your problem; which might be solve my problem.Thank you
I use the description like the one below with libgazebo_ros_prosilica.so instead of libgazebo_ros_camera. But it is not a depth camera.
could I ask you, what is that <CxPrime> means?
CxPrime is an intrisic parameter of the camera. Not sure what it stands for, cx is the distance to the optical center.