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

How to dynamically configure Nav2 bt_navigator xml ?

asked 2022-07-02 22:52:25 -0500

jainr gravatar image

Hi,

I would like to dynamically change/re-configure the xml(param) of Nav2 bt_navigator without relaunching whole Nav2 bringup with different praram file.

Is there any way to change the bt_navigator params from other ros2 node?

For example: Changing the behaviour from navigate_to_pose_w_replanning_and_recovery to navigate_through_poses_w_replanning_and_recovery

Thanks you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-07-02 23:06:25 -0500

In every single navigation request, you can specify which behavior tree you'd like to use, so you can easily change behavior every single navigation request if you like. If you'd like to change mid-action, you can always preempt the currently running navigation request with a new one using a different behavior tree (but I assume you mean changing behaviors between navigation requests, not in the middle of a current executing one).

By the way, we support Nav Through Poses & Nav To Pose as 2 separate actions that can be called by default with Nav2, you don't need to relaunch anything. You can just call the action you like (but that's specific to the 2 "styles" of navigation for Nav to Pose and Nav Through Poses). You can't call them both at the same time since they're mutually exclusive, but you can call them sequentially with or without specifying specific BT files for use to your heart's desire.

edit flag offensive delete link more

Comments

is this applicable if say I want an automatic transition from slam mode to navigation only mode? (from slam:=True to slam:=False)

n000oob gravatar image n000oob  ( 2023-03-14 21:24:45 -0500 )edit
1

That is not related to the behavior tree.

stevemacenski gravatar image stevemacenski  ( 2023-03-15 22:55:32 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-07-02 22:52:25 -0500

Seen: 201 times

Last updated: Jul 02 '22