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

RVIZ SLAM RPLidar problem

asked 2015-05-15 07:22:45 -0500

osmancns gravatar image

Hello friends...

I am using The RPLIDAR (Robopeak) for hector slam mapping. This lidar has a publisher node. that link is: http://wiki.ros.org/rplidar and ı use its commands like this:

$ roslaunch rplidar_ros rplidar.launch $ roslaunch hector_slam_launch tutorial.launch ( it is started RVIZ program)

this is working and starting publish lidar scan data. I added LASER_SCAN and MAP tools on RVIZ display.

if ı write Laser_Scan -> Topic "/scan" and GLobal Options -> fixed frame "laser" , I can see LIDAR data on RVİZ on rviz display.

BUT !!!! f ı write Laser_Scan -> Topic "/scan" and GLobal Options -> fixed frame "map" , I can NOT see LIDAR data on RVİZ on rviz display. and I see this error:

*Transform [sender=unknown_publisher] For frame [laser]: Fixed Frame [map] does not exist*

ı need to use HECTOR_SLAM Method like this video but ı cannot started it ....

link text

please help me...

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2015-05-17 07:58:57 -0500

AlexR gravatar image

updated 2015-05-17 08:00:52 -0500

An easy solution would be to manually starting a tf publisher that publishes the needed transform from the base_link (localized) to the laser scanner frame. See the example launch file below:

<node pkg="tf" type="static_transform_publisher" name="base_to_laser_broadcaster" args="0 0 0 0 0 0 base_link laser 100" />

and you should have your hector_mapping parameters like this :

 <param name="pub_map_odom_transform" value="true"/>
<param name="map_frame" value="map" />
<param name="base_frame" value="base_link" />

edit flag offensive delete link more
1

answered 2015-05-17 09:04:28 -0500

osmancns gravatar image

Thank you so much

But where is the hector_mapping.launch. is it in catkin_ws->hector_slam->?

and how can I add your said tf publisher?

edit flag offensive delete link more

Comments

Same issue here. I would like hector mapping, rather than some real time map. Many people have seemed to figured this out, but I cannot for the life of me find any precise documentation on how. I feel I'm missing something simple. I've tried MRPT but the driver is buggy and distorts the data.

casper911ca gravatar image casper911ca  ( 2015-07-23 17:12:51 -0500 )edit

For people that still need help with this, you can put AlexR's line of code in your own launch file or you can run the static transform publisher from the terminal. Another option is to put the transform in your robot's transform broadcaster.

Icehawk101 gravatar image Icehawk101  ( 2016-03-22 14:44:32 -0500 )edit

Hello. It is solution not work in my case. I can not understand why. Can you publish launch file for starting hector_slam+rplidar ?

mtmtz gravatar image mtmtz  ( 2016-11-11 05:55:00 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2015-05-15 07:22:45 -0500

Seen: 5,704 times

Last updated: May 17 '15