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

How to publish single sensor_msgs/LaserScan over ROS from two sick_tim sensor

asked 2015-03-04 19:34:54 -0500

naka gravatar image

How can I publish single sensor_msgs/LaserScan over ROS from two sick_tim sensor.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-03-04 22:24:12 -0500

Valts gravatar image

As mentioned by Lorenz on this thread: It seems that you can simply publish on the same topic from multiple laser scan sources, since each laser scan message includes frame and time information to differentiate. For this you have to set up your URDF correctly.

edit flag offensive delete link more

answered 2015-03-04 20:23:55 -0500

ahendrix gravatar image

You can't, and you probably don't need to.

The ROS LaserScan message represents a scan in polar coordinates - as an angle and an offset from a center point. Since your laser scanners don't have the same center point, it doesn't make sense to put data from both lasers into the same message.

If you describe your robot and your application in more detail, we can probably help you find a better way to do what you're trying to do. (For example, the navigation stack supports multiple lasers).

edit flag offensive delete link more


I want to move my robot with the navigation stack! The sick_tim sensors are installed in front and back of the robot.

naka gravatar image naka  ( 2015-03-04 22:12:51 -0500 )edit

If you're just trying to use your lasers with the navigation stack, you should use two separate topics and configure two observation sources for navigation.

ahendrix gravatar image ahendrix  ( 2015-03-04 23:06:50 -0500 )edit

Question Tools

1 follower


Asked: 2015-03-04 19:34:54 -0500

Seen: 209 times

Last updated: Mar 04 '15