Public Member Functions | Public Attributes | List of all members
P2OSPacket Class Reference

#include <packet.h>

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.

ros::Time P2OSPacket::timestamp

Definition at line 38 of file packet.h.


The documentation for this class was generated from the following files:


p2os_driver
Author(s): Hunter Allen , David Feil-Seifer , Aris Synodinos , Brian Gerkey, Kasper Stoy, Richard Vaughan, Andrew Howard, Tucker Hermans, ActivMedia Robotics LLC, MobileRobots Inc.
autogenerated on Wed Jun 25 2014 09:37:15