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"
861 static constexpr const char*
s_tag{
"set_initial_move_time"};
865 static constexpr const char*
s_prototype{
"bool yarpActionsPlayer_IDL::set_initial_move_time(const double value)"};
867 "Sets the uration for the initial homing movement (for advanced use only, default value: 2s).\n"
868 "@return true/false on success/failure"
889 return write(writer);
904 if (!writeTag(writer)) {
907 if (!writeArgs(writer)) {
928 if (!readTag(reader)) {
931 if (!readArgs(reader)) {
962 return write(writer);
993 if (!reader.
readBool(return_helper)) {
1022 return write(writer);
1032 return read(reader);
1037 if (!writeTag(writer)) {
1040 if (!writeArgs(writer)) {
1061 if (!readTag(reader)) {
1064 if (!readArgs(reader)) {
1095 return write(writer);
1101 return read(reader);
1126 if (!reader.
readBool(return_helper)) {
1155 return write(writer);
1165 return read(reader);
1170 if (!writeTag(writer)) {
1173 if (!writeArgs(writer)) {
1194 if (!readTag(reader)) {
1197 if (!readArgs(reader)) {
1228 return write(writer);
1234 return read(reader);
1259 if (!reader.
readBool(return_helper)) {
1288 return write(writer);
1298 return read(reader);
1303 if (!writeTag(writer)) {
1306 if (!writeArgs(writer)) {
1327 if (!readTag(reader)) {
1330 if (!readArgs(reader)) {
1361 return write(writer);
1367 return read(reader);
1392 if (!reader.
readBool(return_helper)) {
1421 return write(writer);
1431 return read(reader);
1436 if (!writeTag(writer)) {
1439 if (!writeArgs(writer)) {
1460 if (!readTag(reader)) {
1463 if (!readArgs(reader)) {
1494 return write(writer);
1500 return read(reader);
1525 if (!reader.
readBool(return_helper)) {
1564 return write(writer);
1574 return read(reader);
1579 if (!writeTag(writer)) {
1582 if (!writeArgs(writer)) {
1606 if (!readTag(reader)) {
1609 if (!readArgs(reader)) {
1648 return write(writer);
1654 return read(reader);
1679 if (!reader.
readBool(return_helper)) {
1718 return write(writer);
1728 return read(reader);
1733 if (!writeTag(writer)) {
1736 if (!writeArgs(writer)) {
1760 if (!readTag(reader)) {
1763 if (!readArgs(reader)) {
1802 return write(writer);
1808 return read(reader);
1833 if (!reader.
readBool(return_helper)) {
1862 action_name{action_name}
1872 return write(writer);
1882 return read(reader);
1887 if (!writeTag(writer)) {
1890 if (!writeArgs(writer)) {
1914 if (!readTag(reader)) {
1917 if (!readArgs(reader)) {
1956 return write(writer);
1962 return read(reader);
1987 if (!reader.
readBool(return_helper)) {
2016 action_name{action_name}
2026 return write(writer);
2036 return read(reader);
2041 if (!writeTag(writer)) {
2044 if (!writeArgs(writer)) {
2068 if (!readTag(reader)) {
2071 if (!readArgs(reader)) {
2110 return write(writer);
2116 return read(reader);
2141 if (!reader.
readBool(return_helper)) {
2170 return write(writer);
2180 return read(reader);
2185 if (!writeTag(writer)) {
2188 if (!writeArgs(writer)) {
2209 if (!readTag(reader)) {
2212 if (!readArgs(reader)) {
2243 return write(writer);
2249 return read(reader);
2274 if (!reader.
readBool(return_helper)) {
2313 return write(writer);
2323 return read(reader);
2328 if (!writeTag(writer)) {
2331 if (!writeArgs(writer)) {
2355 if (!readTag(reader)) {
2358 if (!readArgs(reader)) {
2397 return write(writer);
2403 return read(reader);
2428 if (!reader.
readBool(return_helper)) {
2467 return write(writer);
2477 return read(reader);
2482 if (!writeTag(writer)) {
2485 if (!writeArgs(writer)) {
2509 if (!readTag(reader)) {
2512 if (!readArgs(reader)) {
2551 return write(writer);
2557 return read(reader);
2582 if (!reader.
readBool(return_helper)) {
2597 yarp().setOwner(*
this);
2602 if (!
yarp().canWrite()) {
2606 bool ok =
yarp().write(helper, helper);
2607 return ok ? helper.reply.return_helper :
bool{};
2612 if (!
yarp().canWrite()) {
2616 bool ok =
yarp().write(helper, helper);
2617 return ok ? helper.reply.return_helper :
bool{};
2622 if (!
yarp().canWrite()) {
2626 bool ok =
yarp().write(helper, helper);
2627 return ok ? helper.reply.return_helper :
bool{};
2632 if (!
yarp().canWrite()) {
2636 bool ok =
yarp().write(helper, helper);
2637 return ok ? helper.reply.return_helper :
bool{};
2642 if (!
yarp().canWrite()) {
2646 bool ok =
yarp().write(helper, helper);
2647 return ok ? helper.reply.return_helper :
bool{};
2652 if (!
yarp().canWrite()) {
2656 bool ok =
yarp().write(helper, helper);
2657 return ok ? helper.reply.return_helper :
bool{};
2662 if (!
yarp().canWrite()) {
2666 bool ok =
yarp().write(helper, helper);
2667 return ok ? helper.reply.return_helper :
bool{};
2672 if (!
yarp().canWrite()) {
2676 bool ok =
yarp().write(helper, helper);
2677 return ok ? helper.reply.return_helper :
bool{};
2682 if (!
yarp().canWrite()) {
2686 bool ok =
yarp().write(helper, helper);
2687 return ok ? helper.reply.return_helper :
bool{};
2692 if (!
yarp().canWrite()) {
2696 bool ok =
yarp().write(helper, helper);
2697 return ok ? helper.reply.return_helper :
bool{};
2702 if (!
yarp().canWrite()) {
2706 bool ok =
yarp().write(helper, helper);
2707 return ok ? helper.reply.return_helper :
bool{};
2712 if (!
yarp().canWrite()) {
2716 bool ok =
yarp().write(helper, helper);
2717 return ok ? helper.reply.return_helper :
bool{};
2723 bool showAll = (functionName ==
"--all");
2724 std::vector<std::string> helpString;
2726 helpString.emplace_back(
"*** Available commands:");
2739 helpString.emplace_back(
"help");
2789 if (functionName ==
"help") {
2790 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
2791 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
2792 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");
2793 helpString.emplace_back(
"@return list of strings (one string per line)");
2796 if (helpString.empty()) {
2797 helpString.emplace_back(
"Command not found");
2805 constexpr size_t max_tag_len = 4;
2815 std::string tag = reader.
readTag(1);
2816 bool direct = (tag ==
"__direct__");
2820 while (tag_len <= max_tag_len && !reader.
isError()) {
2821 if(tag ==
"getRemoteProtocolVersion") {
2828 auto proto = getLocalProtocolVersion();
2834 if (!writer.
write(proto)) {
3021 if (tag ==
"help") {
3022 std::string functionName;
3024 functionName =
"--all";
3026 auto help_strings = help(functionName);
3032 if (!writer.
writeTag(
"many", 1, 0)) {
3038 for (
const auto& help_string : help_strings) {
3054 std::string next_tag = reader.
readTag(1);
3055 if (next_tag.empty()) {
3058 tag.append(
"_").append(next_tag);
3059 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