Ask Your Question
0

Fatal error while trying to build map from logged data. (hector SLAM)

asked 2014-09-07 13:48:34 -0500

lffox gravatar image

updated 2014-09-07 15:07:42 -0500

I've been following this tutorial, http://wiki.ros.org/hector_slam/Tutor... , but I never got past step 4. My OS version - Ubuntu 14.04 and I'm running ROS Indigo.

I get the following error:

Patrick@grimreaper:~$ rosbag play Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag  --clock

[ INFO] [1410114868.718453773]: Opening Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag
[FATAL] [1410114868.719106803]: Error opening file: Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag

[EDIT]

Patrick@grimreaper:~$ rosbag info Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag
ERROR reading Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag: [Errno 2] No such file or directory: 'Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag'

But the file was successfully downloaded,

Patrick@grimreaper:~/ROSthings$ wget http://tu-darmstadt-ros-pkg.googlecode.com/files/Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag
--2014-09-07 23:23:24--  http://tu-darmstadt-ros-pkg.googlecode.com/files/Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag
Resolving tu-darmstadt-ros-pkg.googlecode.com (tu-darmstadt-ros-pkg.googlecode.com)... 74.125.130.82, 2404:6800:4003:c01::52
Connecting to tu-darmstadt-ros-pkg.googlecode.com (tu-darmstadt-ros-pkg.googlecode.com)|74.125.130.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81363927 (78M) [application/octet-stream]
Saving to: ‘Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag’

100%[=========================================================================================================>] 8,13,63,927 72.2KB/s   in 12m 24s

2014-09-07 23:35:49 (107 KB/s) - ‘Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag’ saved [81363927/81363927]

Any thoughts as to why this is happening?

edit retag flag offensive close merge delete

Comments

what about result of rosbag info Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag

bvbdort gravatar image bvbdort  ( 2014-09-07 14:38:38 -0500 )edit

@bvbdort edited.

lffox gravatar image lffox  ( 2014-09-07 15:08:31 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2014-09-07 15:26:26 -0500

ahendrix gravatar image

It looks like you downloaded the bag file to your ROS directory ( ~/ROSthings ) but you're trying to run the playback tool from a different directory.

Does it work if you cd into your ROS directory before running rosbag?

edit flag offensive delete link more

Comments

Hey, the .bag file opened but there wasn't any real time map generation in RVIZ. My impression was based on the point cloud data, RVIZ will generate a map, but nothing happened. Am I missing something?

lffox gravatar image lffox  ( 2014-09-07 16:01:54 -0500 )edit
1

Did you check map added in rviz panel and map topic is selected?

bvbdort gravatar image bvbdort  ( 2014-09-08 02:20:42 -0500 )edit

Ah. yes. It worked. I wish they told that in the wiki, that desired topics, pointcloud,map or path etc should be selected from the panel.

lffox gravatar image lffox  ( 2014-09-10 00:57:48 -0500 )edit

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: 2014-09-07 13:48:34 -0500

Seen: 330 times

Last updated: Sep 07 '14