17 #ifndef _GAZEBO_SENSORS_SONARSENSOR_HH_
18 #define _GAZEBO_SENSORS_SONARSENSOR_HH_
33 class SonarSensorPrivate;
51 public:
virtual void Load(
const std::string &_worldName);
54 public:
virtual void Init();
57 public:
virtual std::string Topic()
const;
61 public:
double RangeMin()
const;
65 public:
double RangeMax()
const;
69 public:
double Radius()
const;
79 public:
double Range();
83 public:
virtual bool IsActive()
const;
89 std::function<
void (msgs::SonarStamped)> _subscriber);
98 protected:
virtual bool UpdateImpl(
const bool _force);
101 protected:
virtual void Fini();
104 private:
void OnContacts(ConstContactsPtr &_msg);
108 private: std::unique_ptr<SonarSensorPrivate> dataPtr;
Sensor with sonar cone.
Definition: SonarSensor.hh:42
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:134
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:302
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
Base class for sensors.
Definition: Sensor.hh:51
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:58