##

WirelessReceiver.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef _GAZEBO_SENSORS_WIRELESSRECEIVER_HH_
#define _GAZEBO_SENSORS_WIRELESSRECEIVER_HH_
#include <memory>
#include <string>
#include "gazebo/physics/PhysicsTypes.hh"
#include "gazebo/sensors/WirelessTransceiver.hh"
#include "gazebo/transport/TransportTypes.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace sensors
{
// Forward declare private data
class WirelessReceiverPrivate;
class GZ_SENSORS_VISIBLE WirelessReceiver: public WirelessTransceiver
{
public: WirelessReceiver();
public: virtual ~WirelessReceiver();
// Documentation inherited
public: virtual void Load(const std::string &_worldName);
// Documentation inherited
public: virtual void Init();
// Documentation inherited
public: virtual void Fini();
public: double MinFreqFiltered() const;
public: double MaxFreqFiltered() const;
public: double Sensitivity() const;
// Documentation inherited
protected: virtual bool UpdateImpl(const bool _force);
private: std::unique_ptr<WirelessReceiverPrivate> dataPtr;
};
}
}
#endif
gazebo::sensors::WirelessReceiver::Fini
virtual void Fini()
Finalize the sensor.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
sensors
sensors
Definition: SensorManager.hh:35
TransportTypes.hh
Forward declarations for transport.
gazebo::sensors::WirelessReceiver::Init
virtual void Init()
Initialize the sensor.
gazebo::sensors::WirelessReceiver::Sensitivity
double Sensitivity() const
Returns the receiver sensitivity (dBm).
system.hh
PhysicsTypes.hh
default namespace for gazebo
WirelessTransceiver.hh
gazebo::sensors::WirelessReceiver::MaxFreqFiltered
double MaxFreqFiltered() const
Returns the maximum frequency filtered (MHz).
gazebo::sensors::WirelessReceiver::UpdateImpl
virtual bool UpdateImpl(const bool _force)
This gets overwritten by derived sensor types.
gazebo::sensors::WirelessReceiver::Load
virtual void Load(const std::string &_worldName)
Load the sensor with default parameters.
gazebo::sensors::WirelessReceiver::MinFreqFiltered
double MinFreqFiltered() const
Returns the minimum frequency filtered (MHz).
gazebo::msgs::Init
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gazebo::sensors::WirelessReceiver::WirelessReceiver
WirelessReceiver()
Constructor.
gazebo::sensors::WirelessReceiver
Sensor class for receiving wireless signals.
Definition: WirelessReceiver.hh:39
gazebo::sensors::WirelessReceiver::~WirelessReceiver
virtual ~WirelessReceiver()
Destructor.
gazebo::sensors::WirelessTransceiver
Sensor class for receiving wireless signals.
Definition: WirelessTransceiver.hh:37