43 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
57 if (!helper_proto.read(connection)) {
67 if(!
yarp().canWrite()) {
68 yError(
" Missing server method INavigation2DMsgs::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{
"stop_navigation_RPC"};
162 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::stop_navigation_RPC()"};
216 static constexpr const char*
s_tag{
"resume_navigation_RPC"};
220 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::resume_navigation_RPC()"};
279 static constexpr const char*
s_tag{
"suspend_navigation_RPC"};
283 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::suspend_navigation_RPC(const double time_s)"};
337 static constexpr const char*
s_tag{
"recompute_current_navigation_path_RPC"};
341 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::recompute_current_navigation_path_RPC()"};
395 static constexpr const char*
s_tag{
"get_navigation_status_RPC"};
399 static constexpr const char*
s_prototype{
"return_get_navigation_status INavigation2DMsgs::get_navigation_status_RPC()"};
453 static constexpr const char*
s_tag{
"get_current_nav_waypoint_RPC"};
457 static constexpr const char*
s_prototype{
"return_get_current_nav_waypoint INavigation2DMsgs::get_current_nav_waypoint_RPC()"};
516 static constexpr const char*
s_tag{
"get_all_navigation_waypoints_RPC"};
520 static constexpr const char*
s_prototype{
"return_get_all_nav_waypoints INavigation2DMsgs::get_all_navigation_waypoints_RPC(const yarp::dev::Nav2D::TrajectoryTypeEnum trajectory_type)"};
579 static constexpr const char*
s_tag{
"get_current_navigation_map_RPC"};
583 static constexpr const char*
s_prototype{
"return_get_current_nav_map INavigation2DMsgs::get_current_navigation_map_RPC(const yarp::dev::Nav2D::NavigationMapTypeEnum map_type)"};
642 static constexpr const char*
s_tag{
"goto_target_by_absolute_location_RPC"};
646 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::goto_target_by_absolute_location_RPC(const yarp::dev::Nav2D::Map2DLocation& loc)"};
705 static constexpr const char*
s_tag{
"follow_path_RPC"};
709 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::follow_path_RPC(const yarp::dev::Nav2D::Map2DPath& path)"};
769 static constexpr const char*
s_tag{
"goto_target_by_relative_location1_RPC"};
773 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue INavigation2DMsgs::goto_target_by_relative_location1_RPC(const double x, const double y)"};
834 static constexpr const char*
s_tag{
"goto_target_by_relative_location2_RPC"};
838 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)"};
892 static constexpr const char*
s_tag{
"get_absolute_location_of_current_target_RPC"};
896 static constexpr const char*
s_prototype{
"return_get_abs_loc_of_curr_target INavigation2DMsgs::get_absolute_location_of_current_target_RPC()"};
950 static constexpr const char*
s_tag{
"get_relative_location_of_current_target_RPC"};
954 static constexpr const char*
s_prototype{
"return_get_rel_loc_of_curr_target INavigation2DMsgs::get_relative_location_of_current_target_RPC()"};
1014 static constexpr const char*
s_tag{
"goto_target_by_absolute_location_and_set_name_RPC"};
1018 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)"};
1080 static constexpr const char*
s_tag{
"apply_velocity_command_RPC"};
1084 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)"};
1138 static constexpr const char*
s_tag{
"get_last_velocity_command_RPC"};
1142 static constexpr const char*
s_prototype{
"return_get_last_velocity_command INavigation2DMsgs::get_last_velocity_command_RPC()"};
1196 static constexpr const char*
s_tag{
"get_name_of_current_target_RPC"};
1200 static constexpr const char*
s_prototype{
"return_get_name_of_current_target INavigation2DMsgs::get_name_of_current_target_RPC()"};
1221 return write(writer);
1231 return read(reader);
1236 if (!writeTag(writer)) {
1239 if (!writeArgs(writer)) {
1260 if (!readTag(reader)) {
1263 if (!readArgs(reader)) {
1294 return write(writer);
1300 return read(reader);
1306 if (!writer.
write(return_helper)) {
1319 if (!reader.
read(return_helper)) {
1348 return write(writer);
1358 return read(reader);
1363 if (!writeTag(writer)) {
1366 if (!writeArgs(writer)) {
1387 if (!readTag(reader)) {
1390 if (!readArgs(reader)) {
1421 return write(writer);
1427 return read(reader);
1433 if (!writer.
write(return_helper)) {
1446 if (!reader.
read(return_helper)) {
1485 return write(writer);
1495 return read(reader);
1500 if (!writeTag(writer)) {
1503 if (!writeArgs(writer)) {
1527 if (!readTag(reader)) {
1530 if (!readArgs(reader)) {
1569 return write(writer);
1575 return read(reader);
1581 if (!writer.
write(return_helper)) {
1594 if (!reader.
read(return_helper)) {
1623 return write(writer);
1633 return read(reader);
1638 if (!writeTag(writer)) {
1641 if (!writeArgs(writer)) {
1662 if (!readTag(reader)) {
1665 if (!readArgs(reader)) {
1696 return write(writer);
1702 return read(reader);
1708 if (!writer.
write(return_helper)) {
1721 if (!reader.
read(return_helper)) {
1750 return write(writer);
1760 return read(reader);
1765 if (!writeTag(writer)) {
1768 if (!writeArgs(writer)) {
1789 if (!readTag(reader)) {
1792 if (!readArgs(reader)) {
1823 return write(writer);
1829 return read(reader);
1838 if (!writer.
write(return_helper)) {
1854 if (!reader.
read(return_helper)) {
1883 return write(writer);
1893 return read(reader);
1898 if (!writeTag(writer)) {
1901 if (!writeArgs(writer)) {
1922 if (!readTag(reader)) {
1925 if (!readArgs(reader)) {
1956 return write(writer);
1962 return read(reader);
1971 if (!writer.
write(return_helper)) {
1987 if (!reader.
read(return_helper)) {
2001 cmd{trajectory_type}
2016 trajectory_type{trajectory_type}
2026 return write(writer);
2036 return read(reader);
2041 if (!writeTag(writer)) {
2044 if (!writeArgs(writer)) {
2068 if (!readTag(reader)) {
2071 if (!readArgs(reader)) {
2112 return write(writer);
2118 return read(reader);
2127 if (!writer.
write(return_helper)) {
2143 if (!reader.
read(return_helper)) {
2182 return write(writer);
2192 return read(reader);
2197 if (!writeTag(writer)) {
2200 if (!writeArgs(writer)) {
2224 if (!readTag(reader)) {
2227 if (!readArgs(reader)) {
2268 return write(writer);
2274 return read(reader);
2283 if (!writer.
write(return_helper)) {
2299 if (!reader.
read(return_helper)) {
2338 return write(writer);
2348 return read(reader);
2353 if (!writeTag(writer)) {
2356 if (!writeArgs(writer)) {
2380 if (!readTag(reader)) {
2383 if (!readArgs(reader)) {
2422 return write(writer);
2428 return read(reader);
2434 if (!writer.
write(return_helper)) {
2447 if (!reader.
read(return_helper)) {
2486 return write(writer);
2496 return read(reader);
2501 if (!writeTag(writer)) {
2504 if (!writeArgs(writer)) {
2528 if (!readTag(reader)) {
2531 if (!readArgs(reader)) {
2570 return write(writer);
2576 return read(reader);
2582 if (!writer.
write(return_helper)) {
2595 if (!reader.
read(return_helper)) {
2635 return write(writer);
2645 return read(reader);
2650 if (!writeTag(writer)) {
2653 if (!writeArgs(writer)) {
2680 if (!readTag(reader)) {
2683 if (!readArgs(reader)) {
2730 return write(writer);
2736 return read(reader);
2742 if (!writer.
write(return_helper)) {
2755 if (!reader.
read(return_helper)) {
2796 return write(writer);
2806 return read(reader);
2811 if (!writeTag(writer)) {
2814 if (!writeArgs(writer)) {
2844 if (!readTag(reader)) {
2847 if (!readArgs(reader)) {
2902 return write(writer);
2908 return read(reader);
2914 if (!writer.
write(return_helper)) {
2927 if (!reader.
read(return_helper)) {
2956 return write(writer);
2966 return read(reader);
2971 if (!writeTag(writer)) {
2974 if (!writeArgs(writer)) {
2995 if (!readTag(reader)) {
2998 if (!readArgs(reader)) {
3029 return write(writer);
3035 return read(reader);
3044 if (!writer.
write(return_helper)) {
3060 if (!reader.
read(return_helper)) {
3089 return write(writer);
3099 return read(reader);
3104 if (!writeTag(writer)) {
3107 if (!writeArgs(writer)) {
3128 if (!readTag(reader)) {
3131 if (!readArgs(reader)) {
3162 return write(writer);
3168 return read(reader);
3177 if (!writer.
write(return_helper)) {
3193 if (!reader.
read(return_helper)) {
3233 return write(writer);
3243 return read(reader);
3248 if (!writeTag(writer)) {
3251 if (!writeArgs(writer)) {
3278 if (!readTag(reader)) {
3281 if (!readArgs(reader)) {
3328 return write(writer);
3334 return read(reader);
3340 if (!writer.
write(return_helper)) {
3353 if (!reader.
read(return_helper)) {
3367 cmd{x_vel, y_vel, theta_vel, timeout}
3384 theta_vel{theta_vel},
3395 return write(writer);
3405 return read(reader);
3410 if (!writeTag(writer)) {
3413 if (!writeArgs(writer)) {
3446 if (!readTag(reader)) {
3449 if (!readArgs(reader)) {
3512 return write(writer);
3518 return read(reader);
3524 if (!writer.
write(return_helper)) {
3537 if (!reader.
read(return_helper)) {
3566 return write(writer);
3576 return read(reader);
3581 if (!writeTag(writer)) {
3584 if (!writeArgs(writer)) {
3605 if (!readTag(reader)) {
3608 if (!readArgs(reader)) {
3639 return write(writer);
3645 return read(reader);
3654 if (!writer.
write(return_helper)) {
3670 if (!reader.
read(return_helper)) {
3699 return write(writer);
3709 return read(reader);
3714 if (!writeTag(writer)) {
3717 if (!writeArgs(writer)) {
3738 if (!readTag(reader)) {
3741 if (!readArgs(reader)) {
3772 return write(writer);
3778 return read(reader);
3787 if (!writer.
write(return_helper)) {
3803 if (!reader.
read(return_helper)) {
3818 yarp().setOwner(*
this);
3823 if (!
yarp().canWrite()) {
3827 bool ok =
yarp().write(helper, helper);
3833 if (!
yarp().canWrite()) {
3837 bool ok =
yarp().write(helper, helper);
3843 if (!
yarp().canWrite()) {
3847 bool ok =
yarp().write(helper, helper);
3853 if (!
yarp().canWrite()) {
3857 bool ok =
yarp().write(helper, helper);
3863 if (!
yarp().canWrite()) {
3867 bool ok =
yarp().write(helper, helper);
3873 if (!
yarp().canWrite()) {
3877 bool ok =
yarp().write(helper, helper);
3883 if (!
yarp().canWrite()) {
3887 bool ok =
yarp().write(helper, helper);
3893 if (!
yarp().canWrite()) {
3897 bool ok =
yarp().write(helper, helper);
3903 if (!
yarp().canWrite()) {
3907 bool ok =
yarp().write(helper, helper);
3913 if (!
yarp().canWrite()) {
3917 bool ok =
yarp().write(helper, helper);
3923 if (!
yarp().canWrite()) {
3927 bool ok =
yarp().write(helper, helper);
3933 if (!
yarp().canWrite()) {
3937 bool ok =
yarp().write(helper, helper);
3943 if (!
yarp().canWrite()) {
3947 bool ok =
yarp().write(helper, helper);
3953 if (!
yarp().canWrite()) {
3957 bool ok =
yarp().write(helper, helper);
3963 if (!
yarp().canWrite()) {
3967 bool ok =
yarp().write(helper, helper);
3973 if (!
yarp().canWrite()) {
3977 bool ok =
yarp().write(helper, helper);
3983 if (!
yarp().canWrite()) {
3987 bool ok =
yarp().write(helper, helper);
3993 if (!
yarp().canWrite()) {
3997 bool ok =
yarp().write(helper, helper);
4004 bool showAll = (functionName ==
"--all");
4005 std::vector<std::string> helpString;
4007 helpString.emplace_back(
"*** Available commands:");
4026 helpString.emplace_back(
"help");
4082 if (functionName ==
"help") {
4083 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
4084 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
4085 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");
4086 helpString.emplace_back(
"@return list of strings (one string per line)");
4089 if (helpString.empty()) {
4090 helpString.emplace_back(
"Command not found");
4098 constexpr size_t max_tag_len = 9;
4108 std::string tag = reader.
readTag(1);
4109 bool direct = (tag ==
"__direct__");
4113 while (tag_len <= max_tag_len && !reader.
isError()) {
4114 if(tag ==
"getRemoteProtocolVersion") {
4121 auto proto = getLocalProtocolVersion();
4127 if (!writer.
write(proto)) {
4404 if (tag ==
"help") {
4405 std::string functionName;
4407 functionName =
"--all";
4409 auto help_strings = help(functionName);
4415 if (!writer.
writeTag(
"many", 1, 0)) {
4421 for (
const auto& help_string : help_strings) {
4437 std::string next_tag = reader.
readTag(1);
4438 if (next_tag.empty()) {
4441 tag.append(
"_").append(next_tag);
4442 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)
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