Class RTDEParser

Inheritance Relationships

Base Type

Class Documentation

class RTDEParser : public urcl::comm::Parser<RTDEPackage>

The RTDE specific parser. Interprets a given byte stream as serialized RTDE packages and parses it accordingly.

Public Functions

RTDEParser() = delete
inline RTDEParser(const std::vector<std::string> &recipe)

Creates a new RTDEParser object, registering the used recipe.

Parameters:

recipe – The recipe used in RTDE data communication

virtual ~RTDEParser() = default
inline bool parse(comm::BinParser &bp, std::vector<std::unique_ptr<RTDEPackage>> &results)

Uses the given BinParser to create package objects from the contained serialization.

Parameters:
  • bp – A BinParser holding one or more serialized RTDE packages

  • results – A vector of pointers to created RTDE package objects

Returns:

True, if the byte stream could successfully be parsed as RTDE packages, false otherwise

inline void setProtocolVersion(uint16_t protocol_version)