Merged
Conversation
added 5 commits
June 16, 2021 12:40
jturner65
approved these changes
Jun 17, 2021
Contributor
jturner65
left a comment
There was a problem hiding this comment.
LGTM : Left a few comments, mostly about comments :).
Skylion007
reviewed
Jun 17, 2021
Skylion007
reviewed
Jun 17, 2021
Skylion007
suggested changes
Jun 17, 2021
Skylion007
approved these changes
Jun 17, 2021
…d readonly_property
…ebookresearch/habitat-sim into ao-migration-joint-motor-api
Skylion007
reviewed
Jun 17, 2021
| for ix, val in enumerate(upper_limits): | ||
| if val > 1: | ||
| upper_limits[ix] = 1 | ||
| joint_limits = articulated_object.joint_position_limits |
Contributor
There was a problem hiding this comment.
Suggested change
| joint_limits = articulated_object.joint_position_limits | |
| lower_limits, upper_limits = articulated_object.joint_position_limits |
Contributor
Author
There was a problem hiding this comment.
Is this more efficient given the lines below with limiting?
Contributor
There was a problem hiding this comment.
It will just error if we ever increase or decrease the number of elements returned by the function and is useful for that purpose. Also means you don't have to worry about index out of bound accesses for the tuple.
Contributor
eundersander
left a comment
There was a problem hiding this comment.
I left some comments. I'm worried about the use of CHECK everywhere and honestly wondering if you mixed up CHECK and ESP_CHECK.
11 tasks
This file contains hidden or 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
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.
Motivation and Context
Add JointMotor API for articulated object PD control via Bullet physics. Supports single dof joint types (Revolute and Prismatic) and Spherical joints.
Note: also added getters for joint and link names to improve user experience.
TODO: Spherical joint motor velocity targets are not behaving as expected. This may be misunderstanding of parameters or error within Bullet. May need to log an issue and circle back on this in a later PR. Position targets are working as expected.
How Has This Been Tested
New pytests for the changes.
Example of spherical JointMotor position control for humanoid holding a T-pose position:
test_articulated_object_joint_motors__amass_male.urdf.mp4
Types of changes
Checklist