WavefieldModelPlugin.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Rhys Mainwaring
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
20 
21 #ifndef _ASV_WAVE_SIM_GAZEBO_PLUGINS_WAVEFIELD_MODEL_PLUGIN_HH_
22 #define _ASV_WAVE_SIM_GAZEBO_PLUGINS_WAVEFIELD_MODEL_PLUGIN_HH_
23 
24 #include <memory>
25 #include <string>
26 
27 #include <gazebo/gazebo.hh>
28 #include <gazebo/common/Plugin.hh>
29 #include <gazebo/physics/physics.hh>
30 
31 namespace asv
32 {
34 // WavefieldModelPlugin
35 
36  // Forward declarations
37  class WavefieldModelPluginPrivate;
38  class WaveParameters;
39 
114  class GAZEBO_VISIBLE WavefieldModelPlugin : public gazebo::ModelPlugin
115  {
117  public: virtual ~WavefieldModelPlugin();
118 
120  public: WavefieldModelPlugin();
121 
122  // Documentation inherited.
123  public: void Load(gazebo::physics::ModelPtr _model, sdf::ElementPtr _sdf);
124 
125  // Documentation inherited.
126  public: void Init();
127 
128  // Documentation inherited.
129  public: void Fini();
130 
131  // Documentation inherited.
132  public: void Reset();
133 
141  public: static std::shared_ptr<const WaveParameters> GetWaveParams(
142  gazebo::physics::WorldPtr _world,
143  const std::string& _waveModelName);
144 
147  private: void OnUpdate();
150  private: std::shared_ptr<WavefieldModelPluginPrivate> data;
151  };
152 }
153 
154 #endif // _ASV_WAVE_SIM_GAZEBO_PLUGINS_WAVEFIELD_MODEL_PLUGIN_HH_
std::shared_ptr< WavefieldModelPluginPrivate > data
A Gazebo model plugin to simulate water waves.
Definition: Geometry.hh:28


wave_gazebo_plugins
Author(s): Rhys Mainwaring
autogenerated on Thu May 7 2020 03:54:44