18 #ifndef WAVE_GAZEBO_PLUGINS_WAVEGUAGE_PLUGIN_HH_    19 #define WAVE_GAZEBO_PLUGINS_WAVEGUAGE_PLUGIN_HH_    23 #include <gazebo/common/common.hh>    24 #include <gazebo/common/Event.hh>    25 #include <gazebo/common/Plugin.hh>    26 #include <gazebo/physics/physics.hh>    27 #include <ignition/math/Vector3.hh>    54     public: 
virtual void Load(physics::ModelPtr _model,
    55                               sdf::ElementPtr _sdf);
    58     public: 
virtual void Init();
    67     protected: physics::ModelPtr 
model;
 
A plugin that sets the model height (z) to be the same as the wave height calculated for the physics...
virtual void OnUpdate()
Callback for World Update events. 
physics::ModelPtr model
Pointer to the model. 
virtual void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf)
event::ConnectionPtr updateConnection
Connection to World Update events. 
double fluidLevel
The height of the fluid/air interface [m]. Defaults to 0. 
WaveguagePlugin()
Constructor. 
std::string waveModelName
The name of the wave model.