MCPcopy Create free account
hub / github.com/Improbable-AI/VisionProTeleop / get_position

Function get_position

utils/viser_tracking_visualizer.py:175–177  ·  view source on GitHub ↗

Extract translation (position) from a 4x4 transformation matrix.

(matrix: np.ndarray)

Source from the content-addressed store, hash-verified

173
174
175def get_position(matrix: np.ndarray) -> np.ndarray:
176 """Extract translation (position) from a 4x4 transformation matrix."""
177 return matrix[:3, 3].copy()
178
179
180def yup_to_zup(pos: np.ndarray) -> np.ndarray:

Callers 5

extract_hand_positionsFunction · 0.70
_precompute_analyticsMethod · 0.70
_draw_head_frameMethod · 0.70
_update_video_frameMethod · 0.70

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected