ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How can I use just the local planner?

asked 2012-05-12 23:36:01 -0600

madmax gravatar image

updated 2012-05-13 00:15:33 -0600


is it possible to just use the local planner?
My goal is just to detect obstacles in front of the robot and do some exploration.

Tried it in my own move_base class like that

costmap_2d::Costmap2DROS costmap("my_costmap", tf);

I also made config files for local and global costmap, and turned static_map to false.
But my code always says waiting for map ...

Edit: Now I also use gmapping to produce a map:

rosrun gmapping slam_gmapping scan:=base_scan

So my code runs and I only get a warning:

You have set map parameters, but also requested to use the static map. Your parameters will be overwritten by those given by the map server

I now also have a message "nav_msgs/OccupancyGrid".
So am I right that I can use this message and look for obstacles in the grid?
Or is there a better solution?

To just use the navigation stack is not an option for me ;)


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-05-13 12:04:00 -0600

PKG gravatar image

If you just want to avoid using the global planner, there's a simple hack: use goal_passer in the navigation_experimental stack as your global planner. The goal_passer does (next to) nothing and just sends the goal to your local planner as it is.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2012-05-12 23:36:01 -0600

Seen: 530 times

Last updated: May 13 '12