-
Notifications
You must be signed in to change notification settings - Fork 124
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
Add forward kinematics using an URDF to theseus.embodied.kinematics. #84
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! This LGTM with some minor comments. @mhmukadam, any thoughts on the API for the UrdfRobotModel.forward_kinematics()
method?
BTW, @exhaustin looks like you haven't installed the precommit hooks. You can follow the instructions here.
I installed the pre-commit hooks which indicated that the code wasn't passing due to the interfaces defined by the |
That's OK. Once we agree on the interface for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me so far. I agree, we'll be able to ground the discussion more one we reach a full example, then we can work our way backwards from there to streamline the api.
…rch/theseus into austinw.forward_kinematics
…ch_ignore_mask.any() == True.
…rch/theseus into austinw.forward_kinematics
d6e4726
to
d6811d3
Compare
91b6cca
to
73c5cf2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Nice work on the batched IK test! Just some minor comments and then we should be able to merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @exhaustin! Looks ready to merge once you add #155 and change Variable -> Vector.
063665c
to
0aedf8f
Compare
…acebookresearch#84) * Update robot_model.py * Implement fk using current drm * Add DRM as dep * Debug and add tests * Formatting * Simlify SE3 comparison with 'local' * Renaming * Fixed bug in Variable.update() that was breaking torch graph when batch_ignore_mask.any() == True. * Debug typing * Add IK test * Fix IK test * Add quaternion normalization * Change test from script to test * Address robot model comments * Fix minor comments * Remove debug comment and decrease cost tolerance for IK test * Add test parametrizations for gradients and input types * Fix th.Vector related issues * Simplify imports * Batched attempt * Update type checking * Revert import changes * Debug batched test * Add informative error msgs * Add jacobian test * tmp commit * Debug jacobian * Verbose error msg * Add jacobian interface for fk * Debug jacobian test * Fix imports * Add batched jacobians * Change jacobian input typing * Modify jacoobian interface * Remove dim method * Change type check to Vector again * Tune optimization so tests run faster Co-authored-by: Luis Pineda <luisen.p@gmail.com>
Motivation and Context
How Has This Been Tested
Types of changes
Checklist