How to get observations (Pose / velocity of geoms) in the Frame of reference of an agent? #2290
-
IntroHi! I am a graduate student at TU Delft, I use MuJoCo for my research on Multi-agent Reinforcement Learning. My setupMujoco: 3.2.5 My questionI have multiple agents within a single Mujoco environment. I am able to get values of any geom's pose and velocity in the world frame. I want to ask if there is a way to get these values in an agent's frame of reference. One approach I have found is to get the agent's frame quaternion and pos from mj_data and then use functions from the Poses API. My question is: Is there a direct way to specify a body (via it's ID) and get values from mj_data in the body's frame? Thanks! Minimal model and/or code that explain my questionNo response Confirmations
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is most easily accomplished with sensors. All "framexx" sensors accept a reference frame object. |
Beta Was this translation helpful? Give feedback.
This is most easily accomplished with sensors. All "framexx" sensors accept a reference frame object.