17 #ifndef GZ_SENSORS_CAMERASENSOR_HH_
18 #define GZ_SENSORS_CAMERASENSOR_HH_
24 #include <gz/msgs/boolean.pb.h>
25 #include <gz/msgs/image.pb.h>
29 #include <gz/utils/SuppressWarning.hh>
35 #pragma warning(disable: 4251)
37 #include <gz/rendering/Camera.hh>
42 #include "gz/sensors/camera/Export.hh"
43 #include "gz/sensors/config.hh"
44 #include "gz/sensors/Export.hh"
52 inline namespace GZ_SENSORS_VERSION_NAMESPACE {
55 class CameraSensorPrivate;
75 public:
virtual bool Load(
const sdf::Sensor &_sdf)
override;
80 public:
virtual bool Load(sdf::ElementPtr _sdf)
override;
84 public:
virtual bool Init()
override;
92 const std::chrono::steady_clock::duration &_now)
override;
104 void(
const gz::msgs::Image &)> _callback);
109 gz::rendering::ScenePtr _scene)
override;
160 rendering::CameraPtr _camera, sdf::Camera &_cameraSdf);
181 const std::chrono::steady_clock::duration &_now);
185 private:
bool CreateCamera();
190 private:
void OnSceneChange(gz::rendering::ScenePtr );
192 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
196 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING