You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mdp.joint_pos_rel is one of the most common observations.
defjoint_pos_rel(env: ManagerBasedEnv, asset_cfg: SceneEntityCfg=SceneEntityCfg("robot")) ->torch.Tensor:
"""The joint positions of the asset w.r.t. the default joint positions. Note: Only the joints configured in :attr:`asset_cfg.joint_ids` will have their positions returned. """# extract the used quantities (to enable type-hinting)asset: Articulation=env.scene[asset_cfg.name]
returnasset.data.joint_pos[:, asset_cfg.joint_ids] -asset.data.default_joint_pos[:, asset_cfg.joint_ids]
And when initialing Observation Term, mdp.joint_pos_rel is passed in as func that is later called to retrieve the observation tensor.
If i have a robot with a joint that is passive and does not have sensor feedback, how can I make mdp.joint_pos_rel only return part of the joint position instead of all the joints?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
mdp.joint_pos_rel
is one of the most common observations.And when initialing Observation Term,
mdp.joint_pos_rel
is passed in asfunc
that is later called to retrieve the observation tensor.Question
If i have a robot with a joint that is passive and does not have sensor feedback, how can I make
mdp.joint_pos_rel
only return part of the joint position instead of all the joints?Beta Was this translation helpful? Give feedback.
All reactions