Public Member Functions | Static Public Member Functions | List of all members
sdf::v9::Camera Class Reference

Information about a monocular camera sensor. More...

#include <Camera.hh>

Public Member Functions

 Camera ()
 Constructor. More...
 
 Camera (const Camera &_camera)
 Copy constructor. More...
 
 Camera (Camera &&_camera) noexcept
 Move constructor. More...
 
virtual ~Camera ()
 Destructor. More...
 
double DepthFarClip () const
 Get the far clip distance for the depth camera. More...
 
double DepthNearClip () const
 Get the near clip distance for the depth camera. More...
 
const ignition::math::Vector2d & DistortionCenter () const
 Get the distortion center or principal point. More...
 
double DistortionK1 () const
 Get the radial distortion coefficient k1. More...
 
double DistortionK2 () const
 Get the radial distortion coefficient k2. More...
 
double DistortionK3 () const
 Get the radial distortion coefficient k3. More...
 
double DistortionP1 () const
 Get the tangential distortion coefficient p1. More...
 
double DistortionP2 () const
 Get the tangential distortion coefficient p2. More...
 
sdf::ElementPtr Element () const
 Get a pointer to the SDF element that was used during load. More...
 
double FarClip () const
 Get the far clip distance. More...
 
bool HasDepthCamera () const
 Get whether the depth camera was set. More...
 
bool HasDepthFarClip () const
 Get whether the depth camera far clip distance was set. More...
 
bool HasDepthNearClip () const
 Get whether the depth camera near clip distance was set. More...
 
ignition::math::Angle HorizontalFov () const
 Get the horizontal field of view in radians. More...
 
uint32_t ImageHeight () const
 Get the image height in pixels. More...
 
const NoiseImageNoise () const
 Get the image noise values. More...
 
uint32_t ImageWidth () const
 Get the image width in pixels. More...
 
double LensC1 () const
 Get lens custom function linear scaling constant. More...
 
double LensC2 () const
 Get lens custom function angular scaling constant. More...
 
double LensC3 () const
 Get lens custom function angle offset constant. More...
 
ignition::math::Angle LensCutoffAngle () const
 Get lens cutoff angle. More...
 
int LensEnvironmentTextureSize () const
 Get environment texture size. More...
 
double LensFocalLength () const
 Get lens custom function focal length. More...
 
const std::string & LensFunction () const
 Get lens custom function. More...
 
double LensIntrinsicsCx () const
 Get the lens X principal point in pixels. More...
 
double LensIntrinsicsCy () const
 Get the lens Y principal point in pixels. More...
 
double LensIntrinsicsFx () const
 Get the lens X focal length in pixels. More...
 
double LensIntrinsicsFy () const
 Get the lens Y focal length in pixels. More...
 
double LensIntrinsicsSkew () const
 Get the lens XY axis skew. More...
 
bool LensScaleToHfov () const
 Get lens scale to horizontal field of field. More...
 
std::string LensType () const
 Get the lens type. More...
 
Errors Load (ElementPtr _sdf)
 Load the camera sensor based on an element pointer. More...
 
std::string Name () const
 Get the name of the camera. More...
 
double NearClip () const
 Get the near clip distance. More...
 
bool operator!= (const Camera &_alt) const
 Return true this Camera object does not contain the same values as the passed in parameter. More...
 
Cameraoperator= (const Camera &_camera)
 Assignment operator. More...
 
Cameraoperator= (Camera &&_camera) noexcept
 Move assignment operator. More...
 
bool operator== (const Camera &_alt) const
 Return true if both Camera objects contain the same values. More...
 
PixelFormatType PixelFormat () const
 Get the pixel format. More...
 
std::string PixelFormatStr () const
 Get the pixel format as a string. More...
 
const ignition::math::Pose3d & Pose () const SDF_DEPRECATED(9.0)
 Get the pose of the camer. More...
 
const std::string & PoseFrame () const SDF_DEPRECATED(9.0)
 Get the name of the coordinate frame in which this camera's pose is expressed. More...
 
const std::string & PoseRelativeTo () const
 Get the name of the coordinate frame relative to which this object's pose is expressed. More...
 
