-
Notifications
You must be signed in to change notification settings - Fork 58
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
fix object control so that zero efforts are applied for non-driven jo… #269
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.
@cremebrule So sorry for the belated reply. Left some minor comments/questions. Feel free to merge.
# Set zero efforts | ||
joint.set_effort(0, normalized=False) |
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.
Could you remind me when ctrl_type will be NONE
again?
# If not driven, set torque equal to zero as well | ||
if not self.driven: | ||
self.set_effort(np.zeros(self.n_dof)) |
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.
why not always set torque to 0?
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.
looping in @cgokmen . You mentioned we actually shouldn't set efforts directly now?
@@ -124,7 +124,7 @@ def get_camera_params(viewport): | |||
view_proj_mat = helpers.get_view_proj_mat(view_params) | |||
|
|||
return { | |||
"pose": np.array(prim_tf), | |||
"pose": np.array(prim_tf).T, |
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.
hmmm why the transpose?
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.
I think empirically I just observed that the prim_tf is a transposed homogeneous matrix wrt to what we normally expect I think
…ints