Ask Your Question

Revision history [back]

Hello. No. You cannot do that because the two planners have different interfaces. Global planners output a series of poses, while local planners output a Twist message, which directly tells the underlying motor control system what velocities to turn the wheels. In other words, you need something to translate a pose (position in space) to motor commands, which is the job of the local planner.

However, you can get what you want by using the "poser_follower" as your local planner. This planner is available in the "pose_follower" sub-directory of this repo:

The pose_follower is local planner that simply follows the global plan exactly. It will not deviate from that plan at all. This means that if there is an obstacle in your way, the robot will stop and wait for a new global plan that avoids the obstacle. Since asking for a new global plan is one of the default obstacle avoidance policies, this should work, so long as the custom global planner that you are writing will avoid new obstacles on the local cost map.