const ignition::math::Pose3d & RawPose () const
 Get the pose of the camer. More...
 
bool SaveFrames () const
 Get whether frames should be saved. More...
 
const std::string & SaveFramesPath () const
 Get the path in which to save frames. More...
 
void SetDepthFarClip (double _far)
 Set the far clip distance for the depth camera. More...
 
void SetDepthNearClip (double _near)
 Set the near clip distance for the depth camera. More...
 
void SetDistortionCenter (const ignition::math::Vector2d &_center) const
 Set the distortion center or principal point. More...
 
void SetDistortionK1 (double _k1)
 Set the radial distortion coefficient k1. More...
 
void SetDistortionK2 (double _k2)
 Set the radial distortion coefficient k2. More...
 
void SetDistortionK3 (double _k3)
 Set the radial distortion coefficient k3. More...
 
void SetDistortionP1 (double _p1)
 Set the tangential distortion coefficient p1. More...
 
void SetDistortionP2 (double _p2)
 Set the tangential distortion coefficient p2. More...
 
void SetFarClip (double _far)
 Set the far clip distance. More...
 
void SetHasDepthCamera (bool _camera)
 Set whether the depth camera has been specified. More...
 
void SetHasDepthFarClip (bool _far)
 Set whether the depth camera far clip distance has been specified. More...
 
void SetHasDepthNearClip (bool _near)
 Set whether the depth camera near clip distance has been specified. More...
 
void SetHorizontalFov (const ignition::math::Angle &_hfov)
 Set the horizontal field of view in radians. More...
 
void SetImageHeight (uint32_t _height)
 Set the image height in pixels. More...
 
void SetImageNoise (const Noise &_noise)
 Set the noise values related to the image. More...
 
void SetImageWidth (uint32_t _width)
 Set the image width in pixels. More...
 
void SetLensC1 (double _c1)
 Set lens custom function linear scaling constant. More...
 
void SetLensC2 (double _c2)
 Set lens custom function angular scaling constant. More...
 
void SetLensC3 (double _c3)
 Set lens custom function angle offset constant. More...
 
void SetLensCutoffAngle (const ignition::math::Angle &_angle)
 Set lens cutoff angle. More...
 
void SetLensEnvironmentTextureSize (int _size)
 Set environment texture size. More...
 
void SetLensFocalLength (double _f)
 Set lens custom function focal length. More...
 
void SetLensFunction (const std::string &_fun)
 Set lens custom function. More...
 
void SetLensIntrinsicsCx (double _cx)
 Set the lens X principal point in pixels. More...
 
void SetLensIntrinsicsCy (double _cy)
 Set the lens Y principal point in pixels. More...
 
void SetLensIntrinsicsFx (double _fx)
 Set the lens X focal length in pixels. More...
 
void SetLensIntrinsicsFy (double _fy)
 Set the lens Y focal length in pixels. More...
 
void SetLensIntrinsicsSkew (double _s)
 Set the lens XY axis skew. More...
 
void SetLensScaleToHfov (bool _scale)
 Set lens scale to horizontal field of field. More...
 
void SetLensType (const std::string &_type)
 Set the lens type. More...
 
void SetName (const std::string &_name)
 Set the name of the camera. More...
 
void SetNearClip (double _near)
 Set the near clip distance. More...
 
void SetPixelFormat (PixelFormatType _format)
 Set the pixel format type. More...
 
void SetPixelFormatStr (const std::string &_fmt)
 Set the pixel format from a string. More...
 
void SetPose (const ignition::math::Pose3d &_pose) SDF_DEPRECATED(9.0)
 Set the pose of the camera. More...
 
void SetPoseFrame (const std::string &_frame) SDF_DEPRECATED(9.0)
 Set the name of the coordinate frame in which this camera's pose is expressed. More...
 
void SetPoseRelativeTo (const std::string &_frame)
 Set the name of the coordinate frame relative to which this object's pose is expressed. More...
 
void SetRawPose (const ignition::math::Pose3d &_pose)
 Set the pose of the camera. More...
 
