Go to the documentation of this file.
36 #ifndef SVHSERIALPACKET_H
37 #define SVHSERIALPACKET_H
98 ,
data(data_length, 0)
116 std::ostream&
operator<<(std::ostream& o,
const SVHSerialPacket& sp);
119 #endif // SVHSERIALPACKET_H
const uint8_t SVH_SET_CONTROL_COMMAND
Sets the target position of a channel.
const uint8_t SVH_SET_ENCODER_VALUES
Set new encoder scalings.
The SerialPacket holds the (non generated) header and data of one message to the SVH-Hardware.
const uint8_t SVH_GET_POSITION_SETTINGS
Requests the active settings of the position controller.
bool operator==(const SVHSerialPacket &other) const
Compares two SVHSerialPackets objects.
std::vector< uint8_t > data
Payload of the package.
const uint8_t SVH_GET_CONTROL_FEEDBACK_ALL
Requests the positions and currents of ALL channels.
const size_t C_DEFAULT_PACKET_SIZE
Default packet payload size in bytes.
const uint8_t SVH_GET_CONTROL_FEEDBACK
Request the position and current of a channel to be sent.
uint8_t index
Continuosly incremented counter per package.
const uint8_t PACKET_HEADER2
Header sync byte 2.
const size_t C_PACKET_APPENDIX_SIZE
The packet overhead size in bytes.
SVHSerialPacket(size_t data_length=0, uint8_t address=SVH_GET_CONTROL_FEEDBACK)
SVHSerialPacket contains the send and received data in raw format (bytewise)
const uint8_t SVH_SET_POSITION_SETTINGS
Sets new settings for the position controller.
const uint8_t PACKET_HEADER1
Header sync byte 1.
const uint8_t SVH_GET_FIRMWARE_INFO
Request the firmware info to be transmitted.
uint8_t address
Adress denotes the actual function of the package.
const uint8_t SVH_GET_CONTROLLER_STATE
Requests the state of the controller (active,faults,enabled channels)
const uint8_t SVH_GET_ENCODER_VALUES
Request the current encoder scalings.
driver_svh::ArrayBuilder & operator>>(driver_svh::ArrayBuilder &ab, SVHControlCommand &data)
overload stream operator to easily deserialize control commands for one channel
driver_svh::ArrayBuilder & operator<<(driver_svh::ArrayBuilder &ab, const SVHControlCommand &data)
const uint8_t SVH_SET_CURRENT_SETTINGS
Sets new settings for the current controller.
const uint8_t SVH_SET_CONTROL_COMMAND_ALL
Sends the target position to ALL the channels.
const uint8_t SVH_GET_CURRENT_SETTINGS
Requests the active settings of the current controller.
const uint8_t SVH_SET_CONTROLLER_STATE
Sets new controller states (enable channels, clear faults)
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