#include <ArGPSConnector.h>
Use createGPS() to create a GPS object.
GPS options: -gpsType <standard|novatel|novatelspan|trimble> Select GPS device type (default: standard) -gpsPort <gpsSerialPort> Use the given serial port (default: /dev/ttyS1) -gpsBaud <gpsSerialBaudRate> Use the given serial Baud rate (default: 9600) -remoteGpsTcpHost <host> Use a TCP connection instead of serial, and connect to remote host <host> -remoteGpsTcpPort <host> Use the given port number for TCP connection, if using TCP. (default 8103)
Public Types | |
| enum | GPSType { Standard, Novatel, Trimble, Invalid, NovatelSPAN } |
| Device type identifiers. More... | |
Public Member Functions | |
| ArGPSConnector (ArArgumentParser *argParser) | |
| ArGPS * | create (ArRobot *robot=NULL) |
| ArGPS * | createGPS (ArRobot *robot=NULL) |
| GPSType | getGPSType () const |
| bool | parseArgs () |
Protected Member Functions | |
| GPSType | deviceTypeFromString (const char *str) |
| void | logOptions () |
Protected Attributes | |
| ArArgumentParser * | myArgParser |
| int | myBaud |
| ArDeviceConnection * | myDeviceCon |
| GPSType | myDeviceType |
| ArFunctorC< ArGPSConnector > | myLogArgsCallback |
| ArRetFunctorC< bool, ArGPSConnector > | myParseArgsCallback |
| const char * | myPort |
| const char * | myTCPHost |
| int | myTCPPort |
|
|
Device type identifiers.
|
|
|
Create a new GPS object (may be an ArGPS subclass based on device type) and a device connection for that GPS. Use ArGPS::blockingConnect() to open the connection.
|
|
|
Create a new GPS object (may be an ArGPS subclass based on device type) and a device connection for that GPS. Use ArGPS::blockingConnect() to open the connection.
|
|
|
Log argument option information |
|
|
Gets command line arguments |
1.4.2