Go to the documentation of this file.
38 #ifndef DRIVER_SVH_SVH_SERIAL_INTERFACE_H_INCLUDED
39 #define DRIVER_SVH_SVH_SERIAL_INTERFACE_H_INCLUDED
74 bool connect(
const std::string& dev_name);
103 void resetTransmitPackageCount();
124 void calcCheckSum(uint8_t& check_sum1, uint8_t& check_sum2,
const SVHSerialPacket& packet);
The SerialPacket holds the (non generated) header and data of one message to the SVH-Hardware.
void receivedPacketCallback(const SVHSerialPacket &packet, unsigned int packet_count)
std::unique_ptr< SVHReceiveThread > m_svh_receiver
handle to manage the actual receiving of data
ReceivedPacketCallback m_received_packet_callback
Callback function for received packets.
std::shared_ptr< Serial > m_serial_device
pointer to serial interface object
bool isConnected()
returns connected state of serial device
std::thread m_receive_thread
thread for receiving serial packets
unsigned int transmittedPacketCount()
get number of transmitted packets
#define DRIVER_SVH_IMPORT_EXPORT
std::function< void(const SVHSerialPacket &packet, unsigned int packet_count)> ReceivedPacketCallback
definition of function callback for received packages
Contains a class that enables access to serial devices.
bool m_connected
serial device connected state
Enables acces to serial devices.
unsigned int m_dummy_packets_printed
packet counter simulation for pure showing purposes
unsigned int m_packets_transmitted
packet counters
Basic communication handler for the SCHUNK five finger hand.
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