#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 |
Definition at line 33 of file packet.hpp.
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.
|
inline |
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.
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.