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);
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
unsigned int transmittedPacketCount()
get number of transmitted packets
#define DRIVER_SVH_IMPORT_EXPORT
unsigned int m_dummy_packets_printed
packet counter simulation for pure showing purposes
std::function< void(const SVHSerialPacket &packet, unsigned int packet_count)> ReceivedPacketCallback
definition of function callback for received packages
void receivedPacketCallback(const SVHSerialPacket &packet, unsigned int packet_count)
Contains a class that enables access to serial devices.
unsigned int m_packets_transmitted
packet counters
bool m_connected
serial device connected state
std::thread m_receive_thread
thread for receiving serial packets
Basic communication handler for the SCHUNK five finger hand.
Enables acces to serial devices.
bool isConnected()
returns connected state of serial device
The SerialPacket holds the (non generated) header and data of one message to the SVH-Hardware.