Record3D + URDF Helpers¶
Extra utilities. Used for example scripts.
- class viser.extras.Record3dFrame[source]¶
A single frame from a Record3D capture.
- K: ndarray[tuple[int, ...], dtype[float32]]¶
- rgb: ndarray[tuple[int, ...], dtype[uint8]]¶
- depth: ndarray[tuple[int, ...], dtype[float32]]¶
- mask: ndarray[tuple[int, ...], dtype[bool]]¶
- T_world_camera: ndarray[tuple[int, ...], dtype[float32]]¶
- class viser.extras.Record3dLoader[source]¶
Helper for loading frames for Record3D captures.
- get_frame(index: int) Record3dFrame [source]¶
- Parameters:
index (int)
- Return type:
- class viser.extras.ViserUrdf[source]¶
Helper for rendering URDFs in Viser.
- Parameters:
target – ViserServer or ClientHandle object to add URDF to.
urdf_or_path – Either a path to a URDF file or a yourdfpy URDF object.
scale – Scale factor to apply to resize the URDF.
root_node_name – Viser scene tree name for the root of the URDF geometry.
mesh_color_override – Optional color to override the URDF’s mesh colors.
- update_cfg(configuration: ndarray) None [source]¶
Update the joint angles of the visualized URDF.
- Parameters:
configuration (ndarray)
- Return type:
None