#include <WaypointInterface.h>

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. | |
| WaypointInterface::WaypointInterface | ( | ) |
Constructor; Takes nothing and simply registeres self with the main CMU IPC server.
| WaypointInterface::~WaypointInterface | ( | ) |
Destructor.
| int WaypointInterface::Update | ( | ) | [virtual] |
| 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.
queue< Vector2<double> > WaypointInterface::Waypoints [private] |
GPS waypoints queue (In global meters poisition).
int WaypointInterface::WaypointTotal [private] |
Total number of waypoints.
int WaypointInterface::WaypointIndex [private] |
Which waypoint we are on.
int WaypointInterface::GPSQuality [private] |
Number of connections this GPS has.
1.5.5