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

Use JointPositionReset for open loop door control #98

Merged
merged 5 commits into from
Jun 14, 2023
Merged

Conversation

luca-della-vedova
Copy link
Member

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.

luca-della-vedova and others added 5 commits December 19, 2022 15:30
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 mxgrey merged commit 38e0e6d into main Jun 14, 2023
6 checks passed
@mxgrey mxgrey deleted the luca/open_loop_doors branch June 14, 2023 03:56
@Yadunund
Copy link
Member

Do we want to backport this to iron or humble?

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>
@luca-della-vedova
Copy link
Member Author

Do we want to backport this to iron or humble?

Yes, opened #105 and #106

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants