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

#include <packet.hpp>

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.hpp.

Member Function Documentation

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

Definition at line 128 of file packet.cpp.

int P2OSPacket::CalcChkSum ( )

Definition at line 60 of file packet.cpp.

bool P2OSPacket::Check ( )

Definition at line 54 of file packet.cpp.

bool P2OSPacket::operator!= ( P2OSPacket  p)

Definition at line 49 of file packet.hpp.

void P2OSPacket::Print ( )

Definition at line 31 of file packet.cpp.

void P2OSPacket::PrintHex ( )

Definition at line 42 of file packet.cpp.

int P2OSPacket::Receive ( int  fd)

Definition at line 79 of file packet.cpp.

int P2OSPacket::Send ( int  fd)

Definition at line 157 of file packet.cpp.

Member Data Documentation

unsigned char P2OSPacket::packet[packet_len]

Definition at line 36 of file packet.hpp.

unsigned char P2OSPacket::size

Definition at line 37 of file packet.hpp.

ros::Time P2OSPacket::timestamp

Definition at line 38 of file packet.hpp.

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

Author(s): Hunter L. Allen , David Feil-Seifer , Aris Synodinos , Brian Gerkey, Kasper Stoy, Richard Vaughan, Andrew Howard, Tucker Hermans, ActivMedia Robotics LLC, MobileRobots Inc.
autogenerated on Sat Jun 20 2020 03:29:42