ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

depthimage_to_laserscan image transport not synchronized

asked 2020-04-24 11:42:49 -0600

didrif14 gravatar image

updated 2022-03-20 09:50:32 -0600

lucasw gravatar image

Hello

I am trying to use the depthimage_to_laserscan package to create a scan from a kinect plugin. My rqt_graph shows that the camera and scan are connected, and I can see the laser scan in Rviz.

Here is a picture of my rqt_graph: depth_to_laser.png

Here is my launch file:

<?xml version="1.0" encoding="utf-8"?>
<launch>

    <!-- run depthimage_to_laserscan node -->
    <node pkg="depthimage_to_laserscan" type="depthimage_to_laserscan" name="depthimage_to_laserscan" >

        <remap from="image" to="/frnt_cam_lnk/depth/image_raw"/>
        <remap from="/frnt_cam_lnk/depth/camera_info" to="/frnt_cam_lnk_ir/depth/camera_info"/>
        <remap from="scan" to="/frnt_cam_lnk/scan"/>
        <param name="scan_height" value="3"/> 
        <param name="output_frame_id" value="frnt_cam_lnk"/>

    </node>

</launch>

However, I get this warning in my terminal:

[ WARN] [1587747865.753137123, 37.318000000]: [image_transport] Topics '/frnt_cam_lnk/depth/image_raw' and '/frnt_cam_lnk_ir/depth/camera_info' do not appear to be synchronized. In the last 10s:
    Image messages received:      200
    CameraInfo messages received: 10
    Synchronized pairs:           10

This causes the laserscan to update severely delayed in rviz.

Any tips will be appreaciated!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-04-28 12:57:12 -0600

didrif14 gravatar image

updated 2020-05-08 09:29:30 -0600

I found out that I had set two different update rates in the kinect plugin. The camera sensor <update_rate> was set to 20, while the plugin <updaterate> was set to 5.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-04-24 11:42:49 -0600

Seen: 522 times

Last updated: May 08 '20