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