gazebo_ros_openni_kinect doesn't publish depth camera_info.
I'm trying to use the depthimagetolaserscan package that requires depth images and depth camerainfo. To simulate a kinect in gazebo, I used gazeborosopennikinect plugin which works perfectly except with the depth camerainfo publishing and maybe acquiring. However, the plugin does publish a camerainfo but not a depth camerainfo. Can I use the camerainfo instead of the depth camerainfo for the depthimageto_laserscan?
<gazebo reference="kinect_ros">
<save enabled="false">
<path>/tmp/camera_save_tutorial</path>
</save>
</camera>
<plugin name="kinect_ros_controller" filename="libgazebo_ros_openni_kinect.so">
<depth_camera_output>true</depth_camera_output>
<baseline>0.2</baseline>
<alwaysOn>1</alwaysOn>
<updateRate>0</updateRate>
<cameraName>kinect_ros_camera_ir</cameraName>
<imageTopicName>/kinect_ros_camera/color/image_raw</imageTopicName>
<!-- <cameraInfoTopicName>/kinect_ros_camera/depth/camera_info</cameraInfoTopicName> -->
<cameraInfoTopicName>/kinect_ros_camera/color/camera_info</cameraInfoTopicName>
<depthImageTopicName>/kinect_ros_camera/depth/image_raw</depthImageTopicName>
<!-- <depthImageInfoTopicName>/kinect_ros_camera/depth/camera_info</depthImageInfoTopicName>NOT THIS ONE -->
<depthImageCameraInfoTopicName>/kinect_ros_camera/depth/camera_info</depthImageCameraInfoTopicName>
<!-- <pointCloudTopicName>/kinect_ros_camera/depth/points</pointCloudTopicName> -->
<frameName>kinect_ros</frameName>
<pointCloudCutoff>0.5</pointCloudCutoff>
<pointCloudCutoffMax>3.0</pointCloudCutoffMax>
<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>
<visualize>true</visualize>
Asked by Sultan Saryah on 2023-07-10 01:41:58 UTC
Answers
It turns out that the depth/camera_info doesn't start publishing until something subscribes to color/camera_info which is weird. Also, the data of the massages inside the depth/camera_info and the color_camera_info are the same. Are they suppose to be the same?
Asked by Sultan Saryah on 2023-07-15 03:47:29 UTC
Comments