33 namespace rtde_interface
70 ss <<
"Unknown protocol version, protocol version is " <<
protocol_version_ << std::endl;
77 std::vector<std::string> variable_names)
79 if (variable_names.size() == 0)
83 std::string variables;
84 for (
const auto& piece : variable_names)
85 variables += (piece +
",");
87 uint16_t payload_size =
sizeof(double) + variables.size();
98 std::vector<std::string> variable_names)
100 if (variable_names.size() == 0)
104 std::string variables;
105 for (
const auto& piece : variable_names)
106 variables += (piece +
",");
107 variables.pop_back();
108 uint16_t payload_size = variables.size();
static size_t generateSerializedRequest(uint8_t *buffer, double output_frequency, std::vector< std::string > variable_names)
Generates a serialized package.
virtual std::string toString() const
Produces a human readable representation of the package object.
#define URCL_LOG_ERROR(...)
std::string variable_types_
void parse(T &val)
Parses the next bytes as given type.
void parseRemainder(std::string &val)
Parses the remaining bytes as a string.
The BinParser class handles a byte buffer and functionality to iteratively parse the content...
uint8_t output_recipe_id_
static size_t serialize(uint8_t *buffer, T val)
A generalized serialization method for arbitrary datatypes.
uint16_t protocol_version_
virtual bool parseWith(comm::BinParser &bp)
Sets the attributes of the package by parsing a serialized representation of the package.