Closed albertkiskaroly closed 11 months ago
Ask on Robotics Stack Exchange or I recommend reading Behavior Trees for Robotics and AI. The issue is clearly in your BT modifications -- likely in that its not setup so that we always replan first-thing so the old plan on the blackboard is sent to Follow Path because you don't enter the planning part of the tree with your changes. Unfortunately, I don't have cycles to debug every users custom BT configurations and its worth learning how to write BTs and how the nodes you're using work to make sure you understand the logic you're asking it to perform.
I'm going to guess it has to do with the RateController or GlobalUpdatedGoal BT nodes -- might be useful to throw some logs in there and see what's going on. If you find there's actually a bug, happy to discuss that, but I can't debug every complete application BT that comes my way :-). If you have something in particular you think is wrong about a node that I can reproduce, that's something I can help wtih!
Bug report
Required Info:
Steps to reproduce issue
Step 1: I added a block to the default navigation_through_poses behavior tree to prevent computing a new path every time, only if there is a new goal or the planned path is not valid. Therefore the tree should be modified to:
Step 2: launch the tb3_simulation_launch.py as described here, with the modified behavior tree
Expected behavior
I give the robot a goal at the beginning, it will plan a path and follow it until it reaches the goal. If I cancel the goal, the robot stops. After that, if I give the robot a new goal, it will plan a new path and move along it towards the new destination.
Actual behavior
After canceling a goal, if I specify a new goal, it will plan the new path, but it will not follow it, but will go to the old destination.
Additional information
https://github.com/ros-planning/navigation2/assets/55767637/8f9caff9-3a25-4083-b4b1-94adacddf6b6