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

ROS Hector Slam using RP-Lidar 2D Laser Scanner

asked 2016-04-29 00:14:42 -0600

dpwicaksa gravatar image

Hello, I'm new on using ROS.

I work on a project which use 2D laser scanner and do localization solely based on Laser scanner result (without odometry) and i found out ROS support such a thing. I've try using ROS hector SLAM which found here, and it works wonder with logged data.

So far, i have no problem interfacing with my Rp-Lidar. I can save its raw data to a file (such as .txt), and using c++ i can stream the data saved on the .txt

My question is, how to link my saved laser scanner data and ROS Hector SLAM package? I've notice that the logged data use .bag file? Do i need to save my recorded data into a .bag file? thank in advance. hope i make my self clear

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-04-29 08:00:46 -0600

TomSon gravatar image

You need to save your laser data into a bag, I assume that you have already the driver to get back your laser data in the dedicated structure Laserscan. After that, launch your driver with the correct parameters and log your data into a bagfile with the command rosbag record <filename>and specify your laser topic.

edit flag offensive delete link more


can you specify about saving the data into the .bag file? I have try as the wiki instructed but can only get the raw data (1 cycle visualization). the driver installed successfully, I able to run the ubuntu example program provided by RpLidar to read the raw data

dpwicaksa gravatar image dpwicaksa  ( 2016-05-02 07:00:38 -0600 )edit
TomSon gravatar image TomSon  ( 2016-05-02 13:35:18 -0600 )edit

Question Tools

1 follower


Asked: 2016-04-29 00:13:16 -0600

Seen: 1,180 times

Last updated: Apr 29 '16