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

hector slam raspberry problem

asked 2015-08-13 05:04:06 -0600

Twista3579 gravatar image

updated 2015-08-13 05:52:21 -0600

Hello everybody,

I use to create maps Hector Slam. So far everything has worked. I will now use a Raspberry Pi 2 with ubuntu to create maps but I always get error.

Hector Slam starts without problems and Rviz connects without problems over the network with the Raspberry.

In the area of laser scanners in Rviz, is an error message which reads:

For frame [laser]: No transform to fixed frame [map]. TF error: [lookup would require extrapolation into the future. Requested time 2529.375686649 but the latest data is at time 2529.225683316, When looking up transformable from frame [laser] to frame [map]]

I think there is a performance problem, because it worked on my computer without any problem.

Here's my TF Tree

https://www.dropbox.com/s/24xdfgkmjs3...

Here's a screenshot of the error

https://www.dropbox.com/s/qdj71u9arvm...

Has anyone any idea how I can solve this problem?

The Laser Scanner is Hokuyo UTM-30LX-EW

Thanks + greetings

Max

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-08-13 07:01:40 -0600

This sounds like you might be experiencing a time sync problem between computers. The rate at which hector_mapping publishes tf data suggests that it either cannot keep up with the incoming LIDAR data, or there is a tf/time sync problem that causes huge waiting delays. I tested things on a RPi2 as described in MappingUsingLoggedData and CPU consumption was about 10%, so I don't think the machine is too slow normally.

Did you compile hector_mapping yourself? If so, you should specify the build type:

catkin_make -DCMAKE_BUILD_TYPE=Release

Otherwise, things might get built without optimization and can be very slow.

edit flag offensive delete link more

Comments

thank you. It works. That was the solution to the problem. The CPU consumption is about 25 % instead of over 100% :-D

Twista3579 gravatar image Twista3579  ( 2015-08-15 01:32:17 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-08-13 05:04:06 -0600

Seen: 1,041 times

Last updated: Aug 13 '15