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

how to perform gmapping with two laser sensors attach on front and rear place of the robot ?

asked 2020-07-20 12:05:02 -0500

akshaywifi gravatar image

i am using two laser sensors to create a map via gmapping method . i already use ira laser tool package to merge data from front and rear sensor but map was looking very poor with this package . is there any other method for performing gmapping with two laser sensors . i also used multi map merger package but stuck . #ros

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-07-20 21:36:50 -0500

updated 2020-07-20 21:39:59 -0500

I am not sure about @stevemacenski's answer. Looking at the source code of gmapping it seems to be "smart" about it.

As long as your laser sources have a correct tf frame_id and your tf tree is properly set up, gmapping should be able to handle both lasers. You would just need to set up both laser nodes to output messages to gmapping's scan topic.

I have never tried it myself, so it might fail miserably. Let me know how it goes if you give it a try.

edit flag offensive delete link more

Comments

no it does'nt work . robot was blinking in rviz environment . which means robot trying to find frames which one it should be follow .

akshaywifi gravatar image akshaywifi  ( 2020-07-25 08:56:09 -0500 )edit
0

answered 2020-07-20 13:58:08 -0500

You would have to merge the scans prior to input into most all SLAM libraries in ROS. Whether you use that package or another, somehow you need to preprocess it.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2020-07-20 12:05:02 -0500

Seen: 337 times

Last updated: Jul 20 '20