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

Keep joint jog jogging instead of hanging #62

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Conversation

dsobek
Copy link

@dsobek dsobek commented Dec 18, 2024

This PR stops joint jog from hanging when the race condition described in https://github.com/PickNikRobotics/moveit_studio/issues/9828 occurs simply by setting a timeout in a RetrieveJointStateParameter behavior.

The race condition can still occur but the timeout prevents it from happening repeatedly.

Testing

Add a delay to the changed RetrieveJointStateParameter behavior like shown to repro the race condition reliably.
Screenshot 2024-12-18 at 9 48 40 AM
Then after switching from 'Waypoints' to 'Joint Jog' teleop modes, and manipulating a joint, you'll see an error from RetrieveJointStateParameter for timing out. Continuing to manipulate joints should then work.

@dsobek dsobek self-assigned this Dec 18, 2024
@dsobek dsobek merged commit beb9515 into v6.5 Dec 18, 2024
4 checks passed
@dsobek dsobek deleted the reduce-joint-jog-hang branch December 18, 2024 17:54
@davetcoleman
Copy link
Member

@dsobek why wasn't this reviewed or approved by anyone before merging? i don't think this is a good workflow

@EzraBrooks
Copy link
Member

I think @MikeWrock forgot to set up branch protections on this repo - fixing

@EzraBrooks
Copy link
Member

Fixed branch protections. See #31 for confirmation that merging is blocked without review.

fwiw this change seems sensical to me, but thanks @davetcoleman for catching that it went through without review.

@dsobek
Copy link
Author

dsobek commented Dec 18, 2024

My bad, I should've called out the lack of permissions.

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 this pull request may close these issues.

3 participants