Skip to content
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

race condition in SimpleActionClient.send_goal #206

Open
krixkrix opened this issue Jan 2, 2023 · 0 comments · May be fixed by #207
Open

race condition in SimpleActionClient.send_goal #206

krixkrix opened this issue Jan 2, 2023 · 0 comments · May be fixed by #207

Comments

@krixkrix
Copy link

krixkrix commented Jan 2, 2023

Symptoms are that the log contains this:
Got a transition callback on a goal handle that we're not tracking

I started seeing this after the latest noetic actionlib update, which introduced this check:

    def _handle_transition(self, gh):
        if gh != self.gh:
            rospy.logerr("Got a transition callback on a goal handle that we're not tracking")
            return

The problem seems to be that the self.gh is (sometimes) not yet set even the though the goal has been sent.
The error message is logged between the sending of the goal and the return of this statement:

    self.gh = self.action_client.send_goal(goal, self._handle_transition, self._handle_feedback)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant