31 #ifndef DRIVER_SVH_SVH_SERIAL_INTERFACE_H_INCLUDED 32 #define DRIVER_SVH_SVH_SERIAL_INTERFACE_H_INCLUDED 39 #include <icl_comm_serial/Serial.h> 40 #include <boost/shared_ptr.hpp> 41 using icl_comm::serial::Serial;
65 bool connect(
const std::string &dev_name);
94 void resetTransmitPackageCount();
104 void receivedPacketCallback(
const SVHSerialPacket& packet,
unsigned int packet_count);
ReceivedPacketCallback m_received_packet_callback
Callback function for received packets.
boost::function< void(const SVHSerialPacket &packet, unsigned int packet_count)> ReceivedPacketCallback
definition of boost function callback for received packages
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
unsigned int m_packets_transmitted
packet counters
boost::shared_ptr< SVHReceiveThread > m_receive_thread
thread for receiving serial packets
bool m_connected
serial device connected state
boost::shared_ptr< Serial > m_serial_device
pointer to serial interface object
uint8_t last_index
used to wait to the response of the sending packet
Basic communication handler for the SCHUNK five finger hand.
bool isConnected()
returns connected state of serial device
The SerialPacket holds the (non generated) header and data of one message to the SVH-Hardware.