Go to the documentation of this file.
39 namespace rtde_interface
76 if (!bp.
checkSize(size -
sizeof(size) -
sizeof(type)))
88 if (!package->parseWith(bp))
90 URCL_LOG_ERROR(
"Package parsing of type %d failed!",
static_cast<int>(type));
93 results.push_back(std::move(package));
99 if (!package->parseWith(bp))
101 URCL_LOG_ERROR(
"Package parsing of type %d failed!",
static_cast<int>(type));
105 results.push_back(std::move(package));
111 URCL_LOG_ERROR(
"Package of type %d was not parsed completely!",
static_cast<int>(type));
@ RTDE_CONTROL_PACKAGE_START
This class handles the robot's response to a requested start in RTDE data package communication.
This class handles RTDE text messages sent by the robot.
The DataPackage class handles communication in the form of RTDE data packages both to and from the ro...
This class handles the robot's response to a requested stop in RTDE data package communication.
The RTDE specific parser. Interprets a given byte stream as serialized RTDE packages and parses it ac...
@ RTDE_CONTROL_PACKAGE_PAUSE
#define URCL_LOG_ERROR(...)
The parser is a general paser. The namsepace rtde_interface and primary_interface both iclude classes...
void setProtocolVersion(uint16_t protocol_version)
@ RTDE_REQUEST_PROTOCOL_VERSION
bool parse(comm::BinParser &bp, std::vector< std::unique_ptr< RTDEPackage >> &results)
Uses the given BinParser to create package objects from the contained serialization.
@ RTDE_CONTROL_PACKAGE_SETUP_INPUTS
bool empty()
Checks if no unparsed bytes remain in the buffer.
uint16_t protocol_version_
RTDEPackage * packageFromType(PackageType type)
This class handles the robot's response after trying to set the used RTDE protocol version.
@ RTDE_GET_URCONTROL_VERSION
PackageType
Possible package types.
RTDEParser(const std::vector< std::string > &recipe)
Creates a new RTDEParser object, registering the used recipe.
bool checkSize(size_t bytes)
Checks if at least a given number of bytes is still remaining unparsed in the buffer.
std::vector< std::string > recipe_
virtual ~RTDEParser()=default
@ RTDE_CONTROL_PACKAGE_SETUP_OUTPUTS
This class handles the robot's response to a requested output recipe setup.
void parse(T &val)
Parses the next bytes as given type.
The BinParser class handles a byte buffer and functionality to iteratively parse the content.
This class handles the package detailing the UR control version sent by the robot.
void debug()
Logs debugging information about the BinParser object.
ur_client_library
Author(s): Thomas Timm Andersen, Simon Rasmussen, Felix Exner, Lea Steffen, Tristan Schnell
autogenerated on Mon May 26 2025 02:35:58