corelib
include
rtabmap
core
GPS.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2010-2018, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
3
All rights reserved.
4
5
Redistribution and use in source and binary forms, with or without
6
modification, are permitted provided that the following conditions are met:
7
* Redistributions of source code must retain the above copyright
8
notice, this list of conditions and the following disclaimer.
9
* Redistributions in binary form must reproduce the above copyright
10
notice, this list of conditions and the following disclaimer in the
11
documentation and/or other materials provided with the distribution.
12
* Neither the name of the Universite de Sherbrooke nor the
13
names of its contributors may be used to endorse or promote products
14
derived from this software without specific prior written permission.
15
16
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
*/
27
28
#ifndef CORELIB_INCLUDE_RTABMAP_CORE_GPS_H_
29
#define CORELIB_INCLUDE_RTABMAP_CORE_GPS_H_
30
31
#include <
rtabmap/core/GeodeticCoords.h
>
32
33
namespace
rtabmap
{
34
35
class
GPS
36
{
37
public
:
38
GPS
():
39
stamp_
(0.0),
40
longitude_
(0.0),
41
latitude_
(0.0),
42
altitude_
(0.0),
43
error_
(0.0),
44
bearing_
(0.0)
45
{}
46
GPS
(
const
double
&
stamp
,
47
const
double
&
longitude
,
48
const
double
&
latitude
,
49
const
double
&
altitude
,
50
const
double
&
error
,
51
const
double
&
bearing
):
52
stamp_
(stamp),
53
longitude_
(longitude),
54
latitude_
(latitude),
55
altitude_
(altitude),
56
error_
(error),
57
bearing_
(bearing)
58
{}
59
const
double
&
stamp
()
const
{
return
stamp_
;}
60
const
double
&
longitude
()
const
{
return
longitude_
;}
61
const
double
&
latitude
()
const
{
return
latitude_
;}
62
const
double
&
altitude
()
const
{
return
altitude_
;}
63
const
double
&
error
()
const
{
return
error_
;}
64
const
double
&
bearing
()
const
{
return
bearing_
;}
65
66
GeodeticCoords
toGeodeticCoords
()
const
{
return
GeodeticCoords
(
latitude_
,
longitude_
,
altitude_
);}
67
private
:
68
double
stamp_
;
// in sec
69
double
longitude_
;
// DD
70
double
latitude_
;
// DD
71
double
altitude_
;
// m
72
double
error_
;
// m
73
double
bearing_
;
// deg (North 0->360 clockwise)
74
};
75
76
}
77
78
#endif
/* CORELIB_INCLUDE_RTABMAP_CORE_GPS_H_ */
rtabmap::GPS::error_
double error_
Definition:
GPS.h:72
rtabmap::GPS::error
const double & error() const
Definition:
GPS.h:63
rtabmap::GPS::stamp
const double & stamp() const
Definition:
GPS.h:59
rtabmap::GPS::GPS
GPS(const double &stamp, const double &longitude, const double &latitude, const double &altitude, const double &error, const double &bearing)
Definition:
GPS.h:46
rtabmap
Definition:
CameraARCore.cpp:35
rtabmap::GPS::altitude
const double & altitude() const
Definition:
GPS.h:62
rtabmap::GPS::bearing
const double & bearing() const
Definition:
GPS.h:64
GeodeticCoords.h
rtabmap::GeodeticCoords
Definition:
GeodeticCoords.h:52
rtabmap::GPS::toGeodeticCoords
GeodeticCoords toGeodeticCoords() const
Definition:
GPS.h:66
rtabmap::GPS::stamp_
double stamp_
Definition:
GPS.h:68
rtabmap::GPS::latitude_
double latitude_
Definition:
GPS.h:70
rtabmap::GPS::longitude
const double & longitude() const
Definition:
GPS.h:60
rtabmap::GPS::longitude_
double longitude_
Definition:
GPS.h:69
rtabmap::GPS::latitude
const double & latitude() const
Definition:
GPS.h:61
rtabmap::GPS::bearing_
double bearing_
Definition:
GPS.h:73
rtabmap::GPS
Definition:
GPS.h:35
rtabmap::GPS::GPS
GPS()
Definition:
GPS.h:38
rtabmap::GPS::altitude_
double altitude_
Definition:
GPS.h:71
rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:37:28