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

Function get_base_lin_vel

TextOpTracker/scripts/deploy_mujoco.py:542–546  ·  view source on GitHub ↗

Get base linear velocity

(sim_data)

Source from the content-addressed store, hash-verified

540
541
542def get_base_lin_vel(sim_data):
543 """Get base linear velocity"""
544 linvel_b = quat_rotate_inverse_np(sim_data.qpos[3:7], sim_data.qvel[0:3])
545 # return sim_data.qvel[0:3] # shape [3]
546 return linvel_b
547
548
549def get_base_ang_vel(sim_data):

Callers 2

compute_observationMethod · 0.85
compute_observationFunction · 0.85

Calls 1

quat_rotate_inverse_npFunction · 0.85

Tested by

no test coverage detected