void SetSaveFrames (bool _save)
 Set whether frames should be saved. More...
 
void SetSaveFramesPath (const std::string &_path)
 Set the path in which to save frames. More...
 
void SetVisibilityMask (uint32_t _mask)
 Set the visibility mask of a camera. More...
 
uint32_t VisibilityMask () const
 Get the visibility mask of a camera. More...
 

Static Public Member Functions

static PixelFormatType ConvertPixelFormat (const std::string &_format)
 Convert a string to a PixelFormatType. More...
 
static std::string ConvertPixelFormat (PixelFormatType _type)
 Convert a PixelFormatType to a string. More...
 

Detailed Description

Information about a monocular camera sensor.

Constructor & Destructor Documentation

◆ Camera() [1/3]

sdf::v9::Camera::Camera ( )

Constructor.

◆ Camera() [2/3]

sdf::v9::Camera::Camera ( const Camera _camera)

Copy constructor.

Parameters
[in]_cameraCamera to copy.

◆ Camera() [3/3]

sdf::v9::Camera::Camera ( Camera &&  _camera)
noexcept

Move constructor.

Parameters
[in]_cameraCamera to move.

◆ ~Camera()

virtual sdf::v9::Camera::~Camera ( )
virtual

Destructor.

Member Function Documentation

◆ ConvertPixelFormat() [1/2]

static PixelFormatType sdf::v9::Camera::ConvertPixelFormat ( const std::string &  _format)
static

Convert a string to a PixelFormatType.

Parameters
[in]_formatString equivalent of a pixel format type to convert.
Returns
The matching PixelFormatType.

◆ ConvertPixelFormat() [2/2]

static std::string sdf::v9::Camera::ConvertPixelFormat ( PixelFormatType  _type)
static

Convert a PixelFormatType to a string.

Parameters
[in]_typePixel format type to convert.
Returns
String equivalent of _type.

◆ DepthFarClip()

double sdf::v9::Camera::DepthFarClip ( ) const

Get the far clip distance for the depth camera.

Returns
The far clip depth distance.

◆ DepthNearClip()

double sdf::v9::Camera::DepthNearClip ( ) const

Get the near clip distance for the depth camera.

Returns
The near clip depth distance.

◆ DistortionCenter()

const ignition::math::Vector2d& sdf::v9::Camera::DistortionCenter ( ) const

Get the distortion center or principal point.

Returns
Distortion center or principal point.

◆ DistortionK1()

double sdf::v9::Camera::DistortionK1 ( ) const

Get the radial distortion coefficient k1.

Returns
_k1 The k1 radial distortion.

◆ DistortionK2()

double sdf::v9::Camera::DistortionK2 ( ) const

Get the radial distortion coefficient k2.

Returns
_k2 The k2 radial distortion.

◆ DistortionK3()

double sdf::v9::Camera::DistortionK3 ( ) const

Get the radial distortion coefficient k3.

Returns
_k3 The k3 radial distortion.

◆ DistortionP1()

double sdf::v9::Camera::DistortionP1 ( ) const

Get the tangential distortion coefficient p1.

Returns
_p1 The p1 tangential distortion.

◆ DistortionP2()

double sdf::v9::Camera::DistortionP2 ( ) const

Get the tangential distortion coefficient p2.

Returns
The p2 tangential distortion.

◆ Element()

sdf::ElementPtr sdf::v9::Camera::Element ( ) const

Get a pointer to the SDF element that was used during load.

Returns
SDF element pointer. The value will be nullptr if Load has not been called.

◆ FarClip()

double sdf::v9::Camera::FarClip ( ) const

Get the far clip distance.

Returns
The far clip distance.

◆ HasDepthCamera()

bool sdf::v9::Camera::HasDepthCamera ( ) const

Get whether the depth camera was set.

Returns
True if the depth camera was set.

◆ HasDepthFarClip()

bool sdf::v9::Camera::HasDepthFarClip ( ) const

Get whether the depth camera far clip distance was set.

Returns
True if the depth camera far clip distance was set.

◆ HasDepthNearClip()

