Ask Your Question
0

How to make a map with Hokuyo Lidar and Hector SLAM

asked 2019-08-21 02:45:29 -0500

bfdmetu gravatar image

I have Hokuyo Lidar T301C and connect to computer. I am using 14.04 indigo

If I use /dev/ttyACM0 , cannot access /dev/ttyACM0: No such file or directory

For this reason use connetct rosrun urg_node urg_node _ip_address:=192.168.0.10 )

I can get laser scan on Rviz.

when i was roslaunch hector_slam_launch tutorial.launch

i can not get any data with Rviz.

I get " [1566371851.208718770]: lookupTransform base_footprint to laser timed out. Could not transform laser scan into base_frame." error

I did some search. Most probably i have to change some code? But which code ? i can not find detailed info ?

Thank you for your help.

edit retag flag offensive close merge delete

Comments

Are you defining your transforms between frames?

PapaG gravatar imagePapaG ( 2019-08-22 18:51:49 -0500 )edit

Thank you your reply. I don't do transform. How can i transform? I found another code .

https://answers.ros.org/question/3011...

It works. However I have to learn how to define this transform

bfdmetu gravatar imagebfdmetu ( 2019-08-27 03:54:11 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-08-27 18:43:17 -0500

PapaG gravatar image

You are not providing a transform for base_footprint to laser. To do this put the following in your launch file

<pkg="tf2_ros" name="laser_pub" type="static_transform_publisher" args="0 0 0 0 0 0 base_footprint laser"/>

Please see this for transform standards

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-08-21 02:45:29 -0500

Seen: 29 times

Last updated: Aug 27