next up previous contents
Next: 2.8 GripperProxy Up: 2. Class Reference Previous: 2.6 CommsProxy   Contents


2.7 GpsProxy

The GpsProxy class is used to control a gps device. The latest pose data is stored in three class attributes.


double latitude;
double longitude;

Latitude and longitude, in degrees.

double altitude;

Altitude, in meters.

int satellites;

Number of satellites in view.

int quality;

Fix quality

double hdop;

Horizontal dilution of position (HDOP)

struct timeval time;

Time, since the epoch


GpsProxy(PlayerClient* pc, unsigned short index,
unsigned char access='c')

Constructor. Leave the access field empty to start unconnected.

void Print()

Print out current pose information.