MCPcopy Index your code
hub / github.com/google-deepmind/dm_control / _rotate_vector

Function _rotate_vector

dm_control/composer/entity.py:42–46  ·  view source on GitHub ↗

Rotates a vector by the given quaternion.

(vec, quat)

Source from the content-addressed store, hash-verified

40
41
42def _rotate_vector(vec, quat):
43 """Rotates a vector by the given quaternion."""
44 result = np.empty_like(vec)
45 mjbindings.mjlib.mju_rotVecQuat(result, vec, quat)
46 return result
47
48
49class _ObservableKeys:

Callers 1

shift_poseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…