Robotics StackExchange | Archived questions

Hesitate! When turtlebot meet the obstacles

I was using turtlebot to do navigation experiments based on ROS_navigation stack. I found that the turtlebot was much hesitating when it met some obstacles in the front. Even though the obstacle(which has been stayed there for a while) has been removed, the turtlebot still rotating at the place where it first see the obstacles.

Nevertheless, the turtlebot would recover navigation after the inflated obstacle layer(displayed in the Rviz) was refreshed. However, the time from the obstacles was removed to the inflated obstacle layer was refreshed would be very long(10-20 seconds).

I want to make the delay much shorter.

I noticed that there appears more yellow grid in the costmap if the obstacle stayed there for longer time. I noticed that it's the topic /movebase/localcostmap/costmap displayed as the inflated obstacles layer on the costmap.

My H&S Env. is:

My Question is:

  1. What's the relationship between movebase package and costmap2D package
  2. How does "/movebase" publish the topic "/movebase/local_costmap/costmap"
  3. The time from the obstacles was removed to the inflated obstacle layer was refreshed would be very long(10-20 seconds). How to make the delay much shorter.

Thank you!!

I appreciate any idea/knowledge shared for my puzzles! image description

Asked by sonictl on 2016-05-31 01:57:34 UTC

Comments

It might be that you have set the "observation_persistence" parameter for your observation source to some non-zero value?

Asked by FOXTER on 2016-05-31 06:33:08 UTC

@FOXTER Thanks for your remind. but the observation_persistence does nothing to this issue after I tried different values. I guess that the mechanism designed in the costmap_2d package may affect this issue.

Asked by sonictl on 2016-05-31 21:42:15 UTC

I'v known that the clear_costmaps service offered by move_base pkg can do the clearing work, but that may be some farfetched and not the perfect solution. I may try looking into this(costmap_2d/hydro/obstacles) for solutions.

Asked by sonictl on 2016-05-31 21:51:54 UTC

Answers