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

[REQ] \<site\> tag support Mujoco #479

Open
ped02 opened this issue Jan 31, 2025 · 0 comments
Open

[REQ] \<site\> tag support Mujoco #479

ped02 opened this issue Jan 31, 2025 · 0 comments
Assignees
Labels
feature request Request for something to be added

Comments

@ped02
Copy link

ped02 commented Jan 31, 2025

Description

<site> tag support for Mujoco. Used to query location/orientation attached to a body/shape wrt to some point in space. I'm not sure if theres already a native way to do this in warp or not.

Location (import_mjcf.py)

I tried implementing a proof of concept by adding body (with mass = 0, I_m = 0, etc. in order to not mess with dynamics, but I'm not sure if this would cause instability or not), then attach the site body using fixed joint to the parent's body. Then shape is added to the site body, and collision for the shape is disabled.

For backward compatibility, can provide optional kwarg to enable site with default being false.

Edit 1 (31 Jan 2025):
Maybe a helper function to query body index of the site by name as well.

Context

I was looking at myosuite and they use tendons mainly for control and sites for querying/sensing location, etc. For my use case, I used site to track location of a certain part of the articulation chain to calculate control error.

@ped02 ped02 added the feature request Request for something to be added label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for something to be added
Projects
None yet
Development

No branches or pull requests

2 participants