WaypointInterface Class Reference

#include <WaypointInterface.h>

Inheritance diagram for WaypointInterface:

BaseComponent

List of all members.


Detailed Description

GPS interface and waypoint manager.

Public Member Functions

 WaypointInterface ()
 Constructor; Takes nothing and simply registeres self with the main CMU IPC server.
 ~WaypointInterface ()
 Destructor.
int Update ()
 Parses gotten messages and commands.

Private Member Functions

Vector2< double > GetLocation ()
 Get current location.
Vector2< double > GetWaypoint ()
double GetWaypointDistance ()
 Get the distance between the current waypoint index and vehicle position.
double GetWaypointAngle ()
 Get the angle to our destination relative to north.
void ParseWaypointFile (const char *FileName)
 Parse the given file gps waypoint file name.

Private Attributes

queue< Vector2< double > > Waypoints
 GPS waypoints queue (In global meters poisition).
int WaypointTotal
 Total number of waypoints.
int WaypointIndex
 Which waypoint we are on.
int GPSQuality
 Number of connections this GPS has.

Constructor & Destructor Documentation

WaypointInterface::WaypointInterface (  ) 

Constructor; Takes nothing and simply registeres self with the main CMU IPC server.

WaypointInterface::~WaypointInterface (  ) 

Destructor.


Member Function Documentation

int WaypointInterface::Update (  )  [virtual]

Parses gotten messages and commands.

Implements BaseComponent.

Vector2< double > WaypointInterface::GetLocation (  )  [private]

Get current location.

Vector2< double > WaypointInterface::GetWaypoint (  )  [private]

double WaypointInterface::GetWaypointDistance (  )  [private]

Get the distance between the current waypoint index and vehicle position.

double WaypointInterface::GetWaypointAngle (  )  [private]

Get the angle to our destination relative to north.

void WaypointInterface::ParseWaypointFile ( const char *  FileName  )  [private]

Parse the given file gps waypoint file name.


Member Data Documentation

queue< Vector2<double> > WaypointInterface::Waypoints [private]

GPS waypoints queue (In global meters poisition).

Total number of waypoints.

Which waypoint we are on.

Number of connections this GPS has.


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

Generated on Sun Feb 21 00:00:12 2010 for Penn State Robotics Club: Mini Grand Challenge 2010 by  doxygen 1.5.5