67 static constexpr const char*
s_tag{
"start_localization_service_RPC"};
71 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ILocalization2DMsgs::start_localization_service_RPC()"};
72 static constexpr const char*
s_help{
""};
125 static constexpr const char*
s_tag{
"stop_localization_service_RPC"};
129 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ILocalization2DMsgs::stop_localization_service_RPC()"};
183 static constexpr const char*
s_tag{
"get_localization_status_RPC"};
187 static constexpr const char*
s_prototype{
"return_get_localization_status ILocalization2DMsgs::get_localization_status_RPC()"};
241 static constexpr const char*
s_tag{
"get_estimated_poses_RPC"};
245 static constexpr const char*
s_prototype{
"return_get_estimated_poses ILocalization2DMsgs::get_estimated_poses_RPC()"};
299 static constexpr const char*
s_tag{
"get_current_position1_RPC"};
303 static constexpr const char*
s_prototype{
"return_get_current_position1 ILocalization2DMsgs::get_current_position1_RPC()"};
357 static constexpr const char*
s_tag{
"get_current_position2_RPC"};
361 static constexpr const char*
s_prototype{
"return_get_current_position2 ILocalization2DMsgs::get_current_position2_RPC()"};
415 static constexpr const char*
s_tag{
"get_estimated_odometry_RPC"};
419 static constexpr const char*
s_prototype{
"return_get_estimated_odometry ILocalization2DMsgs::get_estimated_odometry_RPC()"};
478 static constexpr const char*
s_tag{
"set_initial_pose1_RPC"};
482 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ILocalization2DMsgs::set_initial_pose1_RPC(const yarp::dev::Nav2D::Map2DLocation& loc)"};
542 static constexpr const char*
s_tag{
"set_initial_pose2_RPC"};
546 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ILocalization2DMsgs::set_initial_pose2_RPC(const yarp::dev::Nav2D::Map2DLocation& loc, const yarp::sig::Matrix& cov)"};
567 return write(writer);
582 if (!writeTag(writer)) {
585 if (!writeArgs(writer)) {
606 if (!readTag(reader)) {
609 if (!readArgs(reader)) {
640 return write(writer);
652 if (!writer.
write(return_helper)) {
665 if (!reader.
read(return_helper)) {
694 return write(writer);
709 if (!writeTag(writer)) {
712 if (!writeArgs(writer)) {
733 if (!readTag(reader)) {
736 if (!readArgs(reader)) {
767 return write(writer);
779 if (!writer.
write(return_helper)) {
792 if (!reader.
read(return_helper)) {
821 return write(writer);
836 if (!writeTag(writer)) {
839 if (!writeArgs(writer)) {
860 if (!readTag(reader)) {
863 if (!readArgs(reader)) {
894 return write(writer);
909 if (!writer.
write(return_helper)) {
925 if (!reader.
read(return_helper)) {
954 return write(writer);
969 if (!writeTag(writer)) {
972 if (!writeArgs(writer)) {
993 if (!readTag(reader)) {
996 if (!readArgs(reader)) {
1027 return write(writer);
1033 return read(reader);
1042 if (!writer.
write(return_helper)) {
1058 if (!reader.
read(return_helper)) {
1087 return write(writer);
1097 return read(reader);
1102 if (!writeTag(writer)) {
1105 if (!writeArgs(writer)) {
1126 if (!readTag(reader)) {
1129 if (!readArgs(reader)) {
1160 return write(writer);
1166 return read(reader);
1175 if (!writer.
write(return_helper)) {
1191 if (!reader.
read(return_helper)) {
1220 return write(writer);
1230 return read(reader);
1235 if (!writeTag(writer)) {
1238 if (!writeArgs(writer)) {
1259 if (!readTag(reader)) {
1262 if (!readArgs(reader)) {
1293 return write(writer);
1299 return read(reader);
1308 if (!writer.
write(return_helper)) {
1324 if (!reader.
read(return_helper)) {
1353 return write(writer);
1363 return read(reader);
1368 if (!writeTag(writer)) {
1371 if (!writeArgs(writer)) {
1392 if (!readTag(reader)) {
1395 if (!readArgs(reader)) {
1426 return write(writer);
1432 return read(reader);
1441 if (!writer.
write(return_helper)) {
1457 if (!reader.
read(return_helper)) {
1496 return write(writer);
1506 return read(reader);
1511 if (!writeTag(writer)) {
1514 if (!writeArgs(writer)) {
1538 if (!readTag(reader)) {
1541 if (!readArgs(reader)) {
1580 return write(writer);
1586 return read(reader);
1592 if (!writer.
write(return_helper)) {
1605 if (!reader.
read(return_helper)) {
1645 return write(writer);
1655 return read(reader);
1660 if (!writeTag(writer)) {
1663 if (!writeArgs(writer)) {
1690 if (!readTag(reader)) {
1693 if (!readArgs(reader)) {
1740 return write(writer);
1746 return read(reader);
1752 if (!writer.
write(return_helper)) {
1765 if (!reader.
read(return_helper)) {
1780 yarp().setOwner(*
this);
1785 if (!
yarp().canWrite()) {
1789 bool ok =
yarp().write(helper, helper);
1795 if (!
yarp().canWrite()) {
1799 bool ok =
yarp().write(helper, helper);
1805 if (!
yarp().canWrite()) {
1809 bool ok =
yarp().write(helper, helper);
1815 if (!
yarp().canWrite()) {
1819 bool ok =
yarp().write(helper, helper);
1825 if (!
yarp().canWrite()) {
1829 bool ok =
yarp().write(helper, helper);
1835 if (!
yarp().canWrite()) {
1839 bool ok =
yarp().write(helper, helper);
1845 if (!
yarp().canWrite()) {
1849 bool ok =
yarp().write(helper, helper);
1855 if (!
yarp().canWrite()) {
1859 bool ok =
yarp().write(helper, helper);
1865 if (!
yarp().canWrite()) {
1869 bool ok =
yarp().write(helper, helper);
1876 bool showAll = (functionName ==
"--all");
1877 std::vector<std::string> helpString;
1879 helpString.emplace_back(
"*** Available commands:");
1889 helpString.emplace_back(
"help");
1918 if (functionName ==
"help") {
1919 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
1920 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
1921 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");
1922 helpString.emplace_back(
"@return list of strings (one string per line)");
1925 if (helpString.empty()) {
1926 helpString.emplace_back(
"Command not found");
1934 constexpr size_t max_tag_len = 4;
1944 std::string tag = reader.
readTag(1);
1945 bool direct = (tag ==
"__direct__");
1949 while (tag_len <= max_tag_len && !reader.
isError()) {
2085 if (tag ==
"help") {
2086 std::string functionName;
2088 functionName =
"--all";
2090 auto help_strings = help(functionName);
2096 if (!writer.
writeTag(
"many", 1, 0)) {
2102 for (
const auto& help_string : help_strings) {
2118 std::string next_tag = reader.
readTag(1);
2119 if (next_tag.empty()) {
2122 tag.append(
"_").append(next_tag);
2123 tag_len = std::count(tag.begin(), tag.end(),
'_') + 1;
bool writeTag(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
return_get_current_position1 return_helper
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.
void call(ILocalization2DMsgs *ptr)
static constexpr const char * s_help
static constexpr size_t s_tag_len
return_get_current_position1(*)() funcptr_t
static constexpr const char * s_prototype
static constexpr size_t s_reply_len
static constexpr size_t s_cmd_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_tag
ILocalization2DMsgs_get_current_position1_RPC_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
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.
return_get_current_position2 return_helper
~Reply() override=default
static constexpr const char * s_help
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_tag_len
void call(ILocalization2DMsgs *ptr)
return_get_current_position2(*)() funcptr_t
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
ILocalization2DMsgs_get_current_position2_RPC_helper()=default
static constexpr size_t s_reply_len
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.
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.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
return_get_estimated_odometry 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_tag_len
static constexpr size_t s_cmd_len
ILocalization2DMsgs_get_estimated_odometry_RPC_helper()=default
static constexpr const char * s_prototype
static constexpr const char * s_help
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 const char * s_tag
void call(ILocalization2DMsgs *ptr)
return_get_estimated_odometry(*)() funcptr_t
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
~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 readArgs(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
return_get_estimated_poses return_helper
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
return_get_estimated_poses(*)() funcptr_t
static constexpr size_t s_reply_len
ILocalization2DMsgs_get_estimated_poses_RPC_helper()=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
void call(ILocalization2DMsgs *ptr)
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
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 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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_get_localization_status return_helper
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
void call(ILocalization2DMsgs *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
ILocalization2DMsgs_get_localization_status_RPC_helper()=default
static constexpr const char * s_help
static constexpr const char * s_tag
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
return_get_localization_status(*)() funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
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
yarp::dev::Nav2D::Map2DLocation loc
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
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.
yarp::dev::ReturnValue return_helper
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.
yarp::dev::ReturnValue(*)(const yarp::dev::Nav2D::Map2DLocation &) funcptr_t
static constexpr const char * s_help
void call(ILocalization2DMsgs *ptr)
static constexpr size_t s_cmd_len
static constexpr const char * s_prototype
static constexpr size_t s_tag_len
ILocalization2DMsgs_set_initial_pose1_RPC_helper()=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
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.
yarp::dev::Nav2D::Map2DLocation loc
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
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 readArgs(yarp::os::idl::WireReader &reader)
bool readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
~Reply() override=default
yarp::dev::ReturnValue return_helper
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
void call(ILocalization2DMsgs *ptr)
yarp::dev::ReturnValue(*)(const yarp::dev::Nav2D::Map2DLocation &, const yarp::sig::Matrix &) funcptr_t
static constexpr size_t s_tag_len
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
ILocalization2DMsgs_set_initial_pose2_RPC_helper()=default
static constexpr const char * s_help
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_prototype
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 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 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.
~Reply() override=default
yarp::dev::ReturnValue return_helper
static constexpr const char * s_tag
static constexpr size_t s_reply_len
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
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_tag_len
static constexpr size_t s_cmd_len
void call(ILocalization2DMsgs *ptr)
ILocalization2DMsgs_start_localization_service_RPC_helper()=default
static constexpr const char * s_help
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 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.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
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.
~Reply() override=default
static constexpr const char * s_prototype
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.
static constexpr const char * s_tag
void call(ILocalization2DMsgs *ptr)
yarp::dev::ReturnValue(*)() funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_tag_len
ILocalization2DMsgs_stop_localization_service_RPC_helper()=default
static constexpr size_t s_cmd_len
virtual return_get_estimated_poses get_estimated_poses_RPC()
virtual yarp::dev::ReturnValue set_initial_pose1_RPC(const yarp::dev::Nav2D::Map2DLocation &loc)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual return_get_current_position1 get_current_position1_RPC()
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual return_get_estimated_odometry get_estimated_odometry_RPC()
virtual return_get_localization_status get_localization_status_RPC()
virtual yarp::dev::ReturnValue stop_localization_service_RPC()
virtual yarp::dev::ReturnValue set_initial_pose2_RPC(const yarp::dev::Nav2D::Map2DLocation &loc, const yarp::sig::Matrix &cov)
virtual return_get_current_position2 get_current_position2_RPC()
virtual yarp::dev::ReturnValue start_localization_service_RPC()
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.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
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)
IDL-friendly connection writer.
bool write(const WirePortable &obj) const
bool writeListHeader(int len) const
bool writeTag(const char *tag, int split, int len) 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
The main, catch-all namespace for YARP.