Go to the documentation of this file.
17 #ifndef GZ_SENSORS_CAMERASENSOR_HH_
18 #define GZ_SENSORS_CAMERASENSOR_HH_
26 #include <gz/common/PluginMacros.hh>
27 #include <gz/common/SuppressWarning.hh>
28 #include <gz/common/Time.hh>
32 #pragma warning(disable: 4005)
33 #pragma warning(disable: 4251)
35 #include <ignition/msgs.hh>
44 #pragma warning(disable: 4251)
46 #include <gz/rendering/Camera.hh>
51 #include "gz/sensors/camera/Export.hh"
52 #include "gz/sensors/config.hh"
53 #include "gz/sensors/Export.hh"
61 inline namespace IGNITION_SENSORS_VERSION_NAMESPACE {
64 class CameraSensorPrivate;
84 public:
virtual bool Load(
const sdf::Sensor &_sdf)
override;
89 public:
virtual bool Load(sdf::ElementPtr _sdf)
override;
93 public:
virtual bool Init()
override;
98 public:
virtual bool Update(
const common::Time &_now)
override;
108 public: gz::common::ConnectionPtr ConnectImageCallback(
110 void(
const gz::msgs::Image &)> _callback);
114 public:
virtual void SetScene(
115 gz::rendering::ScenePtr _scene)
override;
119 public:
virtual unsigned int ImageWidth()
const;
123 public:
virtual unsigned int ImageHeight()
const;
127 public: rendering::CameraPtr RenderingCamera()
const;
136 public:
void SetBaseline(
double _baseline);
140 public:
double Baseline()
const;
144 protected:
bool AdvertiseInfo();
151 protected:
bool AdvertiseInfo(
const std::string &_topic);
156 protected:
void PopulateInfo(
const sdf::Camera *_cameraSdf);
160 protected:
void PublishInfo(
const gz::common::Time &_now);
164 private:
bool CreateCamera();
169 private:
void OnSceneChange(gz::rendering::ScenePtr );
171 IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
175 IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
a rendering sensor class
Definition: gz/sensors/RenderingSensor.hh:52
Definition: gz/sensors/AirPressureSensor.hh:32
Camera Sensor Class.
Definition: gz/sensors/CameraSensor.hh:73