SphericalCamera.move#
- SphericalCamera.move(T: SE3, name: str | None = None, relative: bool = False) CameraBase#
Move camera (base method)
- Parameters:
T (
SE3) – pose of camera framerelative (bool, optional) – move relative to pose of original camera, defaults to
False
- Returns:
new camera object
- Return type:
CameraBasesubclass
Returns a copy of the camera object with pose set to
T.Example:
>>> from machinevisiontoolbox import CentralCamera >>> from spatialmath import SE3 >>> camera = CentralCamera(); >>> camera.move(SE3.Trans(0.1, 0.2, 0.3)) CentralCamera(name='perspective-moved', pixel_size=(1, 1), pose=[t = 0.1, 0.2, 0.3; rpy/zyx = 0°, 0°, 0°]) >>> camera CentralCamera(name='perspective', pixel_size=(1, 1), pose=[t = 0, 0, 0; rpy/zyx = 0°, 0°, 0°])
Note
The
plotmethod of this cloned camera will create a new window.- Seealso: