Utilities.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 _WAVE_GAZEBO_PLUGINS_UTILITIES_HH_
22 #define _WAVE_GAZEBO_PLUGINS_UTILITIES_HH_
23 
24 #include <ignition/math/Vector2.hh>
25 #include <ignition/math/Vector3.hh>
26 
27 #include <string>
28 
30 // Forward Declarations
31 
32 namespace gazebo
33 {
34  namespace msgs
35  {
36  class Param_V;
37  }
38 }
39 
40 namespace sdf
41 {
42  class Element;
43 }
44 
45 namespace asv
46 {
48 // Utilities
49 
51  class Utilities
52  {
60  public: static bool SdfParamBool(sdf::Element& _sdf,
61  const std::string &_paramName, const bool _defaultVal);
62 
70 
71  public: static size_t SdfParamSizeT(sdf::Element& _sdf,
72  const std::string &_paramName, const size_t _defaultVal);
73 
81 
82  public: static double SdfParamDouble(sdf::Element& _sdf,
83  const std::string &_paramName, const double _defaultVal);
84 
92 
93  public: static std::string SdfParamString(sdf::Element& _sdf,
94  const std::string &_paramName, const std::string &_defaultVal);
95 
103 
104  public: static ignition::math::Vector2d SdfParamVector2(
105  sdf::Element& _sdf,
106  const std::string &_paramName,
107  const ignition::math::Vector2d _defaultVal);
108 
116 
117  public: static ignition::math::Vector3d SdfParamVector3(sdf::Element& _sdf,
118  const std::string &_paramName,
119  const ignition::math::Vector3d _defaultVal);
120  };
121 }
122 
123 #endif // _WAVE_GAZEBO_PLUGINS_UTILITIES_HH_
A collection of static methods for common tasks.
Definition: Utilities.hh:51
Definition: Geometry.hh:28
Definition: Utilities.hh:40


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