44 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
58 if (!helper_proto.read(connection)) {
68 if(!
yarp().canWrite()) {
69 yError(
" Missing server method yarpActionsPlayer_IDL::getRemoteProtocolVersion");
74 return helper.helper_proto;}
85 if (remproto.protocol_version != locproto.protocol_version)
87 yCError(SERVICE_LOG_COMPONENT) <<
"Invalid communication protocol.";
88 yCError(SERVICE_LOG_COMPONENT) <<
"Local Protocol Version: " << locproto.toString();
89 yCError(SERVICE_LOG_COMPONENT) <<
"Remote Protocol Version: " << remproto.toString();
159 static constexpr const char*
s_tag{
"start"};
163 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::start()"};
165 "Start (or resumes, if stopped) the currently selected action.\n"
166 "It will stop when the last frame is reached.\n"
167 "@return true/false on success/failure"
221 static constexpr const char*
s_tag{
"stop"};
225 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::stop()"};
227 "Stops the currently selected (running) action. Can be resumed by start.\n"
228 "@return true/false on success/failure"
282 static constexpr const char*
s_tag{
"reset"};
286 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::reset()"};
288 "Rewinds the currently selected action.\n"
289 "@return true/false on success/failure"
343 static constexpr const char*
s_tag{
"forever"};
347 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::forever()"};
349 "Similar to play, but it will automatically restart the playback when the last\n"
350 "frame is reached.\n"
351 "@return true/false on success/failure"
405 static constexpr const char*
s_tag{
"print_frames"};
409 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::print_frames()"};
411 "Prints all the frames of the currently selected action.\n"
412 "@return true/false on success/failure"
471 static constexpr const char*
s_tag{
"speed_factor"};
475 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::speed_factor(const double value)"};
477 "Sets the playback speed factor for the currently selected action (default value: 1.0).\n"
478 "@return true/false on success/failure"
537 static constexpr const char*
s_tag{
"resample"};
541 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::resample(const double value)"};
543 "Resamples the currently selected action (in seconds, recommended value 0.010s).\n"
544 "@return true/false on success/failure"
603 static constexpr const char*
s_tag{
"choose_action"};
607 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::choose_action(const std::string& action_name)"};
609 "Choose the current action and wait for further commands.\n"
610 "@return true/false on success/failure"
669 static constexpr const char*
s_tag{
"play_action"};
673 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::play_action(const std::string& action_name)"};
675 "Play an action one single time. The call blocks untils the playback is complete.\n"
676 "@return true/false on success/failure"
730 static constexpr const char*
s_tag{
"show_actions"};
734 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::show_actions()"};
736 "Prints all the loaded actions.\n"
737 "@return true/false on success/failure"
796 static constexpr const char*
s_tag{
"set_thread_period"};
800 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::set_thread_period(const double value)"};
802 "Sets the period of the sampling thread (for advanced use only, default value: 0.010s).\n"
803 "@return true/false on success/failure"
862 static constexpr const char*
s_tag{
"set_initial_move_time"};
866 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::set_initial_move_time(const double value)"};
868 "Sets the uration for the initial homing movement (for advanced use only, default value: 2s).\n"
869 "@return true/false on success/failure"
890 return write(writer);
905 if (!writeTag(writer)) {
908 if (!writeArgs(writer)) {
929 if (!readTag(reader)) {
932 if (!readArgs(reader)) {
963 return write(writer);
994 if (!reader.
readBool(return_helper)) {
1023 return write(writer);
1033 return read(reader);
1038 if (!writeTag(writer)) {
1041 if (!writeArgs(writer)) {
1062 if (!readTag(reader)) {
1065 if (!readArgs(reader)) {
1096 return write(writer);
1102 return read(reader);
1127 if (!reader.
readBool(return_helper)) {
1156 return write(writer);
1166 return read(reader);
1171 if (!writeTag(writer)) {
1174 if (!writeArgs(writer)) {
1195 if (!readTag(reader)) {
1198 if (!readArgs(reader)) {
1229 return write(writer);
1235 return read(reader);
1260 if (!reader.
readBool(return_helper)) {
1289 return write(writer);
1299 return read(reader);
1304 if (!writeTag(writer)) {
1307 if (!writeArgs(writer)) {
1328 if (!readTag(reader)) {
1331 if (!readArgs(reader)) {
1362 return write(writer);
1368 return read(reader);
1393 if (!reader.
readBool(return_helper)) {
1422 return write(writer);
1432 return read(reader);
1437 if (!writeTag(writer)) {
1440 if (!writeArgs(writer)) {
1461 if (!readTag(reader)) {
1464 if (!readArgs(reader)) {
1495 return write(writer);
1501 return read(reader);
1526 if (!reader.
readBool(return_helper)) {
1565 return write(writer);
1575 return read(reader);
1580 if (!writeTag(writer)) {
1583 if (!writeArgs(writer)) {
1607 if (!readTag(reader)) {
1610 if (!readArgs(reader)) {
1649 return write(writer);
1655 return read(reader);
1680 if (!reader.
readBool(return_helper)) {
1719 return write(writer);
1729 return read(reader);
1734 if (!writeTag(writer)) {
1737 if (!writeArgs(writer)) {
1761 if (!readTag(reader)) {
1764 if (!readArgs(reader)) {
1803 return write(writer);
1809 return read(reader);
1834 if (!reader.
readBool(return_helper)) {
1863 action_name{action_name}
1873 return write(writer);
1883 return read(reader);
1888 if (!writeTag(writer)) {
1891 if (!writeArgs(writer)) {
1915 if (!readTag(reader)) {
1918 if (!readArgs(reader)) {
1957 return write(writer);
1963 return read(reader);
1988 if (!reader.
readBool(return_helper)) {
2017 action_name{action_name}
2027 return write(writer);
2037 return read(reader);
2042 if (!writeTag(writer)) {
2045 if (!writeArgs(writer)) {
2069 if (!readTag(reader)) {
2072 if (!readArgs(reader)) {
2111 return write(writer);
2117 return read(reader);
2142 if (!reader.
readBool(return_helper)) {
2171 return write(writer);
2181 return read(reader);
2186 if (!writeTag(writer)) {
2189 if (!writeArgs(writer)) {
2210 if (!readTag(reader)) {
2213 if (!readArgs(reader)) {
2244 return write(writer);
2250 return read(reader);
2275 if (!reader.
readBool(return_helper)) {
2314 return write(writer);
2324 return read(reader);
2329 if (!writeTag(writer)) {
2332 if (!writeArgs(writer)) {
2356 if (!readTag(reader)) {
2359 if (!readArgs(reader)) {
2398 return write(writer);
2404 return read(reader);
2429 if (!reader.
readBool(return_helper)) {
2468 return write(writer);
2478 return read(reader);
2483 if (!writeTag(writer)) {
2486 if (!writeArgs(writer)) {
2510 if (!readTag(reader)) {
2513 if (!readArgs(reader)) {
2552 return write(writer);
2558 return read(reader);
2583 if (!reader.
readBool(return_helper)) {
2598 yarp().setOwner(*
this);
2603 if (!
yarp().canWrite()) {
2607 bool ok =
yarp().write(helper, helper);
2608 return ok ? helper.reply.return_helper :
bool{};
2613 if (!
yarp().canWrite()) {
2617 bool ok =
yarp().write(helper, helper);
2618 return ok ? helper.reply.return_helper :
bool{};
2623 if (!
yarp().canWrite()) {
2627 bool ok =
yarp().write(helper, helper);
2628 return ok ? helper.reply.return_helper :
bool{};
2633 if (!
yarp().canWrite()) {
2637 bool ok =
yarp().write(helper, helper);
2638 return ok ? helper.reply.return_helper :
bool{};
2643 if (!
yarp().canWrite()) {
2647 bool ok =
yarp().write(helper, helper);
2648 return ok ? helper.reply.return_helper :
bool{};
2653 if (!
yarp().canWrite()) {
2657 bool ok =
yarp().write(helper, helper);
2658 return ok ? helper.reply.return_helper :
bool{};
2663 if (!
yarp().canWrite()) {
2667 bool ok =
yarp().write(helper, helper);
2668 return ok ? helper.reply.return_helper :
bool{};
2673 if (!
yarp().canWrite()) {
2677 bool ok =
yarp().write(helper, helper);
2678 return ok ? helper.reply.return_helper :
bool{};
2683 if (!
yarp().canWrite()) {
2687 bool ok =
yarp().write(helper, helper);
2688 return ok ? helper.reply.return_helper :
bool{};
2693 if (!
yarp().canWrite()) {
2697 bool ok =
yarp().write(helper, helper);
2698 return ok ? helper.reply.return_helper :
bool{};
2703 if (!
yarp().canWrite()) {
2707 bool ok =
yarp().write(helper, helper);
2708 return ok ? helper.reply.return_helper :
bool{};
2713 if (!
yarp().canWrite()) {
2717 bool ok =
yarp().write(helper, helper);
2718 return ok ? helper.reply.return_helper :
bool{};
2724 bool showAll = (functionName ==
"--all");
2725 std::vector<std::string> helpString;
2727 helpString.emplace_back(
"*** Available commands:");
2740 helpString.emplace_back(
"help");
2790 if (functionName ==
"help") {
2791 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
2792 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
2793 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");
2794 helpString.emplace_back(
"@return list of strings (one string per line)");
2797 if (helpString.empty()) {
2798 helpString.emplace_back(
"Command not found");
2806 constexpr size_t max_tag_len = 4;
2816 std::string tag = reader.
readTag(1);
2817 bool direct = (tag ==
"__direct__");
2821 while (tag_len <= max_tag_len && !reader.
isError()) {
2822 if(tag ==
"getRemoteProtocolVersion") {
2829 auto proto = getLocalProtocolVersion();
2835 if (!writer.
write(proto)) {
3022 if (tag ==
"help") {
3023 std::string functionName;
3025 functionName =
"--all";
3027 auto help_strings = help(functionName);
3033 if (!writer.
writeTag(
"many", 1, 0)) {
3039 for (
const auto& help_string : help_strings) {
3055 std::string next_tag = reader.
readTag(1);
3056 if (next_tag.empty()) {
3059 tag.append(
"_").append(next_tag);
3060 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 write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
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.
~Reply() override=default
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_cmd_len
void call(yarpActionsPlayer_IDL *ptr)
static constexpr const char * s_prototype
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
static constexpr size_t s_reply_len
static constexpr size_t s_tag_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarpActionsPlayer_IDL_set_initial_move_time_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 set_initial_move_time(const double value)
Sets the uration for the initial homing movement (for advanced use only, default value: 2s).
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