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

fix object control so that zero efforts are applied for non-driven jo… #269

Merged
merged 6 commits into from
Nov 22, 2023

Conversation

cremebrule
Copy link
Contributor

…ints

Copy link
Member

@ChengshuLi ChengshuLi left a 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.

Comment on lines +439 to +440
# Set zero efforts
joint.set_effort(0, normalized=False)
Copy link
Member

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?

Comment on lines +870 to +872
# If not driven, set torque equal to zero as well
if not self.driven:
self.set_effort(np.zeros(self.n_dof))
Copy link
Member

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?

Copy link
Contributor Author

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm why the transpose?

Copy link
Contributor Author

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

@cremebrule cremebrule merged commit d3ea3c3 into og-develop Nov 22, 2023
4 checks passed
@cremebrule cremebrule deleted the fix-joint-control branch November 22, 2023 03:26
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.

2 participants