Go to the documentation of this file.
44 int main(
int argc,
const char* argv[])
46 std::string serial_device_name =
"/dev/ttyUSB0";
49 serial_com.
connect(serial_device_name);
57 payload << test_pos_settings;
60 test_serial_packet.
index = 0;
std::vector< uint8_t > array
array of template type TArray
The SerialPacket holds the (non generated) header and data of one message to the SVH-Hardware.
std::vector< uint8_t > data
Payload of the package.
void close()
canceling receive thread and closing connection to serial port
uint8_t index
Continuosly incremented counter per package.
bool sendPacket(SVHSerialPacket &packet)
function for sending packets via serial device to the SVH
Contains a class that enables access to serial devices.
Enables acces to serial devices.
Short description of tSerialFlags.
The SVHPositionSettings save the position controller paramters for a single motor.
uint8_t address
Adress denotes the actual function of the package.
Basic communication handler for the SCHUNK five finger hand.
bool connect(const std::string &dev_name)
connecting to serial device and starting receive thread
int main(int argc, const char *argv[])
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