Information about a monocular camera sensor. More...
#include <Camera.hh>
Public Member Functions | |
Camera () | |
Constructor. More... | |
uint32_t | AntiAliasingValue () const |
Get the anti-aliasing value. More... | |
const std::string & | BoundingBoxType () const |
Get the boundingbox type. 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 | HasBoundingBoxType () const |
Get whether the boundingbox type was set. 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... | |
bool | HasLensIntrinsics () const |
Get whether or not the camera has instrinsics values set. More... | |
bool | HasSegmentationType () const |
Get whether the segmentation type 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 Noise & | ImageNoise () 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 intrinsic matrix X principal point in pixels. More... | |
double | LensIntrinsicsCy () const |
Get the lens intrinsic matrix Y principal point in pixels. More... | |
double | LensIntrinsicsFx () const |
Get the lens intrinsic matrix X focal length in pixels. More... | |
double | LensIntrinsicsFy () const |
Get the lens intrinsic matrix Y focal length in pixels. More... | |
double | LensIntrinsicsSkew () const |
Get the lens XY axis skew. More... | |
double | LensProjectionCx () const |
Get the lens projection matrix X principal point in pixels. More... | |
double | LensProjectionCy () const |
Get the lens projection matrix Y principal point in pixels. More... | |
double | LensProjectionFx () const |
Get the lens projection matrix X focal length in pixels. More... | |
double | LensProjectionFy () const |
Get the lens projection matrix Y focal length in pixels. More... | |
double | LensProjectionTx () const |
Get the lens projection matrix X translation in pixels. More... | |
double | LensProjectionTy () const |
Get the lens projection matrix Y translation in pixels. 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... | |
bool | operator== (const Camera &_alt) const |
Return true if both Camera objects contain the same values. More... | |
const std::string | OpticalFrameId () const |
Get the name of the coordinate frame relative to which this object's camera_info message header is expressed. More... | |
PixelFormatType | PixelFormat () const |
Get the pixel format. More... | |
std::string | PixelFormatStr () const |
Get the pixel format as a string. 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... | |
const std::string & | SegmentationType () const |
Get the segmentation type. More... | |
void | SetAntiAliasingValue (uint32_t _antiAliasingValue) |
Set the anti-aliasing value. More... | |
void | SetBoundingBoxType (const std::string &_type) |
Set the boundingbox type. 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) |
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 | SetHasBoundingBoxType (bool _type) |
Set whether the boundingbox type has been specified. 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 | SetHasSegmentationType (bool _type) |
Set whether the segmentation type 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 intrinsic matrix X principal point in pixels. More... | |
void | SetLensIntrinsicsCy (double _cy) |
Set the lens intrinsic matrix Y principal point in pixels. More... | |
void | SetLensIntrinsicsFx (double _fx) |
Set the lens intrinsic matrix X focal length in pixels. More... | |
void | SetLensIntrinsicsFy (double _fy) |
Set the lens intrinsic matrix Y focal length in pixels. More... | |
void | SetLensIntrinsicsSkew (double _s) |
Set the lens XY axis skew. More... | |
void | SetLensProjectionCx (double _cx_p) |
Set the lens projection matrix X principal point in pixels. More... | |
void | SetLensProjectionCy (double _cy_p) |
Set the lens projection matrix Y principal point in pixels. More... | |
void | SetLensProjectionFx (double _fx_p) |
Set the lens projection matrix X focal length in pixels. More... | |
void | SetLensProjectionFy (double _fy_p) |
Set the lens projection matrix Y focal length in pixels. More... | |
void | SetLensProjectionTx (double _tx) |
Set the lens projection matrix X translation in pixels. More... | |
void | SetLensProjectionTy (double _ty) |
Set the lens projection matrix Y translation in pixels. 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 | SetOpticalFrameId (const std::string &_frame) |
Set the name of the coordinate frame relative to which this object's camera_info is expressed. 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 | 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 | SetSegmentationType (const std::string &_type) |
Set the segmentation type. More... | |
void | SetTriggered (bool _triggered) |
Set whether the camera should be triggered by a topic. More... | |
void | SetTriggerTopic (const std::string &_triggerTopic) |
Set the topic that will trigger the camera. More... | |
void | SetVisibilityMask (uint32_t _mask) |
Set the visibility mask of a camera. More... | |
sdf::ElementPtr | ToElement () const |
Create and return an SDF element filled with data from this camera. More... | |
bool | Triggered () const |
Get whether the camera is triggered by a topic. More... | |
std::string | TriggerTopic () const |
Get the topic that will trigger the 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... | |
Information about a monocular camera sensor.
sdf::v12::Camera::Camera | ( | ) |
Constructor.
uint32_t sdf::v12::Camera::AntiAliasingValue | ( | ) | const |
Get the anti-aliasing value.
const std::string& sdf::v12::Camera::BoundingBoxType | ( | ) | const |
Get the boundingbox type.
|
static |
Convert a string to a PixelFormatType.
[in] | _format | String equivalent of a pixel format type to convert. |
|
static |
Convert a PixelFormatType to a string.
[in] | _type | Pixel format type to convert. |
double sdf::v12::Camera::DepthFarClip | ( | ) | const |
Get the far clip distance for the depth camera.
double sdf::v12::Camera::DepthNearClip | ( | ) | const |
Get the near clip distance for the depth camera.
const ignition::math::Vector2d& sdf::v12::Camera::DistortionCenter | ( | ) | const |
Get the distortion center or principal point.
double sdf::v12::Camera::DistortionK1 | ( | ) | const |
Get the radial distortion coefficient k1.
double sdf::v12::Camera::DistortionK2 | ( | ) | const |
Get the radial distortion coefficient k2.
double sdf::v12::Camera::DistortionK3 | ( | ) | const |
Get the radial distortion coefficient k3.
double sdf::v12::Camera::DistortionP1 | ( | ) | const |
Get the tangential distortion coefficient p1.
double sdf::v12::Camera::DistortionP2 | ( | ) | const |
Get the tangential distortion coefficient p2.
sdf::ElementPtr sdf::v12::Camera::Element | ( | ) | const |
double sdf::v12::Camera::FarClip | ( | ) | const |
Get the far clip distance.
bool sdf::v12::Camera::HasBoundingBoxType | ( | ) | const |
Get whether the boundingbox type was set.
bool sdf::v12::Camera::HasDepthCamera | ( | ) | const |
Get whether the depth camera was set.
bool sdf::v12::Camera::HasDepthFarClip | ( | ) | const |
Get whether the depth camera far clip distance was set.
bool sdf::v12::Camera::HasDepthNearClip | ( | ) | const |
Get whether the depth camera near clip distance was set.
bool sdf::v12::Camera::HasLensIntrinsics | ( | ) | const |
Get whether or not the camera has instrinsics values set.
bool sdf::v12::Camera::HasSegmentationType | ( | ) | const |
Get whether the segmentation type was set.
ignition::math::Angle sdf::v12::Camera::HorizontalFov | ( | ) | const |
Get the horizontal field of view in radians.
uint32_t sdf::v12::Camera::ImageHeight | ( | ) | const |
Get the image height in pixels.
const Noise& sdf::v12::Camera::ImageNoise | ( | ) | const |
Get the image noise values.
uint32_t sdf::v12::Camera::ImageWidth | ( | ) | const |
Get the image width in pixels.
double sdf::v12::Camera::LensC1 | ( | ) | const |
Get lens custom function linear scaling constant.
double sdf::v12::Camera::LensC2 | ( | ) | const |
Get lens custom function angular scaling constant.
double sdf::v12::Camera::LensC3 | ( | ) | const |
Get lens custom function angle offset constant.
ignition::math::Angle sdf::v12::Camera::LensCutoffAngle | ( | ) | const |
Get lens cutoff angle.
Everything outside of the specified angle will be hidden.
int sdf::v12::Camera::LensEnvironmentTextureSize | ( | ) | const |
Get environment texture size.
This is the resolution of the environment cube map used to draw the world.
double sdf::v12::Camera::LensFocalLength | ( | ) | const |
Get lens custom function focal length.
const std::string& sdf::v12::Camera::LensFunction | ( | ) | const |
Get lens custom function.
Possible values are 'sin', 'tan', and 'id'.
double sdf::v12::Camera::LensIntrinsicsCx | ( | ) | const |
Get the lens intrinsic matrix X principal point in pixels.
double sdf::v12::Camera::LensIntrinsicsCy | ( | ) | const |
Get the lens intrinsic matrix Y principal point in pixels.
double sdf::v12::Camera::LensIntrinsicsFx | ( | ) | const |
Get the lens intrinsic matrix X focal length in pixels.
double sdf::v12::Camera::LensIntrinsicsFy | ( | ) | const |
Get the lens intrinsic matrix Y focal length in pixels.
double sdf::v12::Camera::LensIntrinsicsSkew | ( | ) | const |
Get the lens XY axis skew.
double sdf::v12::Camera::LensProjectionCx | ( | ) | const |
Get the lens projection matrix X principal point in pixels.
double sdf::v12::Camera::LensProjectionCy | ( | ) | const |
Get the lens projection matrix Y principal point in pixels.
double sdf::v12::Camera::LensProjectionFx | ( | ) | const |
Get the lens projection matrix X focal length in pixels.
double sdf::v12::Camera::LensProjectionFy | ( | ) | const |
Get the lens projection matrix Y focal length in pixels.
double sdf::v12::Camera::LensProjectionTx | ( | ) | const |
Get the lens projection matrix X translation in pixels.
double sdf::v12::Camera::LensProjectionTy | ( | ) | const |
Get the lens projection matrix Y translation in pixels.
bool sdf::v12::Camera::LensScaleToHfov | ( | ) | const |
Get lens scale to horizontal field of field.
std::string sdf::v12::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
Errors sdf::v12::Camera::Load | ( | ElementPtr | _sdf | ) |
std::string sdf::v12::Camera::Name | ( | ) | const |
Get the name of the camera.
double sdf::v12::Camera::NearClip | ( | ) | const |
Get the near clip distance.
bool sdf::v12::Camera::operator!= | ( | const Camera & | _alt | ) | const |
bool sdf::v12::Camera::operator== | ( | const Camera & | _alt | ) | const |
const std::string sdf::v12::Camera::OpticalFrameId | ( | ) | const |
Get the name of the coordinate frame relative to which this object's camera_info message header is expressed.
Note: while Gazebo interprets the camera frame to be looking towards +X, other tools, such as ROS interprets this frame as looking towards +Z. The Camera sensor assumes that the color and depth images are captured at the same frame_id.
PixelFormatType sdf::v12::Camera::PixelFormat | ( | ) | const |
Get the pixel format.
This value is set from the <format> element that is the child of <image>.
std::string sdf::v12::Camera::PixelFormatStr | ( | ) | const |
Get the pixel format as a string.
const std::string& sdf::v12::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.
const ignition::math::Pose3d& sdf::v12::Camera::RawPose | ( | ) | const |
Get the pose of the camer.
This is the pose of the camera as specified in SDF (<camera> <pose> ... </pose></camera>).
bool sdf::v12::Camera::SaveFrames | ( | ) | const |
Get whether frames should be saved.
const std::string& sdf::v12::Camera::SaveFramesPath | ( | ) | const |
Get the path in which to save frames.
const std::string& sdf::v12::Camera::SegmentationType | ( | ) | const |
Get the segmentation type.
void sdf::v12::Camera::SetAntiAliasingValue | ( | uint32_t | _antiAliasingValue | ) |
Set the anti-aliasing value.
[in] | _antiAliasingValue | The anti-aliasing value. |
void sdf::v12::Camera::SetBoundingBoxType | ( | const std::string & | _type | ) |
Set the boundingbox type.
[in] | _type | The boundingbox type. |
void sdf::v12::Camera::SetDepthFarClip | ( | double | _far | ) |
Set the far clip distance for the depth camera.
[in] | _far | The far clip depth distance. |
void sdf::v12::Camera::SetDepthNearClip | ( | double | _near | ) |
Set the near clip distance for the depth camera.
[in] | _near | The near clip depth distance. |
void sdf::v12::Camera::SetDistortionCenter | ( | const ignition::math::Vector2d & | _center | ) |
Set the distortion center or principal point.
[in] | _center | Distortion center or principal point. |
void sdf::v12::Camera::SetDistortionK1 | ( | double | _k1 | ) |
Set the radial distortion coefficient k1.
[in] | _k1 | The k1 radial distortion. |
void sdf::v12::Camera::SetDistortionK2 | ( | double | _k2 | ) |
Set the radial distortion coefficient k2.
[in] | _k2 | The k2 radial distortion. |
void sdf::v12::Camera::SetDistortionK3 | ( | double | _k3 | ) |
Set the radial distortion coefficient k3.
[in] | _k3 | The k3 radial distortion. |
void sdf::v12::Camera::SetDistortionP1 | ( | double | _p1 | ) |
Set the tangential distortion coefficient p1.
[in] | _p1 | The p1 tangential distortion. |
void sdf::v12::Camera::SetDistortionP2 | ( | double | _p2 | ) |
Set the tangential distortion coefficient p2.
void sdf::v12::Camera::SetFarClip | ( | double | _far | ) |
Set the far clip distance.
[in] | _far | The far clip distance. |
void sdf::v12::Camera::SetHasBoundingBoxType | ( | bool | _type | ) |
Set whether the boundingbox type has been specified.
[in] | _type | True if the boundingbox type has been set in the sdf. |
void sdf::v12::Camera::SetHasDepthCamera | ( | bool | _camera | ) |
Set whether the depth camera has been specified.
[in] | _camera | True if the depth camera has been set in the sdf. |
void sdf::v12::Camera::SetHasDepthFarClip | ( | bool | _far | ) |
Set whether the depth camera far clip distance has been specified.
[in] | _camera | True if the depth camera far clip distance has been set in the sdf. |
void sdf::v12::Camera::SetHasDepthNearClip | ( | bool | _near | ) |
Set whether the depth camera near clip distance has been specified.
[in] | _camera | True if the depth camera near clip distance has been set in the sdf. |
void sdf::v12::Camera::SetHasSegmentationType | ( | bool | _type | ) |
Set whether the segmentation type has been specified.
[in] | _type | True if the segmentation type has been set in the sdf. |
void sdf::v12::Camera::SetHorizontalFov | ( | const ignition::math::Angle & | _hfov | ) |
Set the horizontal field of view in radians.
[in] | _hfov | The horizontal field of view in radians. |
void sdf::v12::Camera::SetImageHeight | ( | uint32_t | _height | ) |
Set the image height in pixels.
[in] | _height | The image height in pixels. |
void sdf::v12::Camera::SetImageNoise | ( | const Noise & | _noise | ) |
Set the noise values related to the image.
[in] | _noise | Noise values for the image. |
void sdf::v12::Camera::SetImageWidth | ( | uint32_t | _width | ) |
Set the image width in pixels.
[in] | _width | The image width in pixels. |
void sdf::v12::Camera::SetLensC1 | ( | double | _c1 | ) |
Set lens custom function linear scaling constant.
[in] | _c1 | The lens custom function linear scaling constant. |
void sdf::v12::Camera::SetLensC2 | ( | double | _c2 | ) |
Set lens custom function angular scaling constant.
[in] | _c2 | The lens custom function angular scaling constant. |
void sdf::v12::Camera::SetLensC3 | ( | double | _c3 | ) |
Set lens custom function angle offset constant.
[in] | _c3 | The lens custom function angle offset constant. |
void sdf::v12::Camera::SetLensCutoffAngle | ( | const ignition::math::Angle & | _angle | ) |
Set lens cutoff angle.
Everything outside of the specified angle will be hidden.
[in] | _angle | The lens cutoff angle. |
void sdf::v12::Camera::SetLensEnvironmentTextureSize | ( | int | _size | ) |
Set environment texture size.
This is the resolution of the environment cube map used to draw the world.
[in] | _size | The lens environment texture size. |
void sdf::v12::Camera::SetLensFocalLength | ( | double | _f | ) |
Set lens custom function focal length.
[in] | _f | The lens custom function focal length. |
void sdf::v12::Camera::SetLensFunction | ( | const std::string & | _fun | ) |
Set lens custom function.
[in] | _fun | The lens custom function. Possible values are 'sin', 'tan', and 'id'. |
void sdf::v12::Camera::SetLensIntrinsicsCx | ( | double | _cx | ) |
Set the lens intrinsic matrix X principal point in pixels.
[in] | _cx | The lens intrinsic matrix X principal point in pixels. |
void sdf::v12::Camera::SetLensIntrinsicsCy | ( | double | _cy | ) |
Set the lens intrinsic matrix Y principal point in pixels.
[in] | _cy | The lens intrinsic matrix Y principal point in pixels. |
void sdf::v12::Camera::SetLensIntrinsicsFx | ( | double | _fx | ) |
Set the lens intrinsic matrix X focal length in pixels.
[in] | _fx | The intrinsic matrix lens X focal length in pixels. |
void sdf::v12::Camera::SetLensIntrinsicsFy | ( | double | _fy | ) |
Set the lens intrinsic matrix Y focal length in pixels.
[in] | _fy | The lens intrinsic matrix Y focal length in pixels. |
void sdf::v12::Camera::SetLensIntrinsicsSkew | ( | double | _s | ) |
Set the lens XY axis skew.
[in] | _s | The lens XY axis skew. |
void sdf::v12::Camera::SetLensProjectionCx | ( | double | _cx_p | ) |
Set the lens projection matrix X principal point in pixels.
[in] | _cx_p | The lens projection matrix X principal point in pixels. |
void sdf::v12::Camera::SetLensProjectionCy | ( | double | _cy_p | ) |
Set the lens projection matrix Y principal point in pixels.
[in] | _cy_p | The lens projection matrix Y principal point in pixels. |
void sdf::v12::Camera::SetLensProjectionFx | ( | double | _fx_p | ) |
Set the lens projection matrix X focal length in pixels.
[in] | _fx_p | The lens projection matrix X focal length in pixels. |
void sdf::v12::Camera::SetLensProjectionFy | ( | double | _fy_p | ) |
Set the lens projection matrix Y focal length in pixels.
[in] | _fy_p | The lens projection matrix Y focal length in pixels. |
void sdf::v12::Camera::SetLensProjectionTx | ( | double | _tx | ) |
Set the lens projection matrix X translation in pixels.
[in] | _tx | The lens projection matrix X translation in pixels. |
void sdf::v12::Camera::SetLensProjectionTy | ( | double | _ty | ) |
Set the lens projection matrix Y translation in pixels.
[in] | _ty | The lens projection matrix Y translation in pixels. |
void sdf::v12::Camera::SetLensScaleToHfov | ( | bool | _scale | ) |
Set lens scale to horizontal field of field.
[in] | _scale | True if the image should be scaled to fit horizontal FOV, otherwise it will be shown according to projection type parameters. |
void sdf::v12::Camera::SetLensType | ( | const std::string & | _type | ) |
Set the lens type.
Supported values are gnomonical, stereographic, equidistant, equisolid_angle, orthographic, custom.
[in] | _type | The lens type. |
void sdf::v12::Camera::SetName | ( | const std::string & | _name | ) |
Set the name of the camera.
[in] | _name | Name of the sensor. |
void sdf::v12::Camera::SetNearClip | ( | double | _near | ) |
Set the near clip distance.
[in] | _near | The near clip distance. |
void sdf::v12::Camera::SetOpticalFrameId | ( | const std::string & | _frame | ) |
Set the name of the coordinate frame relative to which this object's camera_info is expressed.
[in] | _frame | The frame this camera uses in its camera_info topic. |
void sdf::v12::Camera::SetPixelFormat | ( | PixelFormatType | _format | ) |
Set the pixel format type.
[in] | _format | The image format. |
void sdf::v12::Camera::SetPixelFormatStr | ( | const std::string & | _fmt | ) |
Set the pixel format from a string.
[in] | _fmt | The pixel format string. |
void sdf::v12::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.
[in] | _frame | The name of the pose relative-to frame. |
void sdf::v12::Camera::SetRawPose | ( | const ignition::math::Pose3d & | _pose | ) |
Set the pose of the camera.
[in] | _pose | The new camera pose. |
void sdf::v12::Camera::SetSaveFrames | ( | bool | _save | ) |
Set whether frames should be saved.
[in] | _save | True if image frames should be saved. |
void sdf::v12::Camera::SetSaveFramesPath | ( | const std::string & | _path | ) |
Set the path in which to save frames.
[in] | _path | Path to save frames. |
void sdf::v12::Camera::SetSegmentationType | ( | const std::string & | _type | ) |
Set the segmentation type.
[in] | _type | The segmentation type. |
void sdf::v12::Camera::SetTriggered | ( | bool | _triggered | ) |
Set whether the camera should be triggered by a topic.
[in] | _triggered | True if the camera should be triggered by a topic. |
void sdf::v12::Camera::SetTriggerTopic | ( | const std::string & | _triggerTopic | ) |
Set the topic that will trigger the camera.
[in] | _triggerTopic | Topic for the camera trigger. |
void sdf::v12::Camera::SetVisibilityMask | ( | uint32_t | _mask | ) |
Set the visibility mask of a camera.
[in] | _mask | visibility mask |
sdf::ElementPtr sdf::v12::Camera::ToElement | ( | ) | const |
bool sdf::v12::Camera::Triggered | ( | ) | const |
Get whether the camera is triggered by a topic.
std::string sdf::v12::Camera::TriggerTopic | ( | ) | const |
Get the topic that will trigger the camera.
uint32_t sdf::v12::Camera::VisibilityMask | ( | ) | const |
Get the visibility mask of a camera.