17 #ifndef IGNITION_SENSORS_SENSOR_HH_ 18 #define IGNITION_SENSORS_SENSOR_HH_ 20 #include <ignition/msgs/header.pb.h> 25 #include <ignition/common/Time.hh> 26 #include <ignition/math/Pose3.hh> 27 #include <ignition/sensors/config.hh> 28 #include <ignition/sensors/Export.hh> 36 inline namespace IGNITION_SENSORS_VERSION_NAMESPACE {
50 class IGNITION_SENSORS_VISIBLE
Sensor 61 public:
virtual bool Load(
const sdf::Sensor &_sdf);
66 public:
virtual bool Load(sdf::ElementPtr _sdf);
69 public:
virtual bool Init();
84 public:
virtual bool Update(
const common::Time &_now) = 0;
87 public: common::Time NextUpdateTime()
const;
102 public:
bool Update(
const common::Time &_now,
const bool _force);
109 public:
double UpdateRate()
const;
115 public:
void SetUpdateRate(
const double _hz);
119 public: ignition::math::Pose3d Pose()
const;
122 public:
void SetPose(
const ignition::math::Pose3d &_pose);
125 public:
virtual void SetParent(
const std::string &_parent);
151 public: sdf::ElementPtr SDF()
const;
171 public:
void AddSequence(ignition::msgs::Header *_msg,
a base sensor class
Definition: Sensor.hh:50
const SensorId NO_SENSOR
Definition: Sensor.hh:40
Definition: AirPressureSensor.hh:31