Go to the documentation of this file.
17 #ifndef _GAZEBO_SENSORS_WIRELESSTRANSCEIVER_HH_
18 #define _GAZEBO_SENSORS_WIRELESSTRANSCEIVER_HH_
21 #include <ignition/math/Pose3.hh>
46 public:
virtual std::string Topic()
const;
49 public:
virtual void Load(
const std::string &_worldName);
52 public:
virtual void Init();
55 public:
virtual void Fini();
59 public:
double Gain()
const;
63 public:
double Power()
const;
69 protected:
double power = 14.5;
72 protected:
double gain = 2.5;
double power
Receiver's power (dBm).
Definition: WirelessTransceiver.hh:69
Forward declarations for the common classes.
Definition: Animation.hh:26
sensors
Definition: SensorManager.hh:35
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
Forward declarations for transport.
WirelessTransceiver()
Constructor.
transport::PublisherPtr pub
Publisher to publish propagation model data.
Definition: WirelessTransceiver.hh:66
default namespace for gazebo
virtual void Load(const std::string &_worldName)
Load the sensor with default parameters.
double Power() const
Returns the receiver power (dBm).
boost::weak_ptr< physics::Link > parentEntity
Parent entity which the sensor is attached to.
Definition: WirelessTransceiver.hh:75
~WirelessTransceiver()
Constructor.
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
virtual std::string Topic() const
Returns the topic name as set in SDF.
virtual void Init()
Initialize the sensor.
Base class for sensors.
Definition: Sensor.hh:51
ignition::math::Pose3d referencePose
Sensor reference pose.
Definition: WirelessTransceiver.hh:78
virtual void Fini()
Finalize the sensor.
Sensor class for receiving wireless signals.
Definition: WirelessTransceiver.hh:37
double Gain() const
Returns the antenna's gain of the receiver (dBi).
double gain
Antenna's gain of the receiver (dBi).
Definition: WirelessTransceiver.hh:72