Closed YBachmann closed 6 months ago
Received. I will need to review this in light of some changes in ros2-devel / iron branches. It will probably be mid-May before I will find the bandwidth to work on this with my team. Thanks for the PR.
I think we should clear the result_status when we remove result. I'll be doing some testing over the next week, so I've pulled your change locally.
`
@classmethod
def remove_result(cls, topic):
ProxyActionClient._result[topic] = None
ProxyActionClient._result_status[topic] = None
`
incorporated into humble, iron, rolling, and ros2-devel branches
Hi,
this should fix the bug from Issue https://github.com/FlexBE/flexbe_behavior_engine/issues/3.
It is now possible to use
ProxyActionClient.get_state("my_test_topic")
to query the result state/GoalStatus:Output:
In this case
self._action_client.get_state(self._topic)
returned4
which corresponds toSTATUS_SUCCEEDED
(see action_msgs/msg/GoalStatus.msg).PS: I am not sure whether the
humble
branch is the right one for this pull request, feel free to change the target branch if needed.