#include <ArRobotPacket.h>
Inheritance diagram for ArRobotPacket::
Public Methods | |
ArRobotPacket (unsigned char sync1=0xfa, unsigned char sync2=0xfb) | |
Constructor. More... | |
virtual | ~ArRobotPacket (void) |
Destructor. | |
bool | verifyCheckSum (void) |
returns true if the checksum matches what it should be. | |
ArTypes::UByte | getID (void) |
returns the ID of the packet (first byte of data). | |
ArTypes::Byte2 | calcCheckSum (void) |
returns the checksum, probably used only internally. | |
virtual void | finalize (void) |
Finalizes the packet in preparation for sending, must be done. | |
virtual void | resetRead (void) |
Restart the reading process. More... | |
ArTime | getTimeReceived (void) |
Gets the time the packet was received at. | |
void | setTimeReceived (ArTime timeReceived) |
Sets the time the packet was received at. |
This class reimplements some of the buf operations since the robot is opposeite endian from intel. Also has the getID for convenience.
You can just look at the documentation for the ArBasePacket except for the 4 new functions here, verifyCheckSum, getID, print, and calcCheckSum.
|
Constructor.
|
|
Restart the reading process. Sets the length read back to the header length so the packet can be reread using the other methods Reimplemented from ArBasePacket. |