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

Problems with navigation stack

asked 2014-08-25 01:29:30 -0600

sumanth gravatar image

updated 2014-08-25 06:47:57 -0600

I have a map of the area, in which I want my differential drive mobile robot to move around to the goals given, for this I already mapped the area with kinect using the gmapping, now I want to use the navigation stack.

I have followed the setup as mentioned in the navigation_stack page http://wiki.ros.org/navigation/Tutori...

But after running the move_base.launch file I get the following errors.

[ WARN] [1408947873.713176792]: Request for map failed; trying again...
[ WARN] [1408947874.215030143]: Request for map failed; trying again...
[ WARN] [1408947874.716821881]: Request for map failed; trying again...
[ WARN] [1408947875.219003710]: Request for map failed; trying again...
[ WARN] [1408947875.721026682]: Request for map failed; trying again...
[ WARN] [1408947876.223351709]: Request for map failed; trying again...
[ WARN] [1408947876.725076883]: Request for map failed; trying again...
[ WARN] [1408947876.920729621]: Waiting on transform from base_link to map to become available before running costmap, tf error: 
[ WARN] [1408947877.227117599]: Request for map failed; trying again...
[ WARN] [1408947877.729052070]: Request for map failed; trying again...
[ WARN] [1408947878.230988466]: Request for map failed; trying again...
[ WARN] [1408947878.733617816]: Request for map failed; trying again...
[ WARN] [1408947879.235487601]: Request for map failed; trying again...
[ WARN] [1408947879.738477007]: Request for map failed; trying again...
[ WARN] [1408947880.240812581]: Request for map failed; trying again...
[ WARN] [1408947880.743107807]: Request for map failed; trying again...
[ WARN] [1408947881.245370459]: Request for map failed; trying again...
[ WARN] [1408947881.747222844]: Request for map failed; trying again...
[ WARN] [1408947881.971717380]: Waiting on transform from base_link to map to become available before running costmap, tf error: 
[ WARN] [1408947882.249109598]: Request for map failed; trying again...
[ WARN] [1408947882.750964052]: Request for map failed; trying again...
[ WARN] [1408947883.254429857]: Request for map failed; trying again...
[ WARN] [1408947883.756259117]: Request for map failed; trying again...

Here is my graph attached: image description

So What I am missing here, which is stopping the navigation stack to run.

many thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2014-08-25 01:58:28 -0600

ahendrix gravatar image

You have two errors. I'll explain each:

[ WARN] [1408947881.971717380]: Waiting on transform from base_link to map to become available before running costmap, tf error:

(1) move_base is waiting for the transform from base_link to map to become available. This is how it knows where the robot is, and it can't start without that.

 [ WARN] [1408947873.713176792]: Request for map failed; trying again...

(2) AMCL is waiting for the map. Without that map, it can't determine the location of the robot. This is causing (1) above.

From looking at your node graph, you aren't running a map_server. You should probably run the map_server node as described on the map_server wiki page

edit flag offensive delete link more

Comments

  1. How can I give this tf, ie. tf between move_base and base_link

  2. when I saved the map after gmapping using "rosrun map_server map_saver" it saved map as map.pgm, but the map_server is expecting a .yaml format, how can I now convert from .pgm to .yaml

sumanth gravatar image sumanth  ( 2014-08-25 02:11:43 -0600 )edit
  1. Read my answer again. You will solve 1 by solving 2
  2. The map_saver should create both a map.pgm and a map.yaml.
ahendrix gravatar image ahendrix  ( 2014-08-25 02:19:01 -0600 )edit

Great thanks ahendrix, I am able to run the map_server with map.yaml, which inturn solved the 1st problem.

sumanth gravatar image sumanth  ( 2014-08-25 02:20:25 -0600 )edit

ahendrix, But sometimes I get a warning saying

Map update loop missed its desired rate of 5.0000Hz... the loop actually took 0.2281 seconds

May I know the reason.

sumanth gravatar image sumanth  ( 2014-08-25 02:38:48 -0600 )edit

does navigation stack provides avoidance of dynamic obstacles coming in the map..?

sumanth gravatar image sumanth  ( 2014-08-25 04:34:50 -0600 )edit

It sounds like your original question is solved; please mark this as solved and ask a new question or two.

ahendrix gravatar image ahendrix  ( 2014-08-25 23:45:55 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-08-25 01:29:30 -0600

Seen: 9,651 times

Last updated: Aug 25 '14