17 #ifndef SDF_CAMERA_HH_ 18 #define SDF_CAMERA_HH_ 21 #include <ignition/math/Pose3.hh> 26 #include <sdf/sdf_config.h> 31 inline namespace SDF_VERSION_NAMESPACE {
92 public:
bool operator==(
const Camera &_alt)
const;
98 public:
bool operator!=(
const Camera &_alt)
const;
116 public: std::string Name()
const;
120 public:
void SetName(
const std::string &_name);
124 public: ignition::math::Angle HorizontalFov()
const;
128 public:
void SetHorizontalFov(
const ignition::math::Angle &_hfov);
132 public: uint32_t ImageWidth()
const;
136 public:
void SetImageWidth(uint32_t _width);
140 public: uint32_t ImageHeight()
const;
144 public:
void SetImageHeight(uint32_t _height);
157 public: std::string PixelFormatStr()
const;
161 public:
void SetPixelFormatStr(
const std::string &_fmt);
165 public:
double NearClip()
const;
169 public:
void SetNearClip(
double _near);
173 public:
double FarClip()
const;
177 public:
void SetFarClip(
double _far);
181 public:
bool SaveFrames()
const;
185 public:
void SetSaveFrames(
bool _save);
189 public:
const std::string &SaveFramesPath()
const;
193 public:
void SetSaveFramesPath(
const std::string &_path);
197 public:
const Noise &ImageNoise()
const;
201 public:
void SetImageNoise(
const Noise &_noise);
205 public:
double DistortionK1()
const;
209 public:
void SetDistortionK1(
double _k1);
213 public:
double DistortionK2()
const;
217 public:
void SetDistortionK2(
double _k2);
221 public:
double DistortionK3()
const;
225 public:
void SetDistortionK3(
double _k3);
229 public:
double DistortionP1()
const;
233 public:
void SetDistortionP1(
double _p1);
237 public:
double DistortionP2()
const;
241 public:
void SetDistortionP2(
double _p2);
245 public:
const ignition::math::Vector2d &DistortionCenter()
const;
249 public:
void SetDistortionCenter(
250 const ignition::math::Vector2d &_center)
const;
256 public:
const ignition::math::Pose3d &Pose()
const 263 public:
void SetPose(
const ignition::math::Pose3d &_pose)
269 public:
const ignition::math::Pose3d &RawPose()
const;
274 public:
void SetRawPose(
const ignition::math::Pose3d &_pose);
280 public:
const std::string &PoseRelativeTo()
const;
286 public:
void SetPoseRelativeTo(
const std::string &_frame);
293 public:
const std::string &PoseFrame()
const 301 public:
void SetPoseFrame(
const std::string &_frame)
310 public: std::string LensType()
const;
315 public:
void SetLensType(
const std::string &_type);
320 public:
bool LensScaleToHfov()
const;
325 public:
void SetLensScaleToHfov(
bool _scale);
329 public:
double LensC1()
const;
333 public:
void SetLensC1(
double _c1);
337 public:
double LensC2()
const;
341 public:
void SetLensC2(
double _c2);
345 public:
double LensC3()
const;
349 public:
void SetLensC3(
double _c3);
353 public:
double LensFocalLength()
const;
357 public:
void SetLensFocalLength(
double _f);
362 public:
const std::string &LensFunction()
const;
367 public:
void SetLensFunction(
const std::string &_fun);
372 public: ignition::math::Angle LensCutoffAngle()
const;
377 public:
void SetLensCutoffAngle(
const ignition::math::Angle &_angle);
382 public:
int LensEnvironmentTextureSize()
const;
387 public:
void SetLensEnvironmentTextureSize(
int _size);
391 public:
double LensIntrinsicsFx()
const;
395 public:
void SetLensIntrinsicsFx(
double _fx);
399 public:
double LensIntrinsicsFy()
const;
403 public:
void SetLensIntrinsicsFy(
double _fy);
407 public:
double LensIntrinsicsCx()
const;
411 public:
void SetLensIntrinsicsCx(
double _cx);
415 public:
double LensIntrinsicsCy()
const;
419 public:
void SetLensIntrinsicsCy(
double _cy);
423 public:
double LensIntrinsicsSkew()
const;
427 public:
void SetLensIntrinsicsSkew(
double _s);
433 const std::string &_format);
442 private: CameraPrivate *dataPtr;
class SDFORMAT_VISIBLE Element
Definition: Element.hh:49
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
The Noise class contains information about a noise model, such as a Gaussian distribution.
Definition: Noise.hh:49
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:74
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
PixelFormatType
The set of pixel formats.
Definition: Camera.hh:39
Information about a monocular camera sensor.
Definition: Camera.hh:63
namespace for Simulation Description Format parser
Definition: Actor.hh:32
#define SDF_DEPRECATED(version)
Definition: Types.hh:38