bool sdf::v9::Camera::HasDepthNearClip ( ) const

Get whether the depth camera near clip distance was set.

Returns
True if the depth camera near clip distance was set.

◆ HorizontalFov()

ignition::math::Angle sdf::v9::Camera::HorizontalFov ( ) const

Get the horizontal field of view in radians.

Returns
The horizontal field of view in radians.

◆ ImageHeight()

uint32_t sdf::v9::Camera::ImageHeight ( ) const

Get the image height in pixels.

Returns
The image height in pixels.

◆ ImageNoise()

const Noise& sdf::v9::Camera::ImageNoise ( ) const

Get the image noise values.

Returns
Noise values for the image.

◆ ImageWidth()

uint32_t sdf::v9::Camera::ImageWidth ( ) const

Get the image width in pixels.

Returns
The image width in pixels.

◆ LensC1()

double sdf::v9::Camera::LensC1 ( ) const

Get lens custom function linear scaling constant.

Returns
The lens custom function linear scaling constant.

◆ LensC2()

double sdf::v9::Camera::LensC2 ( ) const

Get lens custom function angular scaling constant.

Returns
The lens custom function angular scaling constant.

◆ LensC3()

double sdf::v9::Camera::LensC3 ( ) const

Get lens custom function angle offset constant.

Returns
The lens custom function angle offset constant.

◆ LensCutoffAngle()

ignition::math::Angle sdf::v9::Camera::LensCutoffAngle ( ) const

Get lens cutoff angle.

Everything outside of the specified angle will be hidden.

Returns
The lens cutoff angle.

◆ LensEnvironmentTextureSize()

int sdf::v9::Camera::LensEnvironmentTextureSize ( ) const

Get environment texture size.

This is the resolution of the environment cube map used to draw the world.

Returns
The lens environment texture size.

◆ LensFocalLength()

double sdf::v9::Camera::LensFocalLength ( ) const

Get lens custom function focal length.

Returns
The lens custom function focal length.

◆ LensFunction()

const std::string& sdf::v9::Camera::LensFunction ( ) const

Get lens custom function.

Possible values are 'sin', 'tan', and 'id'.

Returns
The lens custom function.

◆ LensIntrinsicsCx()

double sdf::v9::Camera::LensIntrinsicsCx ( ) const

Get the lens X principal point in pixels.

Returns
The lens X principal point in pixels.

◆ LensIntrinsicsCy()

double sdf::v9::Camera::LensIntrinsicsCy ( ) const

Get the lens Y principal point in pixels.

Returns
The lens Y principal point in pixels.

◆ LensIntrinsicsFx()

double sdf::v9::Camera::LensIntrinsicsFx ( ) const

Get the lens X focal length in pixels.

Returns
The lens X focal length in pixels.

◆ LensIntrinsicsFy()

double sdf::v9::Camera::LensIntrinsicsFy ( ) const

Get the lens Y focal length in pixels.

Returns
The lens Y focal length in pixels.

◆ LensIntrinsicsSkew()

double sdf::v9::Camera::LensIntrinsicsSkew ( ) const

Get the lens XY axis skew.

Returns
The lens XY axis skew.

◆ LensScaleToHfov()

bool sdf::v9::Camera::LensScaleToHfov ( ) const

Get lens scale to horizontal field of field.

Returns
True if the image should be scaled to fit horizontal FOV, otherwise it will be shown according to projection type parameters.

◆ LensType()

std::string sdf::v9::Camera::LensType ( ) const

Get the lens type.

This is the type of the lens mapping. Supported values are gnomonical, stereographic, equidistant, equisolid_angle, orthographic, custom. For gnomonical (perspective) projection, it is recommended to specify a horizontal_fov of less than or equal to 90 degrees

Returns
The lens type.

◆ Load()

Errors sdf::v9::Camera::Load ( ElementPtr  _sdf)

Load the camera sensor based on an element pointer.

This is not the usual entry point. Typical usage of the SDF DOM is through the Root object.

Parameters
[in]_sdfThe SDF Element pointer
Returns
Errors, which is a vector of Error objects. Each Error includes an error code and message. An empty vector indicates no error.

