-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access action feedback within nav2_behavior_tree::BtActionNode during node status BT::NodeStatus::RUNNING #2958
Comments
Agreed, what to do somewhat depends on how you want to use that information. Can you give a bit more specificity? I think something reasonable could be a to have Alternatively, have the BTActionNode have an additional public member |
Agreed, what to do somewhat depends on how you want to use that information. Can you give a bit more specificity? I have added a feedback callback using the |
What do you aim to do with that information in the BT node? I figure the Action itself should decide when it stops, so what context does the feedback provide you in the context of a BT node being ticked that's useful? I don't think there's a reasonable way to stop the action based on feedback within
You'd prefer that over having it be given to you as an argument of |
We use the same action for several different behaviors. In some cases, we verify the triggered motion by some additional measurements. Therefore, we compare the action feedback with measures, and if they do not match, we abort the action. This monitoring process should run in a parallel BTree node. Consequently, we need the feedback as an output port of our node. I understand your point here, that the action itself should decide when it should stop or be aborted. However, for us, it is more convenient to decide this on BTree level. That's the design decision we have made.
You're right, the option with an argument of |
Ok. Can you submit a PR? |
If you could get that PR in sooner than later, that would be fantastic, I'd like this in before we branch off for Humble so that the next LTS distribution (Humble) |
Merging imminently |
Sorry I was on holiday last week. Thank you, @SteveMacenski, for your implementation. |
Feature request
Feature description
I am using the nav2_behavior_tree::BtActionNode for executing a self defined ros2 action. When the action is running, action feedback is published by the action server. However, the nav2_behavior_tree::BtActionNode has not defined a feedback callback. I also could not find a way to access the action feedback at all. There was a similar issue that has been closed recently (#2839) with the same feature request.
Implementation considerations
One could define a feedback_callback within the
send_goal_options
in thesend_new_goal()
function or the feedback could be accessible within thevoid on_wait_for_result()
function.The text was updated successfully, but these errors were encountered: