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

navigation2 NavigateWithReplanning

asked 2021-02-18 13:01:34 -0500

cbn.joao gravatar image

In navigation2, is it possible to have something similar to NavigateWithReplanning, but having the vehicle stopped (halted) during the replanning action?

I'd like the vehicle to collect some data while stopped, computePathToPose and then FollowPath, but after the DistanceController is 'trigged' again, it would 'stop' the vehicle (maybe by calling halt on FollowPath?) and repeat until it reaches the goal.

https://raw.githubusercontent.com/ros...

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-02-19 00:31:45 -0500

updated 2021-02-19 00:32:19 -0500

Certainly! That’s one of the most important features of Nav2 in fact: we allow users, at runtime, to select the behavior tree which defines your navigation logic to be fully customizable without bounds, including customizable plugins for the behavior tree nodes themselves!

This sounds like you just need to create a few behavior tree node plugins for your stop behaviors and compose them into the tree to get the behavior you’d like. You would probably not choose to update based on distance (perhaps time or event based?) but no reason you couldn’t continue to use distance. Potentially an option would be to add a reactive sequence node to stop then replan before continuing.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-02-18 13:01:34 -0500

Seen: 214 times

Last updated: Feb 19 '21