◆ Name()

std::string sdf::v9::Camera::Name ( ) const

Get the name of the camera.

Returns
Name of the sensor.

◆ NearClip()

double sdf::v9::Camera::NearClip ( ) const

Get the near clip distance.

Returns
The near clip distance.

◆ operator!=()

bool sdf::v9::Camera::operator!= ( const Camera _alt) const

Return true this Camera object does not contain the same values as the passed in parameter.

Parameters

◆ operator=() [1/2]

Camera& sdf::v9::Camera::operator= ( const Camera _camera)

Assignment operator.

Parameters
[in]_cameraThe camera to set values from.
Returns
*this

◆ operator=() [2/2]

Camera& sdf::v9::Camera::operator= ( Camera &&  _camera)
noexcept

Move assignment operator.

Parameters
[in]_cameraThe camera to set values from.
Returns
*this

◆ operator==()

bool sdf::v9::Camera::operator== ( const Camera _alt) const

Return true if both Camera objects contain the same values.

Parameters

◆ PixelFormat()

PixelFormatType sdf::v9::Camera::PixelFormat ( ) const

Get the pixel format.

This value is set from the <format> element that is the child of <image>.

Returns
The pixel format.

◆ PixelFormatStr()

std::string sdf::v9::Camera::PixelFormatStr ( ) const

Get the pixel format as a string.

Returns
The pixel format string.

◆ Pose()

const ignition::math::Pose3d& sdf::v9::Camera::Pose ( ) const

Get the pose of the camer.

This is the pose of the camera as specified in SDF (<camera> <pose> ... </pose></camera>).

Returns
The pose of the link.
Deprecated:
See RawPose.

◆ PoseFrame()

const std::string& sdf::v9::Camera::PoseFrame ( ) const

Get the name of the coordinate frame in which this camera's pose is expressed.

A empty value indicates that the frame is the parent link.

Returns
The name of the pose frame.
Deprecated:
See PoseRelativeTo.

◆ PoseRelativeTo()

const std::string& sdf::v9::Camera::PoseRelativeTo ( ) const

Get the name of the coordinate frame relative to which this object's pose is expressed.

An empty value indicates that the frame is relative to the parent link.

Returns
The name of the pose relative-to frame.

◆ RawPose()

const ignition::math::Pose3d& sdf::v9::Camera::RawPose ( ) const

Get the pose of the camer.

This is the pose of the camera as specified in SDF (<camera> <pose> ... </pose></camera>).

Returns
The pose of the link.

◆ SaveFrames()

bool sdf::v9::Camera::SaveFrames ( ) const

Get whether frames should be saved.

Returns
True if image frames should be saved.

◆ SaveFramesPath()

const std::string& sdf::v9::Camera::SaveFramesPath ( ) const

Get the path in which to save frames.

Returns
Path to save frames.

◆ SetDepthFarClip()

void sdf::v9::Camera::SetDepthFarClip ( double  _far)

Set the far clip distance for the depth camera.

Parameters
[in]_farThe far clip depth distance.

◆ SetDepthNearClip()

void sdf::v9::Camera::SetDepthNearClip ( double  _near)

Set the near clip distance for the depth camera.

Parameters
[in]_nearThe near clip depth distance.

◆ SetDistortionCenter()

void sdf::v9::Camera::SetDistortionCenter ( const ignition::math::Vector2d &  _center) const

Set the distortion center or principal point.

Parameters
[in]_centerDistortion center or principal point.

◆ SetDistortionK1()

void sdf::v9::Camera::SetDistortionK1 ( double  _k1)

Set the radial distortion coefficient k1.

Parameters
[in]_k1The k1 radial distortion.

◆ SetDistortionK2()

void sdf::v9::Camera::SetDistortionK2 ( double  _k2)

Set the radial distortion coefficient k2.

Parameters
[in]_k2The k2 radial distortion.

◆ SetDistortionK3()

void sdf::v9::Camera::SetDistortionK3 ( double  _k3)

Set the radial distortion coefficient k3.

Parameters
[in]_k3The k3 radial distortion.

