0
$\begingroup$

Rosanswers logo

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


Originally posted by naka on ROS Answers with karma: 18 on 2015-03-04

Post score: 0

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

As mentioned by Lorenz on this thread: http://answers.ros.org/question/37794/using-multiple-laserscan/ 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.


Originally posted by Valts with karma: 41 on 2015-03-04

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$
0
$\begingroup$

Rosanswers logo

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).


Originally posted by ahendrix with karma: 47576 on 2015-03-04

This answer was NOT ACCEPTED on the original site

Post score: 1


Original comments

Comment by naka on 2015-03-04:
I want to move my robot with the navigation stack! The sick_tim sensors are installed in front and back of the robot.

Comment by ahendrix on 2015-03-05:
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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.