MCPcopy Create free account
hub / github.com/TeleHuman/TextOp / get_base_ang_vel

Function get_base_ang_vel

TextOpTracker/scripts/deploy_mujoco.py:549–557  ·  view source on GitHub ↗

Get base angular velocity Pay special attention: - The angular velocity sim_data.qvel[3:6] is in the body frame, not the world frame. - The angular velocity sim_data.qvel[3:6] is in the body frame, not the world frame.

(sim_data)

Source from the content-addressed store, hash-verified

547
548
549def get_base_ang_vel(sim_data):
550 """Get base angular velocity
551
552 Pay special attention:
553 - The angular velocity sim_data.qvel[3:6] is in the body frame, not the world frame.
554 - The angular velocity sim_data.qvel[3:6] is in the body frame, not the world frame.
555 """
556
557 return sim_data.qvel[3:6] # shape [3]
558
559
560def get_joint_pos_rel(sim_data):

Callers 2

compute_observationMethod · 0.85
compute_observationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected