SphericalCamera.pose#

property SphericalCamera.pose: SE3#

Set/get camera pose (base method)

The camera pose with respect to the global frame can be read or written as an SE3 instance.

Example:

>>> from machinevisiontoolbox import CentralCamera
>>> from spatialmath import SE3
>>> camera = CentralCamera();
>>> camera.pose
SE3(array([[1., 0., 0., 0.],
           [0., 1., 0., 0.],
           [0., 0., 1., 0.],
           [0., 0., 0., 1.]]))
>>> camera.pose = SE3.Trans(1, 2, 3)
>>> camera
CentralCamera(name='perspective', pixel_size=(1, 1), pose=[t = 1, 2, 3; rpy/zyx = 0°, 0°, 0°])

Note

Changes the pose of the current camera instance, whereas move clones the camera instance with a new pose.

Seealso:

move