FishEyeCamera.plot#

FishEyeCamera.plot(pose: SE3 | None = None, scale: float = 1, shape: str = 'camera', label: bool = True, alpha: float = 1, solid: bool = False, color: str = 'r', projection: str = 'ortho', frame: bool = False, ax: Axes | None = None) Axes#

Plot 3D camera icon in world view (base method)

Parameters:
  • pose (SE3) – camera pose

  • scale (float) – scale factor, defaults to 1

  • shape (str, optional) – icon shape: ‘frustum’ [default], ‘camera’

  • label (bool, optional) – show camera name, defaults to True

  • alpha (float, optional) – transparency of icon, defaults to 1

  • solid (bool, optional) – icon comprises solid faces, defaults to False

  • color (str, optional) – icon color, defaults to ‘r’

  • projection (str, optional) – projection model for new axes, defaults to ‘ortho’

  • ax (Axes3D, optional) – axes to draw in, defaults to current 3D axes

Returns:

axes drawn into

Return type:

Axes3D

Plot a 3D icon representing the pose of a camera into a 3D Matplotlib plot. Two icons are supported: the traditional frustum, and a simplistic camera comprising a box and cylinder.

Note

If pose is not given it defaults to the pose of the instance.