43 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
57 if (!helper_proto.read(connection)) {
67 if(!
yarp().canWrite()) {
68 yError(
" Missing server method yarpActionsPlayer_IDL::getRemoteProtocolVersion");
73 return helper.helper_proto;}
84 if (remproto.protocol_version != locproto.protocol_version)
86 yCError(SERVICE_LOG_COMPONENT) <<
"Invalid communication protocol.";
87 yCError(SERVICE_LOG_COMPONENT) <<
"Local Protocol Version: " << locproto.toString();
88 yCError(SERVICE_LOG_COMPONENT) <<
"Remote Protocol Version: " << remproto.toString();
158 static constexpr const char*
s_tag{
"start"};
162 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::start()"};
164 "Start (or resumes, if stopped) the currently selected action.\n"
165 "It will stop when the last frame is reached.\n"
166 "@return true/false on success/failure"
220 static constexpr const char*
s_tag{
"stop"};
224 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::stop()"};
226 "Stops the currently selected (running) action. Can be resumed by start.\n"
227 "@return true/false on success/failure"
281 static constexpr const char*
s_tag{
"reset"};
285 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::reset()"};
287 "Rewinds the currently selected action.\n"
288 "@return true/false on success/failure"
342 static constexpr const char*
s_tag{
"forever"};
346 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::forever()"};
348 "Similar to play, but it will automatically restart the playback when the last\n"
349 "frame is reached.\n"
350 "@return true/false on success/failure"
404 static constexpr const char*
s_tag{
"print_frames"};
408 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::print_frames()"};
410 "Prints all the frames of the currently selected action.\n"
411 "@return true/false on success/failure"
470 static constexpr const char*
s_tag{
"speed_factor"};
474 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::speed_factor(const double value)"};
476 "Sets the playback speed factor for the currently selected action (default value: 1.0).\n"
477 "@return true/false on success/failure"
536 static constexpr const char*
s_tag{
"resample"};
540 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::resample(const double value)"};
542 "Resamples the currently selected action (in seconds, recommended value 0.010s).\n"
543 "@return true/false on success/failure"
602 static constexpr const char*
s_tag{
"choose_action"};
606 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::choose_action(const std::string& action_name)"};
608 "Choose the current action and wait for further commands.\n"
609 "@return true/false on success/failure"
668 static constexpr const char*
s_tag{
"play_action"};
672 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::play_action(const std::string& action_name)"};
674 "Play an action one single time. The call blocks untils the playback is complete.\n"
675 "@return true/false on success/failure"
729 static constexpr const char*
s_tag{
"show_actions"};
733 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::show_actions()"};
735 "Prints all the loaded actions.\n"
736 "@return true/false on success/failure"
795 static constexpr const char*
s_tag{
"set_thread_period"};
799 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::set_thread_period(const double value)"};
801 "Sets the period of the sampling thread (for advanced use only, default value: 0.010s).\n"
802 "@return true/false on success/failure"
823 return write(writer);
838 if (!writeTag(writer)) {
841 if (!writeArgs(writer)) {
862 if (!readTag(reader)) {
865 if (!readArgs(reader)) {
896 return write(writer);
927 if (!reader.
readBool(return_helper)) {
956 return write(writer);
971 if (!writeTag(writer)) {
974 if (!writeArgs(writer)) {
995 if (!readTag(reader)) {
998 if (!readArgs(reader)) {
1029 return write(writer);
1035 return read(reader);
1060 if (!reader.
readBool(return_helper)) {
1089 return write(writer);
1099 return read(reader);
1104 if (!writeTag(writer)) {
1107 if (!writeArgs(writer)) {
1128 if (!readTag(reader)) {
1131 if (!readArgs(reader)) {
1162 return write(writer);
1168 return read(reader);
1193 if (!reader.
readBool(return_helper)) {
1222 return write(writer);
1232 return read(reader);
1237 if (!writeTag(writer)) {
1240 if (!writeArgs(writer)) {
1261 if (!readTag(reader)) {
1264 if (!readArgs(reader)) {
1295 return write(writer);
1301 return read(reader);
1326 if (!reader.
readBool(return_helper)) {
1355 return write(writer);
1365 return read(reader);
1370 if (!writeTag(writer)) {
1373 if (!writeArgs(writer)) {
1394 if (!readTag(reader)) {
1397 if (!readArgs(reader)) {
1428 return write(writer);
1434 return read(reader);
1459 if (!reader.
readBool(return_helper)) {
1498 return write(writer);
1508 return read(reader);
1513 if (!writeTag(writer)) {
1516 if (!writeArgs(writer)) {
1540 if (!readTag(reader)) {
1543 if (!readArgs(reader)) {
1582 return write(writer);
1588 return read(reader);
1613 if (!reader.
readBool(return_helper)) {
1652 return write(writer);
1662 return read(reader);
1667 if (!writeTag(writer)) {
1670 if (!writeArgs(writer)) {
1694 if (!readTag(reader)) {
1697 if (!readArgs(reader)) {
1736 return write(writer);
1742 return read(reader);
1767 if (!reader.
readBool(return_helper)) {
1796 action_name{action_name}
1806 return write(writer);
1816 return read(reader);
1821 if (!writeTag(writer)) {
1824 if (!writeArgs(writer)) {
1848 if (!readTag(reader)) {
1851 if (!readArgs(reader)) {
1890 return write(writer);
1896 return read(reader);
1921 if (!reader.
readBool(return_helper)) {
1950 action_name{action_name}
1960 return write(writer);
1970 return read(reader);
1975 if (!writeTag(writer)) {
1978 if (!writeArgs(writer)) {
2002 if (!readTag(reader)) {
2005 if (!readArgs(reader)) {
2044 return write(writer);
2050 return read(reader);
2075 if (!reader.
readBool(return_helper)) {
2104 return write(writer);
2114 return read(reader);
2119 if (!writeTag(writer)) {
2122 if (!writeArgs(writer)) {
2143 if (!readTag(reader)) {
2146 if (!readArgs(reader)) {
2177 return write(writer);
2183 return read(reader);
2208 if (!reader.
readBool(return_helper)) {
2247 return write(writer);
2257 return read(reader);
2262 if (!writeTag(writer)) {
2265 if (!writeArgs(writer)) {
2289 if (!readTag(reader)) {
2292 if (!readArgs(reader)) {
2331 return write(writer);
2337 return read(reader);
2362 if (!reader.
readBool(return_helper)) {
2377 yarp().setOwner(*
this);
2382 if (!
yarp().canWrite()) {
2386 bool ok =
yarp().write(helper, helper);
2387 return ok ? helper.reply.return_helper :
bool{};
2392 if (!
yarp().canWrite()) {
2396 bool ok =
yarp().write(helper, helper);
2397 return ok ? helper.reply.return_helper :
bool{};
2402 if (!
yarp().canWrite()) {
2406 bool ok =
yarp().write(helper, helper);
2407 return ok ? helper.reply.return_helper :
bool{};
2412 if (!
yarp().canWrite()) {
2416 bool ok =
yarp().write(helper, helper);
2417 return ok ? helper.reply.return_helper :
bool{};
2422 if (!
yarp().canWrite()) {
2426 bool ok =
yarp().write(helper, helper);
2427 return ok ? helper.reply.return_helper :
bool{};
2432 if (!
yarp().canWrite()) {
2436 bool ok =
yarp().write(helper, helper);
2437 return ok ? helper.reply.return_helper :
bool{};
2442 if (!
yarp().canWrite()) {
2446 bool ok =
yarp().write(helper, helper);
2447 return ok ? helper.reply.return_helper :
bool{};
2452 if (!
yarp().canWrite()) {
2456 bool ok =
yarp().write(helper, helper);
2457 return ok ? helper.reply.return_helper :
bool{};
2462 if (!
yarp().canWrite()) {
2466 bool ok =
yarp().write(helper, helper);
2467 return ok ? helper.reply.return_helper :
bool{};
2472 if (!
yarp().canWrite()) {
2476 bool ok =
yarp().write(helper, helper);
2477 return ok ? helper.reply.return_helper :
bool{};
2482 if (!
yarp().canWrite()) {
2486 bool ok =
yarp().write(helper, helper);
2487 return ok ? helper.reply.return_helper :
bool{};
2493 bool showAll = (functionName ==
"--all");
2494 std::vector<std::string> helpString;
2496 helpString.emplace_back(
"*** Available commands:");
2508 helpString.emplace_back(
"help");
2554 if (functionName ==
"help") {
2555 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
2556 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
2557 helpString.emplace_back(
"@param functionName name of command for which to get a detailed description. If none or '--all' is provided, print list of available commands");
2558 helpString.emplace_back(
"@return list of strings (one string per line)");
2561 if (helpString.empty()) {
2562 helpString.emplace_back(
"Command not found");
2570 constexpr size_t max_tag_len = 3;
2580 std::string tag = reader.
readTag(1);
2581 bool direct = (tag ==
"__direct__");
2585 while (tag_len <= max_tag_len && !reader.
isError()) {
2586 if(tag ==
"getRemoteProtocolVersion") {
2593 auto proto = getLocalProtocolVersion();
2599 if (!writer.
write(proto)) {
2771 if (tag ==
"help") {
2772 std::string functionName;
2774 functionName =
"--all";
2776 auto help_strings = help(functionName);
2782 if (!writer.
writeTag(
"many", 1, 0)) {
2788 for (
const auto& help_string : help_strings) {
2804 std::string next_tag = reader.
readTag(1);
2805 if (next_tag.empty()) {
2808 tag.append(
"_").append(next_tag);
2809 tag_len = std::count(tag.begin(), tag.end(),
'_') + 1;
~Command() override=default
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool(*)(const std::string &) funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
void call(yarpActionsPlayer_IDL *ptr)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_help
static constexpr size_t s_tag_len
static constexpr size_t s_reply_len
yarpActionsPlayer_IDL_choose_action_helper()=default
static constexpr const char * s_tag
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
static constexpr size_t s_tag_len
static constexpr const char * s_prototype
static constexpr const char * s_help
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarpActionsPlayer_IDL_forever_helper()=default
void call(yarpActionsPlayer_IDL *ptr)
static constexpr const char * s_tag
static constexpr size_t s_reply_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::os::ApplicationNetworkProtocolVersion helper_proto
yarpActionsPlayer_IDL_getRemoteProtocolVersion_helper()=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
yarpActionsPlayer_IDL_play_action_helper()=default
static constexpr size_t s_cmd_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_prototype
static constexpr size_t s_reply_len
bool(*)(const std::string &) funcptr_t
static constexpr const char * s_help
static constexpr const char * s_tag
static constexpr size_t s_tag_len
void call(yarpActionsPlayer_IDL *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
static constexpr size_t s_cmd_len
static constexpr size_t s_tag_len
static constexpr const char * s_prototype
yarpActionsPlayer_IDL_print_frames_helper()=default
static constexpr const char * s_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(yarpActionsPlayer_IDL *ptr)
static constexpr const char * s_help
static constexpr size_t s_reply_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool(*)(const double) funcptr_t
static constexpr const char * s_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarpActionsPlayer_IDL_resample_helper()=default
void call(yarpActionsPlayer_IDL *ptr)
static constexpr const char * s_help
static constexpr size_t s_cmd_len
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
static constexpr size_t s_tag_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
static constexpr size_t s_tag_len
static constexpr const char * s_prototype
void call(yarpActionsPlayer_IDL *ptr)
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
yarpActionsPlayer_IDL_reset_helper()=default
bool readTag(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Command() override=default
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_len
void call(yarpActionsPlayer_IDL *ptr)
yarpActionsPlayer_IDL_set_thread_period_helper()=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_help
static constexpr const char * s_prototype
bool(*)(const double) funcptr_t
static constexpr size_t s_cmd_len
static constexpr size_t s_tag_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Command() override=default
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_tag
yarpActionsPlayer_IDL_show_actions_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
void call(yarpActionsPlayer_IDL *ptr)
static constexpr const char * s_help
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
static constexpr size_t s_tag_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
bool readTag(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool writeTag(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_cmd_len
static constexpr size_t s_reply_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_tag_len
static constexpr const char * s_tag
static constexpr const char * s_help
yarpActionsPlayer_IDL_speed_factor_helper()=default
bool(*)(const double) funcptr_t
static constexpr const char * s_prototype
void call(yarpActionsPlayer_IDL *ptr)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
bool readTag(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_prototype
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
void call(yarpActionsPlayer_IDL *ptr)
yarpActionsPlayer_IDL_start_helper()=default
static constexpr const char * s_help
static constexpr size_t s_tag_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_len
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarpActionsPlayer_IDL_stop_helper()=default
static constexpr size_t s_cmd_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_len
static constexpr const char * s_tag
static constexpr const char * s_prototype
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_tag_len
static constexpr const char * s_help
void call(yarpActionsPlayer_IDL *ptr)
yarpActionsPlayer_IDL Interface.
virtual bool show_actions()
Prints all the loaded actions.
virtual bool choose_action(const std::string &action_name)
Choose the current action and wait for further commands.
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual bool play_action(const std::string &action_name)
Play an action one single time.
virtual bool start()
Start (or resumes, if stopped) the currently selected action.
virtual bool forever()
Similar to play, but it will automatically restart the playback when the last frame is reached.
virtual bool print_frames()
Prints all the frames of the currently selected action.
virtual bool resample(const double value)
Resamples the currently selected action (in seconds, recommended value 0.010s).
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual bool speed_factor(const double value)
Sets the playback speed factor for the currently selected action (default value: 1....
virtual bool stop()
Stops the currently selected (running) action.
virtual yarp::os::ApplicationNetworkProtocolVersion getRemoteProtocolVersion()
virtual bool reset()
Rewinds the currently selected action.
virtual bool checkProtocolVersion()
virtual yarp::os::ApplicationNetworkProtocolVersion getLocalProtocolVersion()
virtual bool set_thread_period(const double value)
Sets the period of the sampling thread (for advanced use only, default value: 0.010s).
short int protocol_version
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
bool write(PortWriter &writer)
Write a message to the associated port or reader.
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
bool readString(std::string &str, bool *is_vocab=nullptr)
std::string readTag(size_t len=static_cast< size_t >(-1))
bool readFloat64(yarp::conf::float64_t &x)
IDL-friendly connection writer.
bool writeBool(bool x, bool skip_tag=false) const
bool write(const WirePortable &obj) const
bool writeListHeader(int len) const
bool writeTag(const char *tag, int split, int len) const
bool writeFloat64(yarp::conf::float64_t x, bool skip_tag=false) const
bool writeString(const std::string &str, bool skip_tag=false) const
bool writeListEnd() const
bool writeListBegin(int tag, size_t len) const
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
The main, catch-all namespace for YARP.
#define YARP_VERSION_PATCH
#define YARP_VERSION_MAJOR
#define YARP_VERSION_MINOR