44 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
58 if (!helper_proto.read(connection)) {
68 if(!
yarp().canWrite()) {
69 yError(
" Missing server method INavigation2DMsgs::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{
"stop_navigation_RPC"};
163 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::stop_navigation_RPC()"};
217 static constexpr const char*
s_tag{
"resume_navigation_RPC"};
221 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::resume_navigation_RPC()"};
280 static constexpr const char*
s_tag{
"suspend_navigation_RPC"};
284 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::suspend_navigation_RPC(const double time_s)"};
338 static constexpr const char*
s_tag{
"recompute_current_navigation_path_RPC"};
342 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::recompute_current_navigation_path_RPC()"};
396 static constexpr const char*
s_tag{
"get_navigation_status_RPC"};
400 static constexpr const char*
s_prototype{
"return_get_navigation_status INavigation2DMsgs::get_navigation_status_RPC()"};
454 static constexpr const char*
s_tag{
"get_current_nav_waypoint_RPC"};
458 static constexpr const char*
s_prototype{
"return_get_current_nav_waypoint INavigation2DMsgs::get_current_nav_waypoint_RPC()"};
517 static constexpr const char*
s_tag{
"get_all_navigation_waypoints_RPC"};
521 static constexpr const char*
s_prototype{
"return_get_all_nav_waypoints INavigation2DMsgs::get_all_navigation_waypoints_RPC(const yarp::dev::Nav2D::TrajectoryTypeEnum trajectory_type)"};
580 static constexpr const char*
s_tag{
"get_current_navigation_map_RPC"};
584 static constexpr const char*
s_prototype{
"return_get_current_nav_map INavigation2DMsgs::get_current_navigation_map_RPC(const yarp::dev::Nav2D::NavigationMapTypeEnum map_type)"};
643 static constexpr const char*
s_tag{
"goto_target_by_absolute_location_RPC"};
647 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::goto_target_by_absolute_location_RPC(const yarp::dev::Nav2D::Map2DLocation& loc)"};
706 static constexpr const char*
s_tag{
"follow_path_RPC"};
710 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::follow_path_RPC(const yarp::dev::Nav2D::Map2DPath& path)"};
770 static constexpr const char*
s_tag{
"goto_target_by_relative_location1_RPC"};
774 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::goto_target_by_relative_location1_RPC(const double x, const double y)"};
835 static constexpr const char*
s_tag{
"goto_target_by_relative_location2_RPC"};
839 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::goto_target_by_relative_location2_RPC(const double x, const double y, const double theta)"};
893 static constexpr const char*
s_tag{
"get_absolute_location_of_current_target_RPC"};
897 static constexpr const char*
s_prototype{
"return_get_abs_loc_of_curr_target INavigation2DMsgs::get_absolute_location_of_current_target_RPC()"};
951 static constexpr const char*
s_tag{
"get_relative_location_of_current_target_RPC"};
955 static constexpr const char*
s_prototype{
"return_get_rel_loc_of_curr_target INavigation2DMsgs::get_relative_location_of_current_target_RPC()"};
1015 static constexpr const char*
s_tag{
"goto_target_by_absolute_location_and_set_name_RPC"};
1019 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::goto_target_by_absolute_location_and_set_name_RPC(const yarp::dev::Nav2D::Map2DLocation& loc, const std::string& name)"};
1081 static constexpr const char*
s_tag{
"apply_velocity_command_RPC"};
1085 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::apply_velocity_command_RPC(const double x_vel, const double y_vel, const double theta_vel, const double timeout)"};
1139 static constexpr const char*
s_tag{
"get_last_velocity_command_RPC"};
1143 static constexpr const char*
s_prototype{
"return_get_last_velocity_command INavigation2DMsgs::get_last_velocity_command_RPC()"};
1197 static constexpr const char*
s_tag{
"get_name_of_current_target_RPC"};
1201 static constexpr const char*
s_prototype{
"return_get_name_of_current_target INavigation2DMsgs::get_name_of_current_target_RPC()"};
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);
1307 if (!writer.
write(return_helper)) {
1320 if (!reader.
read(return_helper)) {
1349 return write(writer);
1359 return read(reader);
1364 if (!writeTag(writer)) {
1367 if (!writeArgs(writer)) {
1388 if (!readTag(reader)) {
1391 if (!readArgs(reader)) {
1422 return write(writer);
1428 return read(reader);
1434 if (!writer.
write(return_helper)) {
1447 if (!reader.
read(return_helper)) {
1486 return write(writer);
1496 return read(reader);
1501 if (!writeTag(writer)) {
1504 if (!writeArgs(writer)) {
1528 if (!readTag(reader)) {
1531 if (!readArgs(reader)) {
1570 return write(writer);
1576 return read(reader);
1582 if (!writer.
write(return_helper)) {
1595 if (!reader.
read(return_helper)) {
1624 return write(writer);
1634 return read(reader);
1639 if (!writeTag(writer)) {
1642 if (!writeArgs(writer)) {
1663 if (!readTag(reader)) {
1666 if (!readArgs(reader)) {
1697 return write(writer);
1703 return read(reader);
1709 if (!writer.
write(return_helper)) {
1722 if (!reader.
read(return_helper)) {
1751 return write(writer);
1761 return read(reader);
1766 if (!writeTag(writer)) {
1769 if (!writeArgs(writer)) {
1790 if (!readTag(reader)) {
1793 if (!readArgs(reader)) {
1824 return write(writer);
1830 return read(reader);
1839 if (!writer.
write(return_helper)) {
1855 if (!reader.
read(return_helper)) {
1884 return write(writer);
1894 return read(reader);
1899 if (!writeTag(writer)) {
1902 if (!writeArgs(writer)) {
1923 if (!readTag(reader)) {
1926 if (!readArgs(reader)) {
1957 return write(writer);
1963 return read(reader);
1972 if (!writer.
write(return_helper)) {
1988 if (!reader.
read(return_helper)) {
2002 cmd{trajectory_type}
2017 trajectory_type{trajectory_type}
2027 return write(writer);
2037 return read(reader);
2042 if (!writeTag(writer)) {
2045 if (!writeArgs(writer)) {
2069 if (!readTag(reader)) {
2072 if (!readArgs(reader)) {
2113 return write(writer);
2119 return read(reader);
2128 if (!writer.
write(return_helper)) {
2144 if (!reader.
read(return_helper)) {
2183 return write(writer);
2193 return read(reader);
2198 if (!writeTag(writer)) {
2201 if (!writeArgs(writer)) {
2225 if (!readTag(reader)) {
2228 if (!readArgs(reader)) {
2269 return write(writer);
2275 return read(reader);
2284 if (!writer.
write(return_helper)) {
2300 if (!reader.
read(return_helper)) {
2339 return write(writer);
2349 return read(reader);
2354 if (!writeTag(writer)) {
2357 if (!writeArgs(writer)) {
2381 if (!readTag(reader)) {
2384 if (!readArgs(reader)) {
2423 return write(writer);
2429 return read(reader);
2435 if (!writer.
write(return_helper)) {
2448 if (!reader.
read(return_helper)) {
2487 return write(writer);
2497 return read(reader);
2502 if (!writeTag(writer)) {
2505 if (!writeArgs(writer)) {
2529 if (!readTag(reader)) {
2532 if (!readArgs(reader)) {
2571 return write(writer);
2577 return read(reader);
2583 if (!writer.
write(return_helper)) {
2596 if (!reader.
read(return_helper)) {
2636 return write(writer);
2646 return read(reader);
2651 if (!writeTag(writer)) {
2654 if (!writeArgs(writer)) {
2681 if (!readTag(reader)) {
2684 if (!readArgs(reader)) {
2731 return write(writer);
2737 return read(reader);
2743 if (!writer.
write(return_helper)) {
2756 if (!reader.
read(return_helper)) {
2797 return write(writer);
2807 return read(reader);
2812 if (!writeTag(writer)) {
2815 if (!writeArgs(writer)) {
2845 if (!readTag(reader)) {
2848 if (!readArgs(reader)) {
2903 return write(writer);
2909 return read(reader);
2915 if (!writer.
write(return_helper)) {
2928 if (!reader.
read(return_helper)) {
2957 return write(writer);
2967 return read(reader);
2972 if (!writeTag(writer)) {
2975 if (!writeArgs(writer)) {
2996 if (!readTag(reader)) {
2999 if (!readArgs(reader)) {
3030 return write(writer);
3036 return read(reader);
3045 if (!writer.
write(return_helper)) {
3061 if (!reader.
read(return_helper)) {
3090 return write(writer);
3100 return read(reader);
3105 if (!writeTag(writer)) {
3108 if (!writeArgs(writer)) {
3129 if (!readTag(reader)) {
3132 if (!readArgs(reader)) {
3163 return write(writer);
3169 return read(reader);
3178 if (!writer.
write(return_helper)) {
3194 if (!reader.
read(return_helper)) {
3234 return write(writer);
3244 return read(reader);
3249 if (!writeTag(writer)) {
3252 if (!writeArgs(writer)) {
3279 if (!readTag(reader)) {
3282 if (!readArgs(reader)) {
3329 return write(writer);
3335 return read(reader);
3341 if (!writer.
write(return_helper)) {
3354 if (!reader.
read(return_helper)) {
3368 cmd{x_vel, y_vel, theta_vel, timeout}
3385 theta_vel{theta_vel},
3396 return write(writer);
3406 return read(reader);
3411 if (!writeTag(writer)) {
3414 if (!writeArgs(writer)) {
3447 if (!readTag(reader)) {
3450 if (!readArgs(reader)) {
3513 return write(writer);
3519 return read(reader);
3525 if (!writer.
write(return_helper)) {
3538 if (!reader.
read(return_helper)) {
3567 return write(writer);
3577 return read(reader);
3582 if (!writeTag(writer)) {
3585 if (!writeArgs(writer)) {
3606 if (!readTag(reader)) {
3609 if (!readArgs(reader)) {
3640 return write(writer);
3646 return read(reader);
3655 if (!writer.
write(return_helper)) {
3671 if (!reader.
read(return_helper)) {
3700 return write(writer);
3710 return read(reader);
3715 if (!writeTag(writer)) {
3718 if (!writeArgs(writer)) {
3739 if (!readTag(reader)) {
3742 if (!readArgs(reader)) {
3773 return write(writer);
3779 return read(reader);
3788 if (!writer.
write(return_helper)) {
3804 if (!reader.
read(return_helper)) {
3819 yarp().setOwner(*
this);
3824 if (!
yarp().canWrite()) {
3828 bool ok =
yarp().write(helper, helper);
3834 if (!
yarp().canWrite()) {
3838 bool ok =
yarp().write(helper, helper);
3844 if (!
yarp().canWrite()) {
3848 bool ok =
yarp().write(helper, helper);
3854 if (!
yarp().canWrite()) {
3858 bool ok =
yarp().write(helper, helper);
3864 if (!
yarp().canWrite()) {
3868 bool ok =
yarp().write(helper, helper);
3872 return failed_reply;
3874 return helper.reply.return_helper;
3879 if (!
yarp().canWrite()) {
3883 bool ok =
yarp().write(helper, helper);
3887 return failed_reply;
3889 return helper.reply.return_helper;
3894 if (!
yarp().canWrite()) {
3898 bool ok =
yarp().write(helper, helper);
3902 return failed_reply;
3904 return helper.reply.return_helper;
3909 if (!
yarp().canWrite()) {
3913 bool ok =
yarp().write(helper, helper);
3917 return failed_reply;
3919 return helper.reply.return_helper;
3924 if (!
yarp().canWrite()) {
3928 bool ok =
yarp().write(helper, helper);
3934 if (!
yarp().canWrite()) {
3938 bool ok =
yarp().write(helper, helper);
3944 if (!
yarp().canWrite()) {
3948 bool ok =
yarp().write(helper, helper);
3954 if (!
yarp().canWrite()) {
3958 bool ok =
yarp().write(helper, helper);
3964 if (!
yarp().canWrite()) {
3968 bool ok =
yarp().write(helper, helper);
3972 return failed_reply;
3974 return helper.reply.return_helper;
3979 if (!
yarp().canWrite()) {
3983 bool ok =
yarp().write(helper, helper);
3987 return failed_reply;
3989 return helper.reply.return_helper;
3994 if (!
yarp().canWrite()) {
3998 bool ok =
yarp().write(helper, helper);
4004 if (!
yarp().canWrite()) {
4008 bool ok =
yarp().write(helper, helper);
4014 if (!
yarp().canWrite()) {
4018 bool ok =
yarp().write(helper, helper);
4022 return failed_reply;
4024 return helper.reply.return_helper;
4029 if (!
yarp().canWrite()) {
4033 bool ok =
yarp().write(helper, helper);
4037 return failed_reply;
4039 return helper.reply.return_helper;
4045 bool showAll = (functionName ==
"--all");
4046 std::vector<std::string> helpString;
4048 helpString.emplace_back(
"*** Available commands:");
4067 helpString.emplace_back(
"help");
4123 if (functionName ==
"help") {
4124 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
4125 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
4126 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");
4127 helpString.emplace_back(
"@return list of strings (one string per line)");
4130 if (helpString.empty()) {
4131 helpString.emplace_back(
"Command not found");
4139 constexpr size_t max_tag_len = 9;
4149 std::string tag = reader.
readTag(1);
4150 bool direct = (tag ==
"__direct__");
4154 while (tag_len <= max_tag_len && !reader.
isError()) {
4155 if(tag ==
"getRemoteProtocolVersion") {
4162 auto proto = getLocalProtocolVersion();
4168 if (!writer.
write(proto)) {
4445 if (tag ==
"help") {
4446 std::string functionName;
4448 functionName =
"--all";
4450 auto help_strings = help(functionName);
4456 if (!writer.
writeTag(
"many", 1, 0)) {
4462 for (
const auto& help_string : help_strings) {
4478 std::string next_tag = reader.
readTag(1);
4479 if (next_tag.empty()) {
4482 tag.append(
"_").append(next_tag);
4483 tag_len = std::count(tag.begin(), tag.end(),
'_') + 1;
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.
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.
~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.
yarp::dev::ReturnValue return_helper
static constexpr size_t s_reply_len
yarp::dev::ReturnValue(*)(const double, const double, const double, const double) funcptr_t
static constexpr size_t s_tag_len
static constexpr const char * s_tag
static constexpr size_t s_cmd_len
void call(INavigation2DMsgs *ptr)
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.
INavigation2DMsgs_apply_velocity_command_RPC_helper()=default
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 writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::Nav2D::Map2DPath path
bool readArgs(yarp::os::idl::WireReader &reader)
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
yarp::dev::ReturnValue return_helper
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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_help
static constexpr const char * s_tag
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::ReturnValue(*)(const yarp::dev::Nav2D::Map2DPath &) funcptr_t
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
INavigation2DMsgs_follow_path_RPC_helper()=default
static constexpr size_t s_reply_len
void call(INavigation2DMsgs *ptr)
static constexpr size_t s_tag_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::os::ApplicationNetworkProtocolVersion helper_proto
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
INavigation2DMsgs_getRemoteProtocolVersion_helper()=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 writeTag(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 readArgs(yarp::os::idl::WireReader &reader)
bool readTag(yarp::os::idl::WireReader &reader)
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_get_abs_loc_of_curr_target return_helper
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_tag_len
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
static constexpr const char * s_help
static constexpr const char * s_tag
void call(INavigation2DMsgs *ptr)
return_get_abs_loc_of_curr_target(*)() funcptr_t
static constexpr size_t s_reply_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
INavigation2DMsgs_get_absolute_location_of_current_target_RPC_helper()=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
yarp::dev::Nav2D::TrajectoryTypeEnum trajectory_type
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.
bool readArgs(yarp::os::idl::WireReader &reader)
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.
~Reply() override=default
return_get_all_nav_waypoints return_helper
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
INavigation2DMsgs_get_all_navigation_waypoints_RPC_helper()=default
static constexpr const char * s_prototype
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
static constexpr size_t s_reply_len
static constexpr const char * s_tag
return_get_all_nav_waypoints(*)(const yarp::dev::Nav2D::TrajectoryTypeEnum) funcptr_t
void call(INavigation2DMsgs *ptr)
static constexpr size_t s_tag_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)
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 read(yarp::os::ConnectionReader &connection) override
Read this object from 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.
return_get_current_nav_waypoint return_helper
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_get_current_nav_waypoint(*)() funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_len
void call(INavigation2DMsgs *ptr)
static constexpr const char * s_help
static constexpr size_t s_cmd_len
static constexpr const char * s_prototype
INavigation2DMsgs_get_current_nav_waypoint_RPC_helper()=default
static constexpr size_t s_tag_len
static constexpr const char * s_tag
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool writeTag(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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::Nav2D::NavigationMapTypeEnum map_type
~Command() override=default
bool readTag(yarp::os::idl::WireReader &reader)
~Reply() override=default
return_get_current_nav_map return_helper
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 size_t s_cmd_len
static constexpr const char * s_tag
void call(INavigation2DMsgs *ptr)
static constexpr size_t s_reply_len
static constexpr const char * s_help
INavigation2DMsgs_get_current_navigation_map_RPC_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_prototype
return_get_current_nav_map(*)(const yarp::dev::Nav2D::NavigationMapTypeEnum) funcptr_t
static constexpr size_t s_tag_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
bool readTag(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.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
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
return_get_last_velocity_command return_helper
static constexpr const char * s_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_prototype
return_get_last_velocity_command(*)() funcptr_t
static constexpr size_t s_tag_len
INavigation2DMsgs_get_last_velocity_command_RPC_helper()=default
static constexpr size_t s_cmd_len
void call(INavigation2DMsgs *ptr)
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_reply_len
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.
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.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_get_name_of_current_target return_helper
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
INavigation2DMsgs_get_name_of_current_target_RPC_helper()=default
return_get_name_of_current_target(*)() funcptr_t
static constexpr const char * s_tag
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_help
void call(INavigation2DMsgs *ptr)
static constexpr const char * s_prototype
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 readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
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 write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
return_get_navigation_status return_helper
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_help
INavigation2DMsgs_get_navigation_status_RPC_helper()=default
static constexpr size_t s_tag_len
void call(INavigation2DMsgs *ptr)
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
return_get_navigation_status(*)() funcptr_t
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 writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_get_rel_loc_of_curr_target return_helper
~Reply() override=default
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 size_t s_reply_len
static constexpr const char * s_help
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
INavigation2DMsgs_get_relative_location_of_current_target_RPC_helper()=default
return_get_rel_loc_of_curr_target(*)() funcptr_t
void call(INavigation2DMsgs *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
yarp::dev::Nav2D::Map2DLocation loc
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
yarp::dev::ReturnValue return_helper
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 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
static constexpr size_t s_cmd_len
yarp::dev::ReturnValue(*)(const yarp::dev::Nav2D::Map2DLocation &) funcptr_t
INavigation2DMsgs_goto_target_by_absolute_location_RPC_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_tag
static constexpr size_t s_reply_len
void call(INavigation2DMsgs *ptr)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
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.
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
yarp::dev::Nav2D::Map2DLocation loc
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
yarp::dev::ReturnValue return_helper
static constexpr size_t s_cmd_len
static constexpr size_t s_tag_len
INavigation2DMsgs_goto_target_by_absolute_location_and_set_name_RPC_helper()=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_reply_len
static constexpr const char * s_tag
yarp::dev::ReturnValue(*)(const yarp::dev::Nav2D::Map2DLocation &, const std::string &) funcptr_t
static constexpr const char * s_prototype
void call(INavigation2DMsgs *ptr)
static constexpr const char * s_help
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.
~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 readArgs(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::ReturnValue return_helper
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue(*)(const double, const double) funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_help
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
INavigation2DMsgs_goto_target_by_relative_location1_RPC_helper()=default
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
void call(INavigation2DMsgs *ptr)
static constexpr const char * s_prototype
static constexpr size_t s_reply_len
static constexpr size_t s_tag_len
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
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.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
yarp::dev::ReturnValue return_helper
~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 size_t s_reply_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_tag_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_tag
INavigation2DMsgs_goto_target_by_relative_location2_RPC_helper()=default
yarp::dev::ReturnValue(*)(const double, const double, const double) funcptr_t
static constexpr size_t s_cmd_len
static constexpr const char * s_help
static constexpr const char * s_prototype
void call(INavigation2DMsgs *ptr)
~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 readTag(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 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.
yarp::dev::ReturnValue return_helper
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(INavigation2DMsgs *ptr)
static constexpr const char * s_help
static constexpr size_t s_cmd_len
INavigation2DMsgs_recompute_current_navigation_path_RPC_helper()=default
static constexpr const char * s_prototype
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::ReturnValue(*)() funcptr_t
static constexpr const char * s_tag
static constexpr size_t s_tag_len
static constexpr size_t s_reply_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~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 readArgs(yarp::os::idl::WireReader &reader)
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
yarp::dev::ReturnValue return_helper
~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 size_t s_cmd_len
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
INavigation2DMsgs_resume_navigation_RPC_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_tag
yarp::dev::ReturnValue(*)() funcptr_t
void call(INavigation2DMsgs *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_tag_len
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
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.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::ReturnValue return_helper
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
void call(INavigation2DMsgs *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
INavigation2DMsgs_stop_navigation_RPC_helper()=default
static constexpr const char * s_prototype
static constexpr size_t s_reply_len
yarp::dev::ReturnValue(*)() funcptr_t
static constexpr size_t s_tag_len
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
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 writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue return_helper
~Reply() override=default
static constexpr const char * s_help
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
void call(INavigation2DMsgs *ptr)
yarp::dev::ReturnValue(*)(const double) funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_tag_len
INavigation2DMsgs_suspend_navigation_RPC_helper()=default
virtual yarp::dev::ReturnValue goto_target_by_absolute_location_RPC(const yarp::dev::Nav2D::Map2DLocation &loc)
virtual yarp::dev::ReturnValue goto_target_by_relative_location1_RPC(const double x, const double y)
virtual yarp::dev::ReturnValue goto_target_by_absolute_location_and_set_name_RPC(const yarp::dev::Nav2D::Map2DLocation &loc, const std::string &name)
virtual yarp::os::ApplicationNetworkProtocolVersion getRemoteProtocolVersion()
virtual return_get_abs_loc_of_curr_target get_absolute_location_of_current_target_RPC()
virtual yarp::os::ApplicationNetworkProtocolVersion getLocalProtocolVersion()
virtual return_get_last_velocity_command get_last_velocity_command_RPC()
virtual yarp::dev::ReturnValue resume_navigation_RPC()
virtual return_get_current_nav_map get_current_navigation_map_RPC(const yarp::dev::Nav2D::NavigationMapTypeEnum map_type)
virtual bool checkProtocolVersion()
virtual yarp::dev::ReturnValue follow_path_RPC(const yarp::dev::Nav2D::Map2DPath &path)
virtual yarp::dev::ReturnValue apply_velocity_command_RPC(const double x_vel, const double y_vel, const double theta_vel, const double timeout)
virtual return_get_navigation_status get_navigation_status_RPC()
virtual yarp::dev::ReturnValue suspend_navigation_RPC(const double time_s)
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual return_get_current_nav_waypoint get_current_nav_waypoint_RPC()
virtual yarp::dev::ReturnValue stop_navigation_RPC()
virtual yarp::dev::ReturnValue recompute_current_navigation_path_RPC()
virtual return_get_name_of_current_target get_name_of_current_target_RPC()
virtual return_get_rel_loc_of_curr_target get_relative_location_of_current_target_RPC()
virtual return_get_all_nav_waypoints get_all_navigation_waypoints_RPC(const yarp::dev::Nav2D::TrajectoryTypeEnum trajectory_type)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual yarp::dev::ReturnValue goto_target_by_relative_location2_RPC(const double x, const double y, const double theta)
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
@ return_value_error_nws_nwc_communication_error
Method is not (yet) implemented.
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 readVocab32(yarp::conf::vocab32_t &x)
bool readNested(WirePortable &obj)
bool readString(std::string &str, bool *is_vocab=nullptr)
std::string readTag(size_t len=static_cast< size_t >(-1))
bool read(WirePortable &obj)
bool readFloat64(yarp::conf::float64_t &x)
IDL-friendly connection writer.
bool writeVocab32(yarp::conf::vocab32_t 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 writeNested(const WirePortable &obj) 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