32 namespace rtde_interface
51 std::vector<std::string> variable_names)
53 if (variable_names.size() == 0)
57 std::string variables;
58 for (
const auto& piece : variable_names)
59 variables += (piece +
",");
61 uint16_t payload_size =
sizeof(double) + variables.size();
72 std::vector<std::string> variable_names)
74 if (variable_names.size() == 0)
78 std::string variables;
79 for (
const auto& piece : variable_names)
80 variables += (piece +
",");
82 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.
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.
virtual bool parseWith(comm::BinParser &bp)
Sets the attributes of the package by parsing a serialized representation of the package.