43 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
57 if (!helper_proto.read(connection)) {
67 if(!
yarp().canWrite()) {
68 yError(
" Missing server method WorldInterfaceServer::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();
169 static constexpr const char*
s_tag{
"makeSphere"};
173 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::makeSphere(const double radius, const Pose& pose, const Color& color, const std::string& frame_name, const std::string& object_name, const bool gravity_enable, const bool collision_enable)"};
183 WorldInterfaceServer_makeBox_helper(
const double width,
const double height,
const double thickness,
const Pose& pose,
const Color& color,
const std::string& frame_name,
const std::string& object_name,
const bool gravity_enable,
const bool collision_enable);
240 static constexpr const char*
s_tag{
"makeBox"};
244 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::makeBox(const double width, const double height, const double thickness, const Pose& pose, const Color& color, const std::string& frame_name, const std::string& object_name, const bool gravity_enable, const bool collision_enable)"};
310 static constexpr const char*
s_tag{
"makeCylinder"};
314 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::makeCylinder(const double radius, const double length, const Pose& pose, const Color& color, const std::string& frame_name, const std::string& object_name, const bool gravity_enable, const bool collision_enable)"};
379 static constexpr const char*
s_tag{
"makeFrame"};
383 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::makeFrame(const double size, const Pose& pose, const Color& color, const std::string& frame_name, const std::string& object_name, const bool gravity_enable, const bool collision_enable)"};
443 static constexpr const char*
s_tag{
"changeColor"};
447 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::changeColor(const std::string& id, const Color& color)"};
508 static constexpr const char*
s_tag{
"setPose"};
512 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::setPose(const std::string& id, const Pose& pose, const std::string& frame_name)"};
572 static constexpr const char*
s_tag{
"enableGravity"};
576 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::enableGravity(const std::string& id, const bool enable)"};
636 static constexpr const char*
s_tag{
"enableCollision"};
640 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::enableCollision(const std::string& id, const bool enable)"};
700 static constexpr const char*
s_tag{
"getPose"};
704 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::getPose(const std::string& id, const std::string& frame_name)"};
763 static constexpr const char*
s_tag{
"loadModelFromFile"};
767 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::loadModelFromFile(const std::string& filename)"};
829 static constexpr const char*
s_tag{
"loadModelFromFileWithPose"};
833 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::loadModelFromFileWithPose(const std::string& filename, const Pose& pose, const std::string& object_name, const double timeout)"};
852 explicit Command(
const std::string&
id);
892 static constexpr const char*
s_tag{
"deleteObject"};
896 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::deleteObject(const std::string& id)"};
950 static constexpr const char*
s_tag{
"deleteAll"};
954 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::deleteAll()"};
1013 static constexpr const char*
s_tag{
"getList"};
1017 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::getList(const std::vector<std::string>& idlist)"};
1077 static constexpr const char*
s_tag{
"attach"};
1081 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::attach(const std::string& id, const std::string& link_name)"};
1100 explicit Command(
const std::string&
id);
1140 static constexpr const char*
s_tag{
"detach"};
1144 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::detach(const std::string& id)"};
1204 static constexpr const char*
s_tag{
"rename"};
1208 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue WorldInterfaceServer::rename(const std::string& old_name, const std::string& new_name)"};
1214 cmd{radius, pose, color, frame_name, object_name, gravity_enable, collision_enable}
1232 frame_name{frame_name},
1233 object_name{object_name},
1234 gravity_enable{gravity_enable},
1235 collision_enable{collision_enable}
1245 return write(writer);
1255 return read(reader);
1260 if (!writeTag(writer)) {
1263 if (!writeArgs(writer)) {
1282 if (!writer.
write(pose)) {
1285 if (!writer.
write(color)) {
1294 if (!writer.
writeBool(gravity_enable)) {
1297 if (!writer.
writeBool(collision_enable)) {
1305 if (!readTag(reader)) {
1308 if (!readArgs(reader)) {
1341 if (!reader.
read(pose)) {
1349 if (!reader.
read(color)) {
1359 if (!reader.
readBool(gravity_enable)) {
1360 gravity_enable =
false;
1362 if (!reader.
readBool(collision_enable)) {
1363 collision_enable =
true;
1375 return write(writer);
1381 return read(reader);
1387 if (!writer.
write(return_helper)) {
1400 if (!reader.
read(return_helper)) {
1414 cmd{width, height, thickness, pose, color, frame_name, object_name, gravity_enable, collision_enable}
1431 thickness{thickness},
1434 frame_name{frame_name},
1435 object_name{object_name},
1436 gravity_enable{gravity_enable},
1437 collision_enable{collision_enable}
1447 return write(writer);
1457 return read(reader);
1462 if (!writeTag(writer)) {
1465 if (!writeArgs(writer)) {
1490 if (!writer.
write(pose)) {
1493 if (!writer.
write(color)) {
1502 if (!writer.
writeBool(gravity_enable)) {
1505 if (!writer.
writeBool(collision_enable)) {
1513 if (!readTag(reader)) {
1516 if (!readArgs(reader)) {
1565 if (!reader.
read(pose)) {
1573 if (!reader.
read(color)) {
1583 if (!reader.
readBool(gravity_enable)) {
1584 gravity_enable =
false;
1586 if (!reader.
readBool(collision_enable)) {
1587 collision_enable =
true;
1599 return write(writer);
1605 return read(reader);
1611 if (!writer.
write(return_helper)) {
1624 if (!reader.
read(return_helper)) {
1638 cmd{radius, length, pose, color, frame_name, object_name, gravity_enable, collision_enable}
1657 frame_name{frame_name},
1658 object_name{object_name},
1659 gravity_enable{gravity_enable},
1660 collision_enable{collision_enable}
1670 return write(writer);
1680 return read(reader);
1685 if (!writeTag(writer)) {
1688 if (!writeArgs(writer)) {
1710 if (!writer.
write(pose)) {
1713 if (!writer.
write(color)) {
1722 if (!writer.
writeBool(gravity_enable)) {
1725 if (!writer.
writeBool(collision_enable)) {
1733 if (!readTag(reader)) {
1736 if (!readArgs(reader)) {
1777 if (!reader.
read(pose)) {
1785 if (!reader.
read(color)) {
1795 if (!reader.
readBool(gravity_enable)) {
1796 gravity_enable =
false;
1798 if (!reader.
readBool(collision_enable)) {
1799 collision_enable =
true;
1811 return write(writer);
1817 return read(reader);
1823 if (!writer.
write(return_helper)) {
1836 if (!reader.
read(return_helper)) {
1850 cmd{size, pose, color, frame_name, object_name, gravity_enable, collision_enable}
1868 frame_name{frame_name},
1869 object_name{object_name},
1870 gravity_enable{gravity_enable},
1871 collision_enable{collision_enable}
1881 return write(writer);
1891 return read(reader);
1896 if (!writeTag(writer)) {
1899 if (!writeArgs(writer)) {
1918 if (!writer.
write(pose)) {
1921 if (!writer.
write(color)) {
1930 if (!writer.
writeBool(gravity_enable)) {
1933 if (!writer.
writeBool(collision_enable)) {
1941 if (!readTag(reader)) {
1944 if (!readArgs(reader)) {
1977 if (!reader.
read(pose)) {
1985 if (!reader.
read(color)) {
1995 if (!reader.
readBool(gravity_enable)) {
1996 gravity_enable =
false;
1998 if (!reader.
readBool(collision_enable)) {
1999 collision_enable =
true;
2011 return write(writer);
2017 return read(reader);
2023 if (!writer.
write(return_helper)) {
2036 if (!reader.
read(return_helper)) {
2076 return write(writer);
2086 return read(reader);
2091 if (!writeTag(writer)) {
2094 if (!writeArgs(writer)) {
2113 if (!writer.
write(color)) {
2121 if (!readTag(reader)) {
2124 if (!readArgs(reader)) {
2157 if (!reader.
read(color)) {
2171 return write(writer);
2177 return read(reader);
2183 if (!writer.
write(return_helper)) {
2196 if (!reader.
read(return_helper)) {
2210 cmd{id, pose, frame_name}
2227 frame_name{frame_name}
2237 return write(writer);
2247 return read(reader);
2252 if (!writeTag(writer)) {
2255 if (!writeArgs(writer)) {
2274 if (!writer.
write(pose)) {
2285 if (!readTag(reader)) {
2288 if (!readArgs(reader)) {
2321 if (!reader.
read(pose)) {
2338 return write(writer);
2344 return read(reader);
2350 if (!writer.
write(return_helper)) {
2363 if (!reader.
read(return_helper)) {
2403 return write(writer);
2413 return read(reader);
2418 if (!writeTag(writer)) {
2421 if (!writeArgs(writer)) {
2448 if (!readTag(reader)) {
2451 if (!readArgs(reader)) {
2498 return write(writer);
2504 return read(reader);
2510 if (!writer.
write(return_helper)) {
2523 if (!reader.
read(return_helper)) {
2563 return write(writer);
2573 return read(reader);
2578 if (!writeTag(writer)) {
2581 if (!writeArgs(writer)) {
2608 if (!readTag(reader)) {
2611 if (!readArgs(reader)) {
2658 return write(writer);
2664 return read(reader);
2670 if (!writer.
write(return_helper)) {
2683 if (!reader.
read(return_helper)) {
2713 frame_name{frame_name}
2723 return write(writer);
2733 return read(reader);
2738 if (!writeTag(writer)) {
2741 if (!writeArgs(writer)) {
2768 if (!readTag(reader)) {
2771 if (!readArgs(reader)) {
2813 return write(writer);
2819 return read(reader);
2825 if (!writer.
write(return_helper)) {
2838 if (!reader.
read(return_helper)) {
2877 return write(writer);
2887 return read(reader);
2892 if (!writeTag(writer)) {
2895 if (!writeArgs(writer)) {
2919 if (!readTag(reader)) {
2922 if (!readArgs(reader)) {
2961 return write(writer);
2967 return read(reader);
2973 if (!writer.
write(return_helper)) {
2986 if (!reader.
read(return_helper)) {
3000 cmd{filename, pose, object_name, timeout}
3017 object_name{object_name},
3028 return write(writer);
3038 return read(reader);
3043 if (!writeTag(writer)) {
3046 if (!writeArgs(writer)) {
3065 if (!writer.
write(pose)) {
3079 if (!readTag(reader)) {
3082 if (!readArgs(reader)) {
3115 if (!reader.
read(pose)) {
3135 return write(writer);
3141 return read(reader);
3147 if (!writer.
write(return_helper)) {
3160 if (!reader.
read(return_helper)) {
3199 return write(writer);
3209 return read(reader);
3214 if (!writeTag(writer)) {
3217 if (!writeArgs(writer)) {
3241 if (!readTag(reader)) {
3244 if (!readArgs(reader)) {
3283 return write(writer);
3289 return read(reader);
3295 if (!writer.
write(return_helper)) {
3308 if (!reader.
read(return_helper)) {
3337 return write(writer);
3347 return read(reader);
3352 if (!writeTag(writer)) {
3355 if (!writeArgs(writer)) {
3376 if (!readTag(reader)) {
3379 if (!readArgs(reader)) {
3410 return write(writer);
3416 return read(reader);
3422 if (!writer.
write(return_helper)) {
3435 if (!reader.
read(return_helper)) {
3474 return write(writer);
3484 return read(reader);
3489 if (!writeTag(writer)) {
3492 if (!writeArgs(writer)) {
3511 for (
const auto& _item : idlist) {
3524 if (!readTag(reader)) {
3527 if (!readArgs(reader)) {
3557 if constexpr (expected_tag != 0) {
3558 if (_csize != 0 && _etype.
code != expected_tag) {
3562 idlist.resize(_csize);
3563 for (
size_t _i = 0; _i < _csize; ++_i) {
3584 return write(writer);
3590 return read(reader);
3596 if (!writer.
write(return_helper)) {
3609 if (!reader.
read(return_helper)) {
3639 link_name{link_name}
3649 return write(writer);
3659 return read(reader);
3664 if (!writeTag(writer)) {
3667 if (!writeArgs(writer)) {
3694 if (!readTag(reader)) {
3697 if (!readArgs(reader)) {
3744 return write(writer);
3750 return read(reader);
3756 if (!writer.
write(return_helper)) {
3769 if (!reader.
read(return_helper)) {
3808 return write(writer);
3818 return read(reader);
3823 if (!writeTag(writer)) {
3826 if (!writeArgs(writer)) {
3850 if (!readTag(reader)) {
3853 if (!readArgs(reader)) {
3892 return write(writer);
3898 return read(reader);
3904 if (!writer.
write(return_helper)) {
3917 if (!reader.
read(return_helper)) {
3931 cmd{old_name, new_name}
3957 return write(writer);
3967 return read(reader);
3972 if (!writeTag(writer)) {
3975 if (!writeArgs(writer)) {
4002 if (!readTag(reader)) {
4005 if (!readArgs(reader)) {
4052 return write(writer);
4058 return read(reader);
4064 if (!writer.
write(return_helper)) {
4077 if (!reader.
read(return_helper)) {
4092 yarp().setOwner(*
this);
4097 if (!
yarp().canWrite()) {
4101 bool ok =
yarp().write(helper, helper);
4107 if (!
yarp().canWrite()) {
4111 bool ok =
yarp().write(helper, helper);
4117 if (!
yarp().canWrite()) {
4121 bool ok =
yarp().write(helper, helper);
4127 if (!
yarp().canWrite()) {
4131 bool ok =
yarp().write(helper, helper);
4137 if (!
yarp().canWrite()) {
4141 bool ok =
yarp().write(helper, helper);
4147 if (!
yarp().canWrite()) {
4151 bool ok =
yarp().write(helper, helper);
4157 if (!
yarp().canWrite()) {
4161 bool ok =
yarp().write(helper, helper);
4167 if (!
yarp().canWrite()) {
4171 bool ok =
yarp().write(helper, helper);
4177 if (!
yarp().canWrite()) {
4181 bool ok =
yarp().write(helper, helper);
4187 if (!
yarp().canWrite()) {
4191 bool ok =
yarp().write(helper, helper);
4197 if (!
yarp().canWrite()) {
4201 bool ok =
yarp().write(helper, helper);
4207 if (!
yarp().canWrite()) {
4211 bool ok =
yarp().write(helper, helper);
4217 if (!
yarp().canWrite()) {
4221 bool ok =
yarp().write(helper, helper);
4227 if (!
yarp().canWrite()) {
4231 bool ok =
yarp().write(helper, helper);
4237 if (!
yarp().canWrite()) {
4241 bool ok =
yarp().write(helper, helper);
4247 if (!
yarp().canWrite()) {
4251 bool ok =
yarp().write(helper, helper);
4257 if (!
yarp().canWrite()) {
4261 bool ok =
yarp().write(helper, helper);
4268 bool showAll = (functionName ==
"--all");
4269 std::vector<std::string> helpString;
4271 helpString.emplace_back(
"*** Available commands:");
4289 helpString.emplace_back(
"help");
4342 if (functionName ==
"help") {
4343 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
4344 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
4345 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");
4346 helpString.emplace_back(
"@return list of strings (one string per line)");
4349 if (helpString.empty()) {
4350 helpString.emplace_back(
"Command not found");
4358 constexpr size_t max_tag_len = 1;
4368 std::string tag = reader.
readTag(1);
4369 bool direct = (tag ==
"__direct__");
4373 while (tag_len <= max_tag_len && !reader.
isError()) {
4374 if(tag ==
"getRemoteProtocolVersion") {
4381 auto proto = getLocalProtocolVersion();
4387 if (!writer.
write(proto)) {
4649 if (tag ==
"help") {
4650 std::string functionName;
4652 functionName =
"--all";
4654 auto help_strings = help(functionName);
4660 if (!writer.
writeTag(
"many", 1, 0)) {
4666 for (
const auto& help_string : help_strings) {
4682 std::string next_tag = reader.
readTag(1);
4683 if (next_tag.empty()) {
4686 tag.append(
"_").append(next_tag);
4687 tag_len = std::count(tag.begin(), tag.end(),
'_') + 1;
#define BOTTLE_TAG_STRING
bool writeArgs(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 writeTag(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.
~Command() override=default
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
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_tag
WorldInterfaceServer_attach_helper()=default
static constexpr size_t s_reply_len
static constexpr size_t s_cmd_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
void call(WorldInterfaceServer *ptr)
yarp::dev::ReturnValue(*)(const std::string &, const std::string &) funcptr_t
static constexpr const char * s_prototype
static constexpr const char * s_help
static constexpr size_t s_tag_len
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)
~Command() override=default
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.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_prototype
static constexpr size_t s_tag_len
static constexpr const char * s_tag
WorldInterfaceServer_changeColor_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_help
yarp::dev::ReturnValue(*)(const std::string &, const Color &) funcptr_t
static constexpr size_t s_cmd_len
void call(WorldInterfaceServer *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
bool 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
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.
yarp::dev::ReturnValue(*)() funcptr_t
static constexpr size_t s_tag_len
static constexpr size_t s_cmd_len
WorldInterfaceServer_deleteAll_helper()=default
static constexpr const char * s_help
static constexpr size_t s_reply_len
void call(WorldInterfaceServer *ptr)
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_tag
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(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.
~Command() override=default
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
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.
static constexpr const char * s_tag
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_reply_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_prototype
void call(WorldInterfaceServer *ptr)
yarp::dev::ReturnValue(*)(const std::string &) funcptr_t
static constexpr size_t s_cmd_len
WorldInterfaceServer_deleteObject_helper()=default
static constexpr size_t s_tag_len
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::ReturnValue return_helper
~Reply() override=default
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.
void call(WorldInterfaceServer *ptr)
static constexpr const char * s_tag
static constexpr size_t s_reply_len
yarp::dev::ReturnValue(*)(const std::string &) funcptr_t
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
WorldInterfaceServer_detach_helper()=default
static constexpr size_t s_tag_len
bool readTag(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::ReturnValue return_helper
static constexpr size_t s_cmd_len
static constexpr const char * s_help
WorldInterfaceServer_enableCollision_helper()=default
yarp::dev::ReturnValue(*)(const std::string &, const bool) funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_prototype
void call(WorldInterfaceServer *ptr)
static constexpr const char * s_tag
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 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 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
~Command() 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.
~Reply() override=default
static constexpr size_t s_tag_len
void call(WorldInterfaceServer *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
static constexpr size_t s_reply_len
WorldInterfaceServer_enableGravity_helper()=default
static constexpr const char * s_prototype
static constexpr const char * s_tag
static constexpr const char * s_help
yarp::dev::ReturnValue(*)(const std::string &, const bool) funcptr_t
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
std::vector< std::string > idlist
~Command() 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.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from 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.
WorldInterfaceServer_getList_helper()=default
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_help
static constexpr size_t s_cmd_len
static constexpr size_t s_reply_len
static constexpr const char * s_tag
yarp::dev::ReturnValue(*)(const std::vector< std::string > &) funcptr_t
void call(WorldInterfaceServer *ptr)
static constexpr const char * s_prototype
bool readTag(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 write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue return_helper
yarp::dev::ReturnValue(*)(const std::string &, const std::string &) funcptr_t
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_help
WorldInterfaceServer_getPose_helper()=default
static constexpr size_t s_reply_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(WorldInterfaceServer *ptr)
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
WorldInterfaceServer_getRemoteProtocolVersion_helper()=default
yarp::os::ApplicationNetworkProtocolVersion helper_proto
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 writeArgs(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 writeTag(const yarp::os::idl::WireWriter &writer) const
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.
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::ReturnValue return_helper
yarp::dev::ReturnValue(*)(const std::string &, const Pose &, const std::string &, const double) funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_cmd_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
WorldInterfaceServer_loadModelFromFileWithPose_helper()=default
static constexpr size_t s_tag_len
static constexpr const char * s_tag
static constexpr const char * s_prototype
static constexpr const char * s_help
void call(WorldInterfaceServer *ptr)
static constexpr size_t s_reply_len
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.
~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.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue return_helper
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
void call(WorldInterfaceServer *ptr)
yarp::dev::ReturnValue(*)(const std::string &) funcptr_t
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_cmd_len
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.
WorldInterfaceServer_loadModelFromFile_helper()=default
static constexpr size_t s_tag_len
static constexpr const char * s_prototype
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 readArgs(yarp::os::idl::WireReader &reader)
~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 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
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
void call(WorldInterfaceServer *ptr)
static constexpr size_t s_reply_len
WorldInterfaceServer_makeBox_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
yarp::dev::ReturnValue(*)(const double, const double, const double, const Pose &, const Color &, const std::string &, const std::string &, const bool, const bool) funcptr_t
static constexpr const char * s_prototype
static constexpr size_t s_tag_len
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.
~Command() override=default
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue return_helper
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::ReturnValue(*)(const double, const double, const Pose &, const Color &, const std::string &, const std::string &, const bool, const bool) funcptr_t
void call(WorldInterfaceServer *ptr)
static constexpr const char * s_prototype
static constexpr size_t s_tag_len
WorldInterfaceServer_makeCylinder_helper()=default
static constexpr size_t s_cmd_len
static constexpr const char * s_help
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_tag
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool 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.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
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
WorldInterfaceServer_makeFrame_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
static constexpr size_t s_tag_len
static constexpr const char * s_tag
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.
yarp::dev::ReturnValue(*)(const double, const Pose &, const Color &, const std::string &, const std::string &, const bool, const bool) funcptr_t
void call(WorldInterfaceServer *ptr)
bool readTag(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
bool 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
yarp::dev::ReturnValue(*)(const double, const Pose &, const Color &, const std::string &, const std::string &, const bool, const bool) funcptr_t
static constexpr const char * s_tag
WorldInterfaceServer_makeSphere_helper()=default
static constexpr size_t s_reply_len
static constexpr size_t s_cmd_len
static constexpr const char * s_prototype
static constexpr size_t s_tag_len
static constexpr const char * s_help
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(WorldInterfaceServer *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool 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
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::ReturnValue return_helper
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(WorldInterfaceServer *ptr)
static constexpr const char * s_prototype
static constexpr const char * s_help
static constexpr const char * s_tag
static constexpr size_t s_tag_len
static constexpr size_t s_cmd_len
static constexpr size_t s_reply_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue(*)(const std::string &, const std::string &) funcptr_t
WorldInterfaceServer_rename_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
bool 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 writeTag(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue return_helper
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
static constexpr size_t s_reply_len
yarp::dev::ReturnValue(*)(const std::string &, const Pose &, const std::string &) funcptr_t
WorldInterfaceServer_setPose_helper()=default
void call(WorldInterfaceServer *ptr)
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_tag_len
static constexpr const char * s_help
static constexpr const char * s_tag
static constexpr size_t s_cmd_len
static constexpr const char * s_prototype
virtual yarp::dev::ReturnValue enableCollision(const std::string &id, const bool enable)
virtual yarp::dev::ReturnValue makeFrame(const double size, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual yarp::dev::ReturnValue makeSphere(const double radius, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true)
virtual yarp::os::ApplicationNetworkProtocolVersion getRemoteProtocolVersion()
virtual bool checkProtocolVersion()
virtual yarp::dev::ReturnValue deleteAll()
virtual yarp::dev::ReturnValue enableGravity(const std::string &id, const bool enable)
virtual yarp::dev::ReturnValue changeColor(const std::string &id, const Color &color)
virtual yarp::dev::ReturnValue setPose(const std::string &id, const Pose &pose, const std::string &frame_name="")
virtual yarp::dev::ReturnValue loadModelFromFile(const std::string &filename)
virtual yarp::dev::ReturnValue rename(const std::string &old_name, const std::string &new_name)
virtual yarp::dev::ReturnValue loadModelFromFileWithPose(const std::string &filename, const Pose &pose, const std::string &object_name="", const double timeout=2.000000)
virtual yarp::dev::ReturnValue deleteObject(const std::string &id)
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual yarp::dev::ReturnValue detach(const std::string &id)
virtual yarp::dev::ReturnValue makeBox(const double width, const double height, const double thickness, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true)
virtual yarp::dev::ReturnValue getPose(const std::string &id, const std::string &frame_name="")
virtual yarp::dev::ReturnValue makeCylinder(const double radius, const double length, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true)
virtual yarp::dev::ReturnValue getList(const std::vector< std::string > &idlist)
virtual yarp::os::ApplicationNetworkProtocolVersion getLocalProtocolVersion()
virtual yarp::dev::ReturnValue attach(const std::string &id, const std::string &link_name)
short int protocol_version
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
bool write(PortWriter &writer)
Write a message to the associated port or reader.
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
bool readString(std::string &str, bool *is_vocab=nullptr)
void readListBegin(yarp::os::idl::WireState &nstate, size_t &len)
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 writeBool(bool x, bool skip_tag=false) const
bool write(const WirePortable &obj) const
bool writeListHeader(int len) const
bool writeTag(const char *tag, int split, int len) const
bool writeFloat64(yarp::conf::float64_t x, bool skip_tag=false) const
bool writeString(const std::string &str, bool skip_tag=false) const
bool writeListEnd() const
bool writeListBegin(int tag, size_t len) const
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
The main, catch-all namespace for YARP.
#define YARP_VERSION_PATCH
#define YARP_VERSION_MAJOR
#define YARP_VERSION_MINOR