Robotics StackExchange | Archived questions

Problems in building a map after playing intel.bag file while executing Gmapping??????

I have created the bag files successfully from intel.clf dataset, now after running roscore rosparam set usesimtime true rosrun gmapping slam_gmapping scan:=laser rosbag play intel.bag

[ WARN] [1478603677.898065363]: Failed to compute laser pose, aborting initialization ("base_link" passed to lookupTransform argument target_frame does not exist. )

Even in the Rviz window it is not showing map building process, further after executing rosrun mapserver mapsaver it is showing "Waiting for Map" and it is waiting indefinitely. Please help to solve the problem. Thank you

Asked by user_123 on 2016-11-07 04:44:57 UTC

Comments

If with "the same code" you mean the gist posted by @Martin Günther in this question, then please include any error messages you are seeing. Otherwise it's going to be very hard to help you.

Asked by gvdhoorn on 2016-11-07 05:17:32 UTC

The bag files are created but when I am running rosrun gmapping slam_gmapping scan:=laser and rosbag play intel.bag, it is showing this warning message [ WARN] [1478588289.199837910]: Failed to compute laser pose, aborting initialization ("base_link" passed to lookupTransform argument target_frame a

Asked by user_123 on 2016-11-08 02:05:44 UTC

And along with that I cannot see the map building process in Rviz also, it is showing a black screen with a grid, without any map building process going on.

Asked by user_123 on 2016-11-08 02:06:12 UTC

[ WARN] [1478598036.351175282]: Failed to compute laser pose, aborting initialization ("base_link" passed to lookupTransform argument target_frame does not exist. ) This the warning message associated with the 2nd comment.

Asked by user_123 on 2016-11-08 04:41:37 UTC

Still no warning message. Is there a character in there preventing it from being displayed? Maybe an angle bracket?

Asked by TinyTheBrontosaurus on 2016-11-08 10:04:09 UTC

There is actually no error or warning msg in the OP. @rimital: please include the error or warning that you are seeing. Without that, I'm doubtfull we can help you.

Asked by gvdhoorn on 2016-11-08 11:52:35 UTC

I am sorry ,the warning message may be for some reason didnot get pasted, anyways it is given in the last comment.It is being displayed in the terminal where the gmapping process is executing..

Asked by user_123 on 2016-11-09 00:28:26 UTC

So to summarise: the script posted by @Martin Günther appears to work fine, but you are having problems after conversion and while playing back the bag using rosbag?

Asked by gvdhoorn on 2016-11-09 02:39:34 UTC

Yes, it is working fine, but with the bag file created, after running gmapping and playing the bag file, it is not showing any map.

Asked by user_123 on 2016-11-09 04:04:09 UTC

If the conversion is fine, could I please ask you to change your question title to reflect the actual problem that you are having (ie: using it with rosbag to create a map)? That will increase your chances of getting good answers significantly.

Asked by gvdhoorn on 2016-11-09 04:30:12 UTC

"base_link" passed to lookupTransform argument target_frame does not exist.

This looks more like a problem with your robot model (URDF) than with the conversion script or the bag file that was created.

Asked by gvdhoorn on 2016-11-09 04:30:58 UTC

Thanks for ur reply, I have updated the question stating the details of the problem that is faced.

Asked by user_123 on 2016-11-09 04:43:28 UTC

Answers