-
Notifications
You must be signed in to change notification settings - Fork 16
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
Use JointPositionReset for open loop door control #98
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
mxgrey
approved these changes
Jun 14, 2023
Do we want to backport this to |
luca-della-vedova
added a commit
that referenced
this pull request
Jun 15, 2023
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
luca-della-vedova
added a commit
that referenced
this pull request
Jun 15, 2023
Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
This was referenced Jun 15, 2023
Yadunund
pushed a commit
that referenced
this pull request
Jun 15, 2023
* Use JointPositionReset for open loop door control (#98) Signed-off-by: Luca Della Vedova <luca@openrobotics.org> * Set all workflows to only use humble Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai> --------- Signed-off-by: Luca Della Vedova <luca@openrobotics.org> Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Yadunund
added a commit
that referenced
this pull request
Jun 15, 2023
* Use JointPositionReset for open loop door control (#98) Signed-off-by: Luca Della Vedova <luca@openrobotics.org> * Update workflows to use iron Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai> * Bump action-ros-ci to v0.3 Signed-off-by: Yadunund <yadunund@openrobotics.org> * Update container in tsan Signed-off-by: Yadunund <yadunund@openrobotics.org> * Switch to setup-ros v0.6 Signed-off-by: Yadunund <yadunund@openrobotics.org> --------- Signed-off-by: Luca Della Vedova <luca@openrobotics.org> Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai> Signed-off-by: Yadunund <yadunund@openrobotics.org> Co-authored-by: Yadunund <yadunund@openrobotics.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bug fix
Fixed bug
There seems to be some issue with joint velocity commands not having any effect on doors, possibly because of limitations in effort limit or friction. This causes doors to sometimes not open / close as commanded.
Fix applied
This PR switches to open loop control, where instead of reading the current velocity to do closed loop velocity control, we assume that the last velocity we commanded was applied and do position control instead (setting at each step
pos = last_pos + desired_vel * dt
).This makes the joint position always exact and not affected by physics parameters such as effort limit or friction.