Classes | Namespaces | Typedefs
SVHReceiveThread.h File Reference
#include <schunk_svh_library/serial/ByteOrderConversion.h>
#include <schunk_svh_library/serial/Serial.h>
#include <schunk_svh_library/serial/SVHSerialPacket.h>
#include <atomic>
#include <chrono>
#include <functional>
#include <memory>
Include dependency graph for SVHReceiveThread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  driver_svh::SVHReceiveThread
 Class for receiving messages from the serial device. More...
 

Namespaces

 driver_svh
 

Typedefs

using driver_svh::ReceivedPacketCallback = std::function< void(const SVHSerialPacket &packet, unsigned int packet_count)>
 definition of function callback for received packages More...
 

Detailed Description

Author
Lars Pfotzer
Date
2014-01-30
2014-07-16

This file contains the ReceiveThread for the serial communication. In order to receive packages independently from the sending direction, instantiate this class in client code and call its run() method in a separate thread.

This class will then poll the serial interface periodically for new data. If data is present, a statemachine will evaluate the right packet structure and send the data via callback to the caller for further parsing once a complete serial packaged is received.

Definition in file SVHReceiveThread.h.



schunk_svh_library
Author(s): Georg Heppner, Lars Pfotzer, Felix Exner, Johannes Mangler, Stefan Scherzinger, Pascal Becker
autogenerated on Fri Apr 14 2023 02:53:52