viam.spatialmath.orientation_vector

Classes

OrientationVector

An orientation vector (o_x, o_y, o_z, theta) backed by the spatialmath FFI.

Module Contents

class viam.spatialmath.orientation_vector.OrientationVector(o_x: float, o_y: float, o_z: float, theta: float)[source]

An orientation vector (o_x, o_y, o_z, theta) backed by the spatialmath FFI.

theta is in RADIANS for this class. The proto bridge converts to/from the proto’s degrees.

__slots__ = ('_handle', '__weakref__')
classmethod from_proto(proto: viam.proto.common.Orientation) OrientationVector[source]
to_proto() viam.proto.common.Orientation[source]
property o_x: float
property o_y: float
property o_z: float
property theta: float
to_quaternion()[source]
__repr__() str[source]