P2OSPacket Class Reference

#include <packet.h>

List of all members.

Public Member Functions

int Build (unsigned char *data, unsigned char datasize)
int CalcChkSum ()
bool Check ()
bool operator!= (P2OSPacket p)
void Print ()
void PrintHex ()
int Receive (int fd)
int Send (int fd)

Public Attributes

unsigned char packet [PACKET_LEN]
unsigned char size
ros::Time timestamp

Detailed Description

Definition at line 33 of file packet.h.


Member Function Documentation

int P2OSPacket::Build ( unsigned char *  data,
unsigned char  datasize 
)

Definition at line 134 of file packet.cc.

int P2OSPacket::CalcChkSum (  ) 

Definition at line 63 of file packet.cc.

bool P2OSPacket::Check (  ) 

Definition at line 52 of file packet.cc.

bool P2OSPacket::operator!= ( P2OSPacket  p  )  [inline]

Definition at line 49 of file packet.h.

void P2OSPacket::Print (  ) 

Definition at line 31 of file packet.cc.

void P2OSPacket::PrintHex (  ) 

Definition at line 41 of file packet.cc.

int P2OSPacket::Receive ( int  fd  ) 

Definition at line 81 of file packet.cc.

int P2OSPacket::Send ( int  fd  ) 

Definition at line 162 of file packet.cc.


Member Data Documentation

unsigned char P2OSPacket::packet[PACKET_LEN]

Definition at line 36 of file packet.h.

unsigned char P2OSPacket::size

Definition at line 37 of file packet.h.

Definition at line 38 of file packet.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


p2os_driver
Author(s): dfseifer@usc.edu
autogenerated on Fri Jan 11 09:54:57 2013