18 #ifndef GZ_SENSORS_BOUNDINGBOXCAMERASENSOR_HH_
19 #define GZ_SENSORS_BOUNDINGBOXCAMERASENSOR_HH_
24 #include <gz/rendering/BoundingBoxCamera.hh>
25 #include <sdf/Sensor.hh>
28 #include "gz/sensors/boundingbox_camera/Export.hh"
35 inline namespace GZ_SENSORS_VERSION_NAMESPACE {
37 class BoundingBoxCameraSensorPrivate;
46 class GZ_SENSORS_BOUNDINGBOX_CAMERA_VISIBLE
58 public:
virtual bool Load(
const sdf::Sensor &_sdf)
override;
63 public:
virtual bool Load(sdf::ElementPtr _sdf)
override;
67 public:
virtual bool Init()
override;
72 public:
virtual bool Update(
73 const std::chrono::steady_clock::duration &_now)
override;
77 public:
virtual rendering::BoundingBoxCameraPtr
78 BoundingBoxCamera()
const;
82 public:
void OnNewBoundingBoxes(
87 public:
virtual void SetScene(
88 rendering::ScenePtr _scene)
override;
92 public:
virtual unsigned int ImageWidth()
const override;
96 public:
virtual unsigned int ImageHeight()
const override;
100 public:
virtual bool HasConnections()
const override;
104 private:
bool CreateCamera();
108 private:
void OnTrigger(
const gz::msgs::Boolean &);
110 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
114 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING