Go to the documentation of this file.
47 int main(
int argc,
const char* argv[])
49 std::string serial_device_name =
"/dev/ttyUSB0";
52 serial_com.
connect(serial_device_name);
62 packet << test_controller_feedback;
63 test_serial_packet.
index = 0;
70 std::this_thread::sleep_for(std::chrono::seconds(5));
72 test_controller_feedback.position = -8000;
76 packet << test_controller_feedback;
77 test_serial_packet.
index = 0;
const uint8_t SVH_SET_CONTROL_COMMAND
Sets the target position of a channel.
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.
int main(int argc, const char *argv[])
The SVHControllerFeedback saves the feedback of a single motor.
bool sendPacket(SVHSerialPacket &packet)
function for sending packets via serial device to the SVH
void reset(size_t array_size=1)
Resets the Arraybuilder to initial state, all values will be deleted.
Enables acces to serial devices.
Short description of tSerialFlags.
Basic communication handler for the SCHUNK five finger hand.
bool connect(const std::string &dev_name)
connecting to serial device and starting receive thread
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