Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 667

I am making a custom global planner, I want to switch to the default global planner when the custom global fails to make a plan. Can you guys help me out on this?

$
0
0
I tried setting the parameter "/move_base/base_global_planner" as "global_planner/GlobalPlanner" when my custom planner fails to make a plan and return false in the function "makePlan" . But still keeps calling the same custom planner instead of the "global_planner/globalPlanner". I have written below a piece of code from my custom global planner in the makePlan function, bool success = client.call(srv); if (!success) { ROS_ERROR_STREAM_THROTTLE(1, "Failed to call service planner"); n.setParam("move_base/base_global_planner","global_planner/GlobalPlanner"); return false; } Please help me out on this, or any other alternative ways of switching the global planner.

Viewing all articles
Browse latest Browse all 667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>