◆ SetDistortionP1()

void sdf::v9::Camera::SetDistortionP1 ( double  _p1)

Set the tangential distortion coefficient p1.

Parameters
[in]_p1The p1 tangential distortion.

◆ SetDistortionP2()

void sdf::v9::Camera::SetDistortionP2 ( double  _p2)

Set the tangential distortion coefficient p2.

Returns
The p2 tangential distortion.

◆ SetFarClip()

void sdf::v9::Camera::SetFarClip ( double  _far)

Set the far clip distance.

Parameters
[in]_farThe far clip distance.

◆ SetHasDepthCamera()

void sdf::v9::Camera::SetHasDepthCamera ( bool  _camera)

Set whether the depth camera has been specified.

Parameters
[in]_cameraTrue if the depth camera has been set in the sdf.

◆ SetHasDepthFarClip()

void sdf::v9::Camera::SetHasDepthFarClip ( bool  _far)

Set whether the depth camera far clip distance has been specified.

Parameters
[in]_cameraTrue if the depth camera far clip distance has been set in the sdf.

◆ SetHasDepthNearClip()

void sdf::v9::Camera::SetHasDepthNearClip ( bool  _near)

Set whether the depth camera near clip distance has been specified.

Parameters
[in]_cameraTrue if the depth camera near clip distance has been set in the sdf.

◆ SetHorizontalFov()

void sdf::v9::Camera::SetHorizontalFov ( const ignition::math::Angle &  _hfov)

Set the horizontal field of view in radians.

Parameters
[in]_hfovThe horizontal field of view in radians.

◆ SetImageHeight()

void sdf::v9::Camera::SetImageHeight ( uint32_t  _height)

Set the image height in pixels.

Parameters
[in]_heightThe image height in pixels.

◆ SetImageNoise()

void sdf::v9::Camera::SetImageNoise ( const Noise _noise)

Set the noise values related to the image.

Parameters
[in]_noiseNoise values for the image.

◆ SetImageWidth()

void sdf::v9::Camera::SetImageWidth ( uint32_t  _width)

Set the image width in pixels.

Parameters
[in]_widthThe image width in pixels.

◆ SetLensC1()

void sdf::v9::Camera::SetLensC1 ( double  _c1)

Set lens custom function linear scaling constant.

Parameters
[in]_c1The lens custom function linear scaling constant.

◆ SetLensC2()

void sdf::v9::Camera::SetLensC2 ( double  _c2)

Set lens custom function angular scaling constant.

Parameters
[in]_c2The lens custom function angular scaling constant.

◆ SetLensC3()

void sdf::v9::Camera::SetLensC3 ( double  _c3)

Set lens custom function angle offset constant.

Parameters
[in]_c3The lens custom function angle offset constant.

◆ SetLensCutoffAngle()

void sdf::v9::Camera::SetLensCutoffAngle ( const ignition::math::Angle &  _angle)

Set lens cutoff angle.

Everything outside of the specified angle will be hidden.

Parameters
[in]_angleThe lens cutoff angle.

◆ SetLensEnvironmentTextureSize()

void sdf::v9::Camera::SetLensEnvironmentTextureSize ( int  _size)

Set environment texture size.

This is the resolution of the environment cube map used to draw the world.

Parameters
[in]_sizeThe lens environment texture size.

◆ SetLensFocalLength()

void sdf::v9::Camera::SetLensFocalLength ( double  _f)

Set lens custom function focal length.

Parameters
[in]_fThe lens custom function focal length.

◆ SetLensFunction()

void sdf::v9::Camera::SetLensFunction ( const std::string &  _fun)

Set lens custom function.

Parameters
[in]_funThe lens custom function. Possible values are 'sin', 'tan', and 'id'.

◆ SetLensIntrinsicsCx()

void sdf::v9::Camera::SetLensIntrinsicsCx ( double  _cx)

Set the lens X principal point in pixels.

Parameters
[in]_cxThe lens X principal point in pixels.

◆ SetLensIntrinsicsCy()

void sdf::v9::Camera::SetLensIntrinsicsCy ( double  _cy)

