-
Notifications
You must be signed in to change notification settings - Fork 133
IiwaDriver
: Create controller MBP from scenario file
#317
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
Conversation
This is enabled by being able to freeze child instances
There is currently an issue with # remove joint actuators
for actuator_index in plant.GetJointActuatorIndices(child_instance): # list is empty
actuator = plant.get_joint_actuator(actuator_index)
plant.RemoveJointActuator(actuator) I needed to explicitly add the following to get it to work locally: for actuator in [
plant.GetJointActuatorByName('left_finger_sliding_joint', child_instance),
plant.GetJointActuatorByName('right_finger_sliding_joint', child_instance)
]:
plant.RemoveJointActuator(actuator) Seems like a potential bug |
Added |
Realized from bug report (RobotLocomotion/drake#21547) that |
Also make this slightly more efficient
thanks! ironically, i already did all this in https://github.com/RussTedrake/manipulation/blob/master/book/mobile/exercises/mobile_base_ik.ipynb |
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.
one small request. otherwise LGTM. Thanks!
Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @siddancha)
manipulation/station.py
line 395 at r3 (raw file):
frame_on_child = joint.frame_on_child() plant.RemoveJoint(joint) plant.WeldFrames(frame_on_parent, frame_on_child)
per my mobile_ik example, I preferred the extra line using the WeldJoint constructor so that I could keep the joint name the same.
Also, if there are mimic joints anywhere in the model, this will throw. But I think that's ok for now.
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.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @RussTedrake)
manipulation/station.py
line 395 at r3 (raw file):
Previously, RussTedrake (Russ Tedrake) wrote…
per my mobile_ik example, I preferred the extra line using the WeldJoint constructor so that I could keep the joint name the same.
Also, if there are mimic joints anywhere in the model, this will throw. But I think that's ok for now.
Makes sense! I just switched to the WeldJoint
constructor.
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.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @siddancha)
pyproject.toml
line 5 at r4 (raw file):
# Use e.g. 2023.10.4.rc0 if I need to release a release candidate. # Use e.g. 2023.10.4.post1 if I need to rerelease on the same day. version = "2024.06.07"
btw -- i presume that this means you would like me to roll some pip wheels once this lands?
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.
Reviewable status: all files reviewed, 1 unresolved discussion
pyproject.toml
line 5 at r4 (raw file):
Previously, RussTedrake (Russ Tedrake) wrote…
btw -- i presume that this means you would like me to roll some pip wheels once this lands?
If it's not a hassle/concern? Otherwise I can just also do pip install git+https://github.com/RussTedrake/manipulation@master
and not rely on PyPI releases.
Previously, siddancha (Siddharth Ancha) wrote…
Done. (i've pushed to pypi) |
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.
Reviewable status:
complete! all files reviewed, all discussions resolved
pyproject.toml
line 5 at r4 (raw file):
Previously, RussTedrake (Russ Tedrake) wrote…
Done. (i've pushed to pypi)
Thank you!
Fixes #316
IiwaDriver
by reusing the user-provided scenario, instead of creating a custom iiwa (hardcoded to iiwa7) and the WSG schunk.This change is