Kobuki 1.0.0
C++ API for the Kobuki research robot
Loading...
Searching...
No Matches
kobuki::PacketFinder Class Reference
Inheritance diagram for kobuki::PacketFinder:
Collaboration diagram for kobuki::PacketFinder:

Public Member Functions

bool checkSum ()
 
- Public Member Functions inherited from kobuki::PacketFinderBase
 PacketFinderBase ()
 
void configure (const std::string &sigslots_namespace, const BufferType &putStx, const BufferType &putEtx, unsigned int sizeLengthField, unsigned int sizeMaxPayload, unsigned int sizeChecksumField, bool variableSizePayload)
 
void clear ()
 
void enableVerbose ()
 
virtual bool update (const unsigned char *incoming, unsigned int numberOfIncoming)
 
unsigned int numberOfDataToRead ()
 
void getBuffer (BufferType &bufferRef)
 
void getPayload (BufferType &bufferRef)
 

Additional Inherited Members

- Public Types inherited from kobuki::PacketFinderBase
enum  packetFinderState {
  clearBuffer = 0 , waitingForStx , waitingForPayloadSize , waitingForPayloadToEtx ,
  waitingForEtx
}
 
typedef ecl::PushAndPop< unsigned char > BufferType
 
- Public Attributes inherited from kobuki::PacketFinderBase
enum packetFinderState state
 
- Protected Member Functions inherited from kobuki::PacketFinderBase
bool WaitForStx (const unsigned char datum)
 
bool waitForPayloadSize (const unsigned char *incoming, unsigned int numberOfIncoming)
 
bool waitForEtx (const unsigned char incoming, bool &foundPacket)
 
bool waitForPayloadAndEtx (const unsigned char *incoming, unsigned int numberOfIncoming, bool &foundPacket)
 
- Protected Attributes inherited from kobuki::PacketFinderBase
unsigned int size_stx
 
unsigned int size_etx
 
unsigned int size_length_field
 
bool variable_size_payload
 
unsigned int size_max_payload
 
unsigned int size_payload
 
unsigned int size_checksum_field
 
BufferType STX
 
BufferType ETX
 
BufferType buffer
 
bool verbose
 
ecl::Signal< const std::string & > sig_warn
 
ecl::Signal< const std::string & > sig_error
 

Member Function Documentation

◆ checkSum()

bool kobuki::PacketFinder::checkSum ( )
virtual

Reimplemented from kobuki::PacketFinderBase.


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