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

two lasers with hector slam

asked 2016-05-17 06:42:39 -0500

aziz gravatar image

Hello every one

I am new with ROS i want to use to lasers with hector slam ( hokuyo and LMS) at the same time . i alreandy changed the name of the topics to scan0 and scan1

but the hector slam node is subscribed to "scan", do i need to change the names of the variables (what ares the variables that are sent to scan0 and scan1) and than i send them to scan otherwise how can i create a node to subsrcibe in two topics and than send assiciate the datas and send them back to scan

thank you .

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-05-17 07:48:42 -0500

updated 2016-05-17 07:50:16 -0500

You can publish both to the scan topic. The sensor_msgs/Laserscan message that both sensors use contain the data that the hector_mapping needs, specifically the frame IDs of the sensors. I have not tried using two sensors with hector_mapping myself, but as long as you have you transform tree set up properly I think it should work.

Alternatively, you can use the relay node of the topic_tools package to subscribe to both scan0 and scan1 and republish the data to scan, although that would result in more overhead.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-05-17 06:42:39 -0500

Seen: 189 times

Last updated: May 17 '16