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

Function get_position

utils/visualize_tracking.py:96–98  ·  view source on GitHub ↗

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

(matrix: np.ndarray)

Source from the content-addressed store, hash-verified

94
95
96def get_position(matrix: np.ndarray) -> np.ndarray:
97 """Extract translation (position) from a 4x4 transformation matrix."""
98 return matrix[:3, 3]
99
100
101def swap_yz(point: np.ndarray) -> np.ndarray:

Callers 6

extract_hand_positionsFunction · 0.70
draw_coordinate_frameFunction · 0.70
draw_cameraFunction · 0.70
print_calibration_infoFunction · 0.70
print_extrinsic_infoFunction · 0.70
_set_axis_limitsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected