ouster.sdk.viz.util module
- class BoundMethod(method)[source]
Bases:
objectUsed to wrap a bound method’s instance with a weak ref, which is necessary to use the method as a PointViz event callback while allowing the bound method’s instance to be deleted.
- push_point_viz_handler(viz, arg, handler)[source]
Add a key handler with extra context without keeping it alive.
It’s often useful to add a key callback that calls a method of an object that wraps a PointViz instance. In this case it’s necessary to take some extra care to avoid a reference cycle; holding onto self in the callback passed to native code would cause a memory leak.
- class AxisWithLabel(point_viz, *, pose=array([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 1.]]), label='', length=1.0, thickness=3, label_scale=1.0, axis_n=100, enabled=True)[source]
Bases:
objectCoordinate axis with a text label.
- property enabled: bool
True if label is added to the viz
- property pose: ndarray
Label pose, 4x4 matrix
- property label: str
Label text, 4x4 matrix