Set the lens Y principal point in pixels.

Parameters
[in]_cyThe lens Y principal point in pixels.

◆ SetLensIntrinsicsFx()

void sdf::v9::Camera::SetLensIntrinsicsFx ( double  _fx)

Set the lens X focal length in pixels.

Parameters
[in]_fxThe lens X focal length in pixels.

◆ SetLensIntrinsicsFy()

void sdf::v9::Camera::SetLensIntrinsicsFy ( double  _fy)

Set the lens Y focal length in pixels.

Parameters
[in]_fyThe lens Y focal length in pixels.

◆ SetLensIntrinsicsSkew()

void sdf::v9::Camera::SetLensIntrinsicsSkew ( double  _s)

Set the lens XY axis skew.

Parameters
[in]_sThe lens XY axis skew.

◆ SetLensScaleToHfov()

void sdf::v9::Camera::SetLensScaleToHfov ( bool  _scale)

Set lens scale to horizontal field of field.

Parameters
[in]_scaleTrue if the image should be scaled to fit horizontal FOV, otherwise it will be shown according to projection type parameters.

◆ SetLensType()

void sdf::v9::Camera::SetLensType ( const std::string &  _type)

Set the lens type.

Supported values are gnomonical, stereographic, equidistant, equisolid_angle, orthographic, custom.

Parameters
[in]_typeThe lens type.

◆ SetName()

void sdf::v9::Camera::SetName ( const std::string &  _name)

Set the name of the camera.

Parameters
[in]_nameName of the sensor.

◆ SetNearClip()

void sdf::v9::Camera::SetNearClip ( double  _near)

Set the near clip distance.

Parameters
[in]_nearThe near clip distance.

◆ SetPixelFormat()

void sdf::v9::Camera::SetPixelFormat ( PixelFormatType  _format)

Set the pixel format type.

Parameters
[in]_formatThe image format.

◆ SetPixelFormatStr()

void sdf::v9::Camera::SetPixelFormatStr ( const std::string &  _fmt)

Set the pixel format from a string.

Parameters
[in]_fmtThe pixel format string.

◆ SetPose()

void sdf::v9::Camera::SetPose ( const ignition::math::Pose3d &  _pose)

Set the pose of the camera.

See also
const ignition::math::Pose3d &Pose() const
Parameters
[in]_poseThe new camera pose.
Deprecated:
See SetRawPose.

◆ SetPoseFrame()

void sdf::v9::Camera::SetPoseFrame ( const std::string &  _frame)

Set the name of the coordinate frame in which this camera's pose is expressed.

A empty value indicates that the frame is the parent link.

Parameters
[in]_frameThe name of the pose frame.
Deprecated:
See SetPoseRelativeTo.

◆ SetPoseRelativeTo()

void sdf::v9::Camera::SetPoseRelativeTo ( const std::string &  _frame)

Set the name of the coordinate frame relative to which this object's pose is expressed.

An empty value indicates that the frame is relative to the parent link.

Parameters
[in]_frameThe name of the pose relative-to frame.

◆ SetRawPose()

void sdf::v9::Camera::SetRawPose ( const ignition::math::Pose3d &  _pose)

Set the pose of the camera.

See also
const ignition::math::Pose3d &RawPose() const
Parameters
[in]_poseThe new camera pose.

◆ SetSaveFrames()

void sdf::v9::Camera::SetSaveFrames ( bool  _save)

Set whether frames should be saved.

Parameters
[in]_saveTrue if image frames should be saved.

◆ SetSaveFramesPath()

void sdf::v9::Camera::SetSaveFramesPath ( const std::string &  _path)

Set the path in which to save frames.

Parameters
[in]_pathPath to save frames.

◆ SetVisibilityMask()

void sdf::v9::Camera::SetVisibilityMask ( uint32_t  _mask)

Set the visibility mask of a camera.

Parameters
[in]_maskvisibility mask

◆ VisibilityMask()

uint32_t sdf::v9::Camera::VisibilityMask ( ) const

Get the visibility mask of a camera.

Returns
visibility mask

The documentation for this class was generated from the following file: