17 #ifndef SDF_CAMERA_HH_ 18 #define SDF_CAMERA_HH_ 21 #include <ignition/math/Pose3.hh> 22 #include <ignition/utils/ImplPtr.hh> 27 #include <sdf/sdf_config.h> 32 inline namespace SDF_VERSION_NAMESPACE {
68 public:
bool operator==(
const Camera &_alt)
const;
74 public:
bool operator!=(
const Camera &_alt)
const;
92 public: std::string Name()
const;
96 public:
void SetName(
const std::string &_name);
100 public: ignition::math::Angle HorizontalFov()
const;
104 public:
void SetHorizontalFov(
const ignition::math::Angle &_hfov);
108 public: uint32_t ImageWidth()
const;
112 public:
void SetImageWidth(uint32_t _width);
116 public: uint32_t ImageHeight()
const;
120 public:
void SetImageHeight(uint32_t _height);
133 public: std::string PixelFormatStr()
const;
137 public:
void SetPixelFormatStr(
const std::string &_fmt);
141 public:
double DepthNearClip()
const;
145 public:
void SetDepthNearClip(
double _near);
149 public:
double DepthFarClip()
const;
153 public:
void SetDepthFarClip(
double _far);
157 public:
double NearClip()
const;
161 public:
void SetNearClip(
double _near);
165 public:
void SetHasDepthCamera(
bool _camera);
169 public:
bool HasDepthCamera()
const;
175 public:
void SetHasDepthNearClip(
bool _near);
179 public:
bool HasDepthNearClip()
const;
185 public:
void SetHasDepthFarClip(
bool _far);
189 public:
bool HasDepthFarClip()
const;
193 public:
double FarClip()
const;
197 public:
void SetFarClip(
double _far);
201 public:
bool SaveFrames()
const;
205 public:
void SetSaveFrames(
bool _save);
209 public:
const std::string &SaveFramesPath()
const;
213 public:
void SetSaveFramesPath(
const std::string &_path);
217 public:
const Noise &ImageNoise()
const;
221 public:
void SetImageNoise(
const Noise &_noise);
225 public:
double DistortionK1()
const;
229 public:
void SetDistortionK1(
double _k1);
233 public:
double DistortionK2()
const;
237 public:
void SetDistortionK2(
double _k2);
241 public:
double DistortionK3()
const;
245 public:
void SetDistortionK3(
double _k3);
249 public:
double DistortionP1()
const;
253 public:
void SetDistortionP1(
double _p1);
257 public:
double DistortionP2()
const;
261 public:
void SetDistortionP2(
double _p2);
265 public:
const ignition::math::Vector2d &DistortionCenter()
const;
269 public:
void SetDistortionCenter(
const ignition::math::Vector2d &_center);
274 public:
const ignition::math::Pose3d &RawPose()
const;
279 public:
void SetRawPose(
const ignition::math::Pose3d &_pose);
285 public:
const std::string &PoseRelativeTo()
const;
291 public:
void SetPoseRelativeTo(
const std::string &_frame);
299 public: std::string LensType()
const;
304 public:
void SetLensType(
const std::string &_type);
309 public:
bool LensScaleToHfov()
const;
314 public:
void SetLensScaleToHfov(
bool _scale);
318 public:
double LensC1()
const;
322 public:
void SetLensC1(
double _c1);
326 public:
double LensC2()
const;
330 public:
void SetLensC2(
double _c2);
334 public:
double LensC3()
const;
338 public:
void SetLensC3(
double _c3);
342 public:
double LensFocalLength()
const;
346 public:
void SetLensFocalLength(
double _f);
351 public:
const std::string &LensFunction()
const;
356 public:
void SetLensFunction(
const std::string &_fun);
361 public: ignition::math::Angle LensCutoffAngle()
const;
366 public:
void SetLensCutoffAngle(
const ignition::math::Angle &_angle);
371 public:
int LensEnvironmentTextureSize()
const;
376 public:
void SetLensEnvironmentTextureSize(
int _size);
380 public:
double LensIntrinsicsFx()
const;
384 public:
void SetLensIntrinsicsFx(
double _fx);
388 public:
double LensIntrinsicsFy()
const;
392 public:
void SetLensIntrinsicsFy(
double _fy);
396 public:
double LensIntrinsicsCx()
const;
400 public:
void SetLensIntrinsicsCx(
double _cx);
404 public:
double LensIntrinsicsCy()
const;
408 public:
void SetLensIntrinsicsCy(
double _cy);
412 public:
double LensIntrinsicsSkew()
const;
416 public:
void SetLensIntrinsicsSkew(
double _s);
422 const std::string &_format);
431 public: uint32_t VisibilityMask()
const;
435 public:
void SetVisibilityMask(uint32_t _mask);
438 IGN_UTILS_IMPL_PTR(dataPtr)
PixelFormatType
The set of pixel formats.
Definition: Camera.hh:36
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:98
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:41
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
Information about a monocular camera sensor.
Definition: Camera.hh:60
class SDFORMAT_VISIBLE Element
Definition: Element.hh:49
namespace for Simulation Description Format parser
Definition: Actor.hh:33
The Noise class contains information about a noise model, such as a Gaussian distribution.
Definition: Noise.hh:47