17 #ifndef GZ_SENSORS_LIDAR_HH_
18 #define GZ_SENSORS_LIDAR_HH_
24 #include <gz/utils/SuppressWarning.hh>
25 #include <gz/common/Event.hh>
27 #include "gz/sensors/lidar/Export.hh"
35 inline namespace GZ_SENSORS_VERSION_NAMESPACE {
61 const std::chrono::steady_clock::duration &_now)
override;
72 const std::chrono::steady_clock::duration &_now);
77 public:
virtual bool Load(
const sdf::Sensor &_sdf)
override;
82 public:
virtual bool Load(sdf::ElementPtr _sdf)
override;
86 public:
virtual bool Init()
override;
96 protected:
virtual void Fini();
180 public:
double Range(
const int _index)
const;
195 public:
double Retro(
const int _index)
const;
206 public:
int Fiducial(
const unsigned int _index)
const;
252 private:
double Clamp(
double _range)
const;
254 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
257 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
260 public:
float *laserBuffer =
nullptr;
263 public:
bool initialized =
false;
274 unsigned int _heighti,
unsigned int _channels,
277 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
281 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING