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

problem localization AMCL (only laser scanner)

asked 2017-01-18 17:19:46 -0600

Alessio gravatar image

updated 2017-01-21 09:01:27 -0600

Hi, I'm quite confused about AMCL. Until now, i was able to create a map with hector_slam. Now i'm trying to use AMCL to localize my robot into this map.

I want to specify that i'm using only a Hokuyo laser scanner, so without odometry. Is it necessary to implement also an IMU or to do other steps in order to get AMCL able to work?

this is the situation after i set the 2d Pose Estimate http://tinypic.com/view.php?pic=2m5zb...

If starting from that condition i move the robot, it will not localize itself. So i think that i'm missing something. Any hints? Is there a way to use the laser scanner data as odometry?

I'm running everything on ROS kinetic ubuntu 16.04. The laser scanner is connected to a raspberry Pi3 and the computational stuff are done on a desktop pc with ROS_MASTER_URI.

EDIT Finally i was able to build laser scan matcher from the source. I want to say thanks to the man here, his tutorial was very helpful to success (the last part for CSM). Talking about Laser Scan Matcher, according to these few hours of testing, the results are very very good.

Two days ago I managed to use Hector_Slam to obtain the data from the laser scanner using "pub_map_odom_transform" but the results are not so good. I mean, it works but sometimes the robot gets lost. Here some hints

So to conclude, using Laser Scanner Matcher is the best way to deal with laser scanner data for AMCL.

edit retag flag offensive close merge delete

Comments

Hi, I am also working with the lidar but no odometry for the navigation stack..Do I need to built it from source too (kinetic)? May I also know how you use the package? by roslaunch some launch files or..? I'm super new to ROS. not sure how to link it up to the rest.. Hope you can give me some hits.

IvyKK gravatar image IvyKK  ( 2018-12-06 00:05:55 -0600 )edit

hallo, I also have a same problem with you, but I am using rplidar. I could build a map by using hector_slam, and after that I saved the built map, no I am trying to localize the lidar on the built map, but I couldn't even use the 2d pose estimate, and then I follow you explanation here, but I think the laser scan matcher is not running well, could you give the step by step explanation to localize the only lidar? thank you

nadiah gravatar image nadiah  ( 2019-08-20 01:27:00 -0600 )edit

Hello Nadia, did you manage to solve your problem? i am actually having the same issue and i would be really grateful if you could share with us the steps you made in order to get the initial pose and to localize the rplidar and see it in rviz

saief gravatar image saief  ( 2021-04-02 04:29:12 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2017-01-18 20:46:32 -0600

spmaniato gravatar image

updated 2017-01-18 20:48:07 -0600

You are missing the odom to base_link transformation. Usually this comes from a combination of wheel odometry, IMU, and other sensors (for example visual odometry). If you want to rely solely on LiDAR, you can use laser scan matching ( http://wiki.ros.org/laser_scan_matcher ) - with appropriate parametrization - to calculate this transform. It's easy to set it up.

edit flag offensive delete link more

Comments

Yes, i'm using a static transformation between base_link and odom. The problem with laser_scan_matcher is that: according to the documentation it is not available for ros kinetic. How to install it?

Alessio gravatar image Alessio  ( 2017-01-19 03:54:31 -0600 )edit

Hmm, you're right. I just checked with apt-cache search ros-kinetic-laser-scan-matcher You can try building it from source: https://github.com/ccny-ros-pkg/scan_...

spmaniato gravatar image spmaniato  ( 2017-01-19 19:26:25 -0600 )edit
1

Thanks man, I edit the first post with few details about my solution.

Alessio gravatar image Alessio  ( 2017-01-21 09:02:37 -0600 )edit

hi @spmaniato I am also trying to use laser scan matcher but I am getting the world frame doesn not exist error. Can you please tell me how did you get scan matcher working ?

ZainMehdi gravatar image ZainMehdi  ( 2017-04-11 06:21:45 -0600 )edit
1

answered 2017-01-19 14:01:40 -0600

duck-development gravatar image

You can try this http://wiki.ros.org/rf2o_laser_odometry As an alternative. Or use hactor as an exchange for amcl

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2017-01-18 17:19:46 -0600

Seen: 2,982 times

Last updated: Jan 21 '17