Global position of a site #2868
-
IntroHi everyone! I'm a grad student at SUT, I use MuJoCo for my research on robotic manipulation. My setupMuJoCo Version: 3.3.1 My questionI'm trying to get the global cartesian position of a site but the output is just Minimal model and/or code that explain my questionprint(data.site_xpos[mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_SITE, "site_name")]) Confirmations
|
Beta Was this translation helpful? Give feedback.
Answered by
kevinzakka
Sep 22, 2025
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yaswhar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
data.site(site_name).xpos
mj_forward
before reading the position? Presumably you are doing this right after initializing the model and data?