17 #ifndef GAZEBO_PHYSICS_WIND_HH_
18 #define GAZEBO_PHYSICS_WIND_HH_
23 #include <boost/any.hpp>
41 class GZ_PHYSICS_VISIBLE
Wind
46 public:
explicit Wind(
World &_world, sdf::ElementPtr _sdf);
49 public:
virtual ~
Wind();
53 public:
virtual void Load(sdf::ElementPtr _sdf);
63 public:
bool SetParam(
const std::string &_key,
64 const boost::any &_value);
70 public: boost::any Param(
const std::string &_key)
const;
77 public:
bool Param(
const std::string &_key, boost::any &_value)
const;
81 private:
void OnWindMsg(ConstWindPtr &_msg);
85 private:
void OnRequest(ConstRequestPtr &_msg);
91 public: ignition::math::Vector3d WorldLinearVel(
const Entity *_entity)
97 public: ignition::math::Vector3d RelativeLinearVel(
const Entity *_entity)
102 public:
const ignition::math::Vector3d& LinearVel(
void)
const;
106 public:
void SetLinearVel(
const ignition::math::Vector3d& _vel);
114 public:
void SetLinearVelFunc(std::function< ignition::math::Vector3d (
115 const Wind *_wind,
const Entity *_entity) > _linearVelFunc);
122 private: ignition::math::Vector3d LinearVelDefault(
const Wind *_wind,
127 private: std::unique_ptr<WindPrivate> dataPtr;
default namespace for gazebo
The world provides access to all other object within a simulated environment.
Definition: World.hh:68
Base class for wind.
Definition: Wind.hh:41
Base class for all physics objects in Gazebo.
Definition: Entity.hh:58