#include <ocean.h>
Classes | |
| struct | regPair |
Public Member Functions | |
| void | initialize (const std::string &input_dev) |
| ocean (int id, int debug=0) | |
| void | read_file (const std::string &input) |
| int | run () |
| void | setDebugLevel (int) |
| ~ocean () | |
Public Attributes | |
| pr2_msgs::BatteryServer2 | server |
Static Public Attributes | |
| static const int | BAD_PACKET = -1 |
| static const int | INPUT_BUF_SIZE = 128 |
| static const unsigned int | MAX_PACKET_LENGTH = 120 |
| static const int | MAXCHANNELS = 16 |
| static const int | MAXTAGLEN = 8 |
| static const int | NMEA_MAX = 120 |
| static const int | NMEA_PACKET = 1 |
| static const int | NO_PACKET = 0 |
| static const int | OUTPUT_BUF_SIZE = 128 |
| static struct regPair | regList [] |
| static const unsigned | regListLength |
Private Member Functions | |
| void | character_discard () |
| int | commTest () |
| long int | convertStringBase16 (const char *input) |
| void | flush (void) |
| int | get_speed (void) |
| char * | gpsd_hexdump (void *binbuf, size_t binbuflen) |
| time_t | mkgmtime (register struct tm *t) |
| void | nextstate (unsigned char c) |
| void | nmea_add_checksum (char *sentence) |
| unsigned int | nmea_parse () |
| int | nmea_send (const char *fmt,...) |
| void | packet_accept (int packet_type) |
| void | packet_discard () |
| ssize_t | packet_get () |
| ssize_t | packet_parse (size_t newdata) |
| void | packet_reset () |
| unsigned int | processBattery (int count, char *field[]) |
| unsigned int | processController (int count, char *field[]) |
| unsigned int | processSystem (int count, char *field[]) |
| void | report (int errlevel, const char *fmt,...) |
| void | resetOcean () |
| void | set_speed (int speed) |
| int | string_send (const char *fmt,...) |
Private Attributes | |
| int | acknowledge |
| unsigned long | char_counter |
| int | currentBattery |
| int | currentBaudRate |
| int | currentBaudRateIndex |
| int | currentPort |
| int | cycleComplete |
| int | debuglevel |
| char * | idString |
| unsigned char | inbuffer [INPUT_BUF_SIZE+1] |
| size_t | inbuflen |
| unsigned char * | inbufptr |
| int | inputDevice |
| unsigned char | outbuffer [OUTPUT_BUF_SIZE+1] |
| size_t | outbuflen |
| int | packetState |
| int | packetType |
| int | sentenceCount |
| int | sentenceLength |
| char | tag [MAXTAGLEN] |
| struct termios | ttyset |
| ocean::ocean | ( | int | id, |
| int | debug = 0 |
||
| ) |
| ocean::~ocean | ( | ) |
| void ocean::character_discard | ( | ) | [private] |
| int ocean::commTest | ( | ) | [private] |
| long int ocean::convertStringBase16 | ( | const char * | input | ) | [private] |
| void ocean::flush | ( | void | ) | [private] |
| int ocean::get_speed | ( | void | ) | [private] |
| char * ocean::gpsd_hexdump | ( | void * | binbuf, |
| size_t | binbuflen | ||
| ) | [private] |
| void ocean::initialize | ( | const std::string & | input_dev | ) |
| time_t willowgarage::ocean::ocean::mkgmtime | ( | register struct tm * | t | ) | [private] |
| void ocean::nextstate | ( | unsigned char | c | ) | [private] |
| void ocean::nmea_add_checksum | ( | char * | sentence | ) | [private] |
| unsigned int ocean::nmea_parse | ( | ) | [private] |
| int ocean::nmea_send | ( | const char * | fmt, |
| ... | |||
| ) | [private] |
| void ocean::packet_accept | ( | int | packet_type | ) | [private] |
| void ocean::packet_discard | ( | ) | [private] |
| ssize_t ocean::packet_get | ( | ) | [private] |
| ssize_t ocean::packet_parse | ( | size_t | newdata | ) | [private] |
| void ocean::packet_reset | ( | ) | [private] |
| unsigned int ocean::processBattery | ( | int | count, |
| char * | field[] | ||
| ) | [private] |
| unsigned int ocean::processController | ( | int | count, |
| char * | field[] | ||
| ) | [private] |
| unsigned int ocean::processSystem | ( | int | count, |
| char * | field[] | ||
| ) | [private] |
| void ocean::read_file | ( | const std::string & | input | ) |
| void ocean::report | ( | int | errlevel, |
| const char * | fmt, | ||
| ... | |||
| ) | [private] |
| void ocean::resetOcean | ( | ) | [private] |
| int ocean::run | ( | void | ) |
| void ocean::set_speed | ( | int | speed | ) | [private] |
| void ocean::setDebugLevel | ( | int | level | ) |
| int ocean::string_send | ( | const char * | fmt, |
| ... | |||
| ) | [private] |
int willowgarage::ocean::ocean::acknowledge [private] |
const int ocean::BAD_PACKET = -1 [static] |
unsigned long willowgarage::ocean::ocean::char_counter [private] |
int willowgarage::ocean::ocean::currentBattery [private] |
int willowgarage::ocean::ocean::currentBaudRate [private] |
int willowgarage::ocean::ocean::currentBaudRateIndex [private] |
int willowgarage::ocean::ocean::currentPort [private] |
int willowgarage::ocean::ocean::cycleComplete [private] |
int willowgarage::ocean::ocean::debuglevel [private] |
char* willowgarage::ocean::ocean::idString [private] |
unsigned char willowgarage::ocean::ocean::inbuffer[INPUT_BUF_SIZE+1] [private] |
size_t willowgarage::ocean::ocean::inbuflen [private] |
unsigned char* willowgarage::ocean::ocean::inbufptr [private] |
const int ocean::INPUT_BUF_SIZE = 128 [static] |
int willowgarage::ocean::ocean::inputDevice [private] |
const unsigned int ocean::MAX_PACKET_LENGTH = 120 [static] |
const int ocean::MAXCHANNELS = 16 [static] |
const int ocean::MAXTAGLEN = 8 [static] |
const int ocean::NMEA_MAX = 120 [static] |
const int ocean::NMEA_PACKET = 1 [static] |
const int ocean::NO_PACKET = 0 [static] |
unsigned char willowgarage::ocean::ocean::outbuffer[OUTPUT_BUF_SIZE+1] [private] |
size_t willowgarage::ocean::ocean::outbuflen [private] |
const int ocean::OUTPUT_BUF_SIZE = 128 [static] |
int willowgarage::ocean::ocean::packetState [private] |
int willowgarage::ocean::ocean::packetType [private] |
struct regPair willowgarage::ocean::ocean::regList[] [static] |
const unsigned ocean::regListLength [static] |
int willowgarage::ocean::ocean::sentenceCount [private] |
int willowgarage::ocean::ocean::sentenceLength [private] |
char willowgarage::ocean::ocean::tag[MAXTAGLEN] [private] |
struct termios willowgarage::ocean::ocean::ttyset [private] |