The GeoLife entry contains a timestamp with latitude and longitude information. More...
#include <GeoLifeEntry.h>
Public Member Functions | |
GeoLifeEntry (const double latitude=0, const double longitude=0, const ros::Time &time=ros::Time(0)) | |
Create a new GeoLifeEntry. | |
double | getLatitude () const |
Latitude value accessor. | |
double | getLongitude () const |
Longitude value accessor. | |
const ros::Time & | getTime () const |
Time value accessor (immutable). | |
ros::Time & | getTime () |
Time value accessor. | |
void | setLatitude (const double latitude) |
Latitude value mutator. | |
void | setLongitude (const double longitude) |
Longitude value mutator. | |
void | setTime (const ros::Time &time) |
Time value mutator. | |
Private Attributes | |
double | latitude_ |
double | longitude_ |
ros::Time | time_ |
The GeoLife entry contains a timestamp with latitude and longitude information.
An GeoLife entry simply contains latitude and longitude information with an associated ROS timestamp.
Definition at line 28 of file GeoLifeEntry.h.
GeoLifeEntry::GeoLifeEntry | ( | const double | latitude = 0 , |
const double | longitude = 0 , |
||
const ros::Time & | time = ros::Time(0) |
||
) |
Create a new GeoLifeEntry.
Create a new GeoLifeEntry with the given latitude, longitude, and associated ROS timestamp.
latitude | The latitude value (defaults to 0). |
longitude | The longitude value (defaults to 0). |
time | The ros::Time of the GeoLife data entry (defaults to 0 time). |
Definition at line 16 of file GeoLifeEntry.cpp.
double GeoLifeEntry::getLatitude | ( | ) | const |
Latitude value accessor.
Get the latitude value of this GeoLifeEntry.
Definition at line 22 of file GeoLifeEntry.cpp.
double GeoLifeEntry::getLongitude | ( | ) | const |
Longitude value accessor.
Get the longitude value of this GeoLifeEntry.
Definition at line 32 of file GeoLifeEntry.cpp.
const ros::Time & GeoLifeEntry::getTime | ( | ) | const |
Time value accessor (immutable).
Get the time value of this GeoLifeEntry.
Definition at line 42 of file GeoLifeEntry.cpp.
Time value accessor.
Get the time value of this GeoLifeEntry.
Definition at line 47 of file GeoLifeEntry.cpp.
void GeoLifeEntry::setLatitude | ( | const double | latitude | ) |
Latitude value mutator.
Set the latitude value of this GeoLifeEntry.
latitude | The new latitude value of this GeoLifeEntry. |
Definition at line 27 of file GeoLifeEntry.cpp.
void GeoLifeEntry::setLongitude | ( | const double | longitude | ) |
Longitude value mutator.
Set the longitude value of this GeoLifeEntry.
longitude | The new longitude value of this GeoLifeEntry. |
Definition at line 37 of file GeoLifeEntry.cpp.
void GeoLifeEntry::setTime | ( | const ros::Time & | time | ) |
Time value mutator.
Set the time value of this GeoLifeEntry.
time | The new time value of this GeoLifeEntry. |
Definition at line 52 of file GeoLifeEntry.cpp.
double rail::spatial_temporal_learning::GeoLifeEntry::latitude_ [private] |
Latitude and longitude information.
Definition at line 107 of file GeoLifeEntry.h.
double rail::spatial_temporal_learning::GeoLifeEntry::longitude_ [private] |
Definition at line 107 of file GeoLifeEntry.h.
The GeoLife timestamp value.
Definition at line 109 of file GeoLifeEntry.h.