include
rotors_gazebo_plugins
sdf_api_wrapper.hpp
Go to the documentation of this file.
1
/*
2
* Copyright 2015 Fadri Furrer, ASL, ETH Zurich, Switzerland
3
* Copyright 2015 Michael Burri, ASL, ETH Zurich, Switzerland
4
* Copyright 2015 Mina Kamel, ASL, ETH Zurich, Switzerland
5
* Copyright 2015 Janosch Nikolic, ASL, ETH Zurich, Switzerland
6
* Copyright 2015 Markus Achtelik, ASL, ETH Zurich, Switzerland
7
*
8
* Licensed under the Apache License, Version 2.0 (the "License");
9
* you may not use this file except in compliance with the License.
10
* You may obtain a copy of the License at
11
*
12
* http://www.apache.org/licenses/LICENSE-2.0
13
14
* Unless required by applicable law or agreed to in writing, software
15
* distributed under the License is distributed on an "AS IS" BASIS,
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
* See the License for the specific language governing permissions and
18
* limitations under the License.
19
*/
20
21
22
#ifndef ROTORS_GAZEBO_PLUGINS_SDF_API_WRAPPER_H
23
#define ROTORS_GAZEBO_PLUGINS_SDF_API_WRAPPER_H
24
25
#include <gazebo/gazebo.hh>
26
27
namespace
gazebo
{
28
29
#if SDF_MAJOR_VERSION >= 3
30
typedef
ignition::math::Vector3d SdfVector3;
31
#else
32
class
SdfVector3 :
public
sdf::Vector3 {
33
/*
34
A wrapper class for deprecated sdf::Vector3 class to provide the same accessor
35
functions as in the newer ignition::math::Vector3 class.
36
*/
37
38
public
:
39
using
sdf::Vector3::Vector3;
40
virtual
~SdfVector3
() {}
41
44
double
X
() {
return
this->
x
; }
45
48
double
Y
() {
return
this->
y
; }
49
52
double
Z
() {
return
this->z; }
53
};
54
#endif
55
}
56
57
#endif // ROTORS_GAZEBO_PLUGINS_SDF_API_WRAPPER_H
gazebo
gazebo::SdfVector3::Y
double Y()
Get the y value.
Definition:
sdf_api_wrapper.hpp:48
gazebo::SdfVector3::Z
double Z()
Get the z value.
Definition:
sdf_api_wrapper.hpp:52
gazebo::SdfVector3::~SdfVector3
virtual ~SdfVector3()
Definition:
sdf_api_wrapper.hpp:40
gazebo::SdfVector3::X
double X()
Get the x value.
Definition:
sdf_api_wrapper.hpp:44
x
list x
y
list y
rotors_gazebo_plugins
Author(s): Fadri Furrer, Michael Burri, Mina Kamel, Janosch Nikolic, Markus Achtelik
autogenerated on Mon Feb 28 2022 23:39:04