Public Member Functions | Private Attributes
rail::spatial_temporal_learning::GeoLifeEntry Class Reference

The GeoLife entry contains a timestamp with latitude and longitude information. More...

#include <GeoLifeEntry.h>

List of all members.

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::TimegetTime () const
 Time value accessor (immutable).
ros::TimegetTime ()
 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_

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
latitudeThe latitude value (defaults to 0).
longitudeThe longitude value (defaults to 0).
timeThe ros::Time of the GeoLife data entry (defaults to 0 time).

Definition at line 16 of file GeoLifeEntry.cpp.


Member Function Documentation

double GeoLifeEntry::getLatitude ( ) const

Latitude value accessor.

Get the latitude value of this GeoLifeEntry.

Returns:
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.

Returns:
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.

Returns:
The time value of this GeoLifeEntry.

Definition at line 42 of file GeoLifeEntry.cpp.

Time value accessor.

Get the time value of this GeoLifeEntry.

Returns:
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.

Parameters:
latitudeThe 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.

Parameters:
longitudeThe 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.

Parameters:
timeThe new time value of this GeoLifeEntry.

Definition at line 52 of file GeoLifeEntry.cpp.


Member Data Documentation

Latitude and longitude information.

Definition at line 107 of file GeoLifeEntry.h.

Definition at line 107 of file GeoLifeEntry.h.

The GeoLife timestamp value.

Definition at line 109 of file GeoLifeEntry.h.


The documentation for this class was generated from the following files:


world_item_search
Author(s): Russell Toris
autogenerated on Fri Feb 12 2016 00:24:30