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);
92 protected:
virtual bool UpdateImpl(
const bool _force);
95 protected:
virtual void Fini();
98 private:
void OnContacts(ConstContactsPtr &_msg);
102 private: std::unique_ptr<SonarSensorPrivate> dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:26
Sensor with sonar cone.
Definition: SonarSensor.hh:42
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:134
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
Base class for sensors.
Definition: Sensor.hh:51