17 #ifndef _GAZEBO_SPHERICALCOORDINATES_HH_
18 #define _GAZEBO_SPHERICALCOORDINATES_HH_
22 #include <ignition/math/Angle.hh>
23 #include <ignition/math/Vector3.hh>
34 class SphericalCoordinatesPrivate;
80 const ignition::math::Angle &_latitude,
81 const ignition::math::Angle &_longitude,
83 const ignition::math::Angle &_heading);
101 public: ignition::math::Vector3d SphericalFromLocal(
102 const ignition::math::Vector3d &_xyz)
const;
117 public: ignition::math::Vector3d GlobalFromLocal(
118 const ignition::math::Vector3d &_xyz)
const;
123 public:
static SurfaceType
Convert(
const std::string &_str);
136 public:
static double Distance(
const math::Angle &_latA,
150 public:
static double Distance(
const ignition::math::Angle &_latA,
151 const ignition::math::Angle &_lonA,
152 const ignition::math::Angle &_latB,
153 const ignition::math::Angle &_lonB);
158 public: SurfaceType GetSurfaceType()
const;
168 public: ignition::math::Angle LatitudeReference() const;
178 public: ignition::math::Angle LongitudeReference() const;
182 public:
double GetElevationReference() const;
190 public: math::Angle GetHeadingOffset() const GAZEBO_DEPRECATED(6.0);
196 public: ignition::math::Angle HeadingOffset() const;
200 public:
void SetSurfaceType(const SurfaceType &_type);
206 public:
void SetLatitudeReference(const math::Angle &_angle)
207 GAZEBO_DEPRECATED(6.0);
211 public:
void SetLatitudeReference(const ignition::math::Angle &_angle);
217 public:
void SetLongitudeReference(const math::Angle &_angle)
218 GAZEBO_DEPRECATED(6.0);
222 public:
void SetLongitudeReference(const ignition::math::Angle &_angle);
226 public:
void SetElevationReference(
double _elevation);
232 public:
void SetHeadingOffset(const math::Angle &_angle)
233 GAZEBO_DEPRECATED(6.0);
237 public:
void SetHeadingOffset(const ignition::math::Angle &_angle);
Convert spherical coordinates for planetary surfaces.
Definition: SphericalCoordinates.hh:41
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
#define GAZEBO_DEPRECATED(version)
Definition: CommonTypes.hh:47
GAZEBO_VISIBLE msgs::Vector3d Convert(const math::Vector3 &_v) GAZEBO_DEPRECATED(6.0)
Convert a math::Vector3 to a msgs::Vector3d.
#define GZ_COMMON_VISIBLE
Definition: system.hh:91
commmon/common.hh
Definition: SphericalCoordinatesPrivate.hh:39
An angle and related functions.
Definition: Angle.hh:53
SurfaceType
Unique identifiers for planetary surface models.
Definition: SphericalCoordinates.hh:45