0
$\begingroup$

Rosanswers logo

Hi all! I am trying to get a map from using 2 hokuyo lidars at the same time(for a 360 degree view). So far i did 2 tries: 1)I used a launch file that uses two hokuyo_node's to publish to the same 'scan' topic. I rotated one laser's frame 180 degrees around base_link. But that gave me inconsistent maps with a lot of drifting (maps would overlap, jump from 1 place to another and so on). Changing parameters didnt really help.

2)Then I tried to use 1 hokuyo_node to publish to 'scan' and another hokuyo_node to publish to 'scan_1'. (Again I roatated one lasers frame around the base_link). I also used two hector_mapping nodes that subscribed to those 'scan' and 'scan_1' separately but published to the same 'map' topic which is used by rviz. However in rviz I can only see 1 map at a time (they switch between each other in time) with no jumping or drifting.

So now I want to use two hokuyo_nodes that publish to 'scan' and 'scan_1' separately with frames rotated correctly. After that I need to merge those scan and scan_1 topics into one topic which will be used by one hector_mapping node. My question is how can I do that? Do I have to write a c++ code ? and can anyone help me with that? I am not very experienced in programming

Update: I was finally able to merge scan topics. there is a really good package provided by ira labs as al-dev mentioned in the answer. That package basically does what I needed. Now my problem is that I cant run that package on my robot computer, however it worked on my PC.


Originally posted by kost9 on ROS Answers with karma: 97 on 2014-10-22

Post score: 2


Original comments

Comment by 2ROS0 on 2014-10-24:
Could you post more about your progress in the future? Thank you.

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

If you are talking about merging multiple laser scans to build a map using a mapping package like gmapping, you might want to check the laserscan_multi_merger node from the iralab (University of Milano Bicocca) : https://github.com/iralabdisco/ira_laser_tools


Originally posted by al-dev with karma: 883 on 2014-10-24

This answer was ACCEPTED on the original site

Post score: 3


Original comments

Comment by kost9 on 2014-11-01:\

  1. Hi thank you for the reply! I successfully used the package you suggested on my ubuntu 12.04 computer. But when I tried to do the same thing on a different computer with same ubuntu 12.04 hydro ROS I keep getting this error ( node dies)

Comment by kost9 on 2014-11-01:
2) [laserscan_multi_merger-2] process has died [pid 3884, exit code -11, cmd /home/youbot/catkin_ws/devel/lib/ira_laser_tools/laserscan_multi_merger __name:=laserscan_multi_merger __log:=/home/youbot/.ros/log/17d2a87e-61b1-11e4-b568-000bab4510aa/laserscan_multi_merger-2.log].

Comment by kost9 on 2014-11-01:
3) log file: /home/youbot/.ros/log/17d2a87e-61b1-11e4-b568-000bab4510aa/laserscan_multi_merger-2*.log

I tried reinstalling the package but nothing helps. I would appreciate it so much if you could help me with this problem

Comment by al-dev on 2014-11-01:
Hi kost9, there could be a lot of different reasons for a node to crash, we need more details to help you. If the package worked on your first computer and it solved your problem, maybe you should create another question for this.

Comment by kost9 on 2014-11-03:
al-dev So I created new question with more detail http://answers.ros.org/question/196538/node-crashes/

$\endgroup$
0
$\begingroup$

Rosanswers logo

I suggest you transform your laser scans into point clouds and then merge the two separate point clouds.

You can search for terms linke: point cloud merge (or combine, or fusion) to find the proper tools to accomplish it.

some resources:

laser_geometry

merging multiple pointcloud

concatenate point clouds


Originally posted by Procópio with karma: 4402 on 2014-10-22

This answer was NOT ACCEPTED on the original site

Post score: 4


Original comments

Comment by kost9 on 2014-10-23:
Thanks for the reply, I will try that!

$\endgroup$

Your Answer

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