43 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
57 if (!helper_proto.read(connection)) {
67 if(!
yarp().canWrite()) {
68 yError(
" Missing server method ISimulatedWorldMsgs::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 ISimulatedWorldMsgs::makeSphere(const std::string& id_name, const double radius, const yarp::sig::Pose6D& pose, const yarp::sig::ColorRGB& color, const std::string& frame_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 ISimulatedWorldMsgs::makeBox(const std::string& id_name, const double width, const double height, const double thickness, const yarp::sig::Pose6D& pose, const yarp::sig::ColorRGB& color, const std::string& frame_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 ISimulatedWorldMsgs::makeCylinder(const std::string& id_name, const double radius, const double length, const yarp::sig::Pose6D& pose, const yarp::sig::ColorRGB& color, const std::string& frame_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 ISimulatedWorldMsgs::makeFrame(const std::string& id_name, const double size, const yarp::sig::Pose6D& pose, const yarp::sig::ColorRGB& color, const std::string& frame_name, const bool gravity_enable, const bool collision_enable)"};
447 static constexpr const char*
s_tag{
"makeModel"};
451 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::makeModel(const std::string& id_name, const std::string& filename, const yarp::sig::Pose6D& pose, const std::string& frame_name, const bool gravity_enable, const bool collision_enable)"};
513 static constexpr const char*
s_tag{
"makeActor"};
517 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::makeActor(const std::string& id_name, const std::string& skinfile, const std::string& animfile, const yarp::sig::Pose6D& pose)"};
577 static constexpr const char*
s_tag{
"changeColor"};
581 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::changeColor(const std::string& id, const yarp::sig::ColorRGB& color)"};
642 static constexpr const char*
s_tag{
"setPose"};
646 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::setPose(const std::string& id, const yarp::sig::Pose6D& pose, const std::string& frame_name)"};
706 static constexpr const char*
s_tag{
"enableGravity"};
710 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::enableGravity(const std::string& id, const bool enable)"};
770 static constexpr const char*
s_tag{
"enableCollision"};
774 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::enableCollision(const std::string& id, const bool enable)"};
834 static constexpr const char*
s_tag{
"getPose"};
838 static constexpr const char*
s_prototype{
"getPoseReturnValue ISimulatedWorldMsgs::getPose(const std::string& id, const std::string& frame_name)"};
857 explicit Command(
const std::string&
id);
897 static constexpr const char*
s_tag{
"deleteObject"};
901 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::deleteObject(const std::string& id)"};
955 static constexpr const char*
s_tag{
"deleteAll"};
959 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::deleteAll()"};
1013 static constexpr const char*
s_tag{
"getList"};
1017 static constexpr const char*
s_prototype{
"getListReturnValue ISimulatedWorldMsgs::getList()"};
1077 static constexpr const char*
s_tag{
"attach"};
1081 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::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 ISimulatedWorldMsgs::detach(const std::string& id)"};
1204 static constexpr const char*
s_tag{
"rename"};
1208 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::rename(const std::string& old_name, const std::string& new_name)"};
1214 cmd{id_name, radius, pose, color, frame_name, gravity_enable, collision_enable}
1233 frame_name{frame_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)) {
1294 if (!writer.
writeBool(gravity_enable)) {
1297 if (!writer.
writeBool(collision_enable)) {
1305 if (!readTag(reader)) {
1308 if (!readArgs(reader)) {
1373 if (!reader.
readBool(gravity_enable)) {
1381 if (!reader.
readBool(collision_enable)) {
1395 return write(writer);
1401 return read(reader);
1407 if (!writer.
write(return_helper)) {
1420 if (!reader.
read(return_helper)) {
1434 cmd{id_name, width, height, thickness, pose, color, frame_name, gravity_enable, collision_enable}
1452 thickness{thickness},
1455 frame_name{frame_name},
1456 gravity_enable{gravity_enable},
1457 collision_enable{collision_enable}
1467 return write(writer);
1477 return read(reader);
1482 if (!writeTag(writer)) {
1485 if (!writeArgs(writer)) {
1522 if (!writer.
writeBool(gravity_enable)) {
1525 if (!writer.
writeBool(collision_enable)) {
1533 if (!readTag(reader)) {
1536 if (!readArgs(reader)) {
1617 if (!reader.
readBool(gravity_enable)) {
1625 if (!reader.
readBool(collision_enable)) {
1639 return write(writer);
1645 return read(reader);
1651 if (!writer.
write(return_helper)) {
1664 if (!reader.
read(return_helper)) {
1678 cmd{id_name, radius, length, pose, color, frame_name, gravity_enable, collision_enable}
1698 frame_name{frame_name},
1699 gravity_enable{gravity_enable},
1700 collision_enable{collision_enable}
1710 return write(writer);
1720 return read(reader);
1725 if (!writeTag(writer)) {
1728 if (!writeArgs(writer)) {
1762 if (!writer.
writeBool(gravity_enable)) {
1765 if (!writer.
writeBool(collision_enable)) {
1773 if (!readTag(reader)) {
1776 if (!readArgs(reader)) {
1849 if (!reader.
readBool(gravity_enable)) {
1857 if (!reader.
readBool(collision_enable)) {
1871 return write(writer);
1877 return read(reader);
1883 if (!writer.
write(return_helper)) {
1896 if (!reader.
read(return_helper)) {
1910 cmd{id_name, size, pose, color, frame_name, gravity_enable, collision_enable}
1929 frame_name{frame_name},
1930 gravity_enable{gravity_enable},
1931 collision_enable{collision_enable}
1941 return write(writer);
1951 return read(reader);
1956 if (!writeTag(writer)) {
1959 if (!writeArgs(writer)) {
1990 if (!writer.
writeBool(gravity_enable)) {
1993 if (!writer.
writeBool(collision_enable)) {
2001 if (!readTag(reader)) {
2004 if (!readArgs(reader)) {
2069 if (!reader.
readBool(gravity_enable)) {
2077 if (!reader.
readBool(collision_enable)) {
2091 return write(writer);
2097 return read(reader);
2103 if (!writer.
write(return_helper)) {
2116 if (!reader.
read(return_helper)) {
2130 cmd{id_name, filename, pose, frame_name, gravity_enable, collision_enable}
2148 frame_name{frame_name},
2149 gravity_enable{gravity_enable},
2150 collision_enable{collision_enable}
2160 return write(writer);
2170 return read(reader);
2175 if (!writeTag(writer)) {
2178 if (!writeArgs(writer)) {
2206 if (!writer.
writeBool(gravity_enable)) {
2209 if (!writer.
writeBool(collision_enable)) {
2217 if (!readTag(reader)) {
2220 if (!readArgs(reader)) {
2277 if (!reader.
readBool(gravity_enable)) {
2285 if (!reader.
readBool(collision_enable)) {
2299 return write(writer);
2305 return read(reader);
2311 if (!writer.
write(return_helper)) {
2324 if (!reader.
read(return_helper)) {
2338 cmd{id_name, skinfile, animfile, pose}
2366 return write(writer);
2376 return read(reader);
2381 if (!writeTag(writer)) {
2384 if (!writeArgs(writer)) {
2417 if (!readTag(reader)) {
2420 if (!readArgs(reader)) {
2483 return write(writer);
2489 return read(reader);
2495 if (!writer.
write(return_helper)) {
2508 if (!reader.
read(return_helper)) {
2548 return write(writer);
2558 return read(reader);
2563 if (!writeTag(writer)) {
2566 if (!writeArgs(writer)) {
2593 if (!readTag(reader)) {
2596 if (!readArgs(reader)) {
2643 return write(writer);
2649 return read(reader);
2655 if (!writer.
write(return_helper)) {
2668 if (!reader.
read(return_helper)) {
2682 cmd{id, pose, frame_name}
2699 frame_name{frame_name}
2709 return write(writer);
2719 return read(reader);
2724 if (!writeTag(writer)) {
2727 if (!writeArgs(writer)) {
2757 if (!readTag(reader)) {
2760 if (!readArgs(reader)) {
2815 return write(writer);
2821 return read(reader);
2827 if (!writer.
write(return_helper)) {
2840 if (!reader.
read(return_helper)) {
2880 return write(writer);
2890 return read(reader);
2895 if (!writeTag(writer)) {
2898 if (!writeArgs(writer)) {
2925 if (!readTag(reader)) {
2928 if (!readArgs(reader)) {
2975 return write(writer);
2981 return read(reader);
2987 if (!writer.
write(return_helper)) {
3000 if (!reader.
read(return_helper)) {
3040 return write(writer);
3050 return read(reader);
3055 if (!writeTag(writer)) {
3058 if (!writeArgs(writer)) {
3085 if (!readTag(reader)) {
3088 if (!readArgs(reader)) {
3135 return write(writer);
3141 return read(reader);
3147 if (!writer.
write(return_helper)) {
3160 if (!reader.
read(return_helper)) {
3190 frame_name{frame_name}
3200 return write(writer);
3210 return read(reader);
3215 if (!writeTag(writer)) {
3218 if (!writeArgs(writer)) {
3245 if (!readTag(reader)) {
3248 if (!readArgs(reader)) {
3295 return write(writer);
3301 return read(reader);
3310 if (!writer.
write(return_helper)) {
3326 if (!reader.
read(return_helper)) {
3365 return write(writer);
3375 return read(reader);
3380 if (!writeTag(writer)) {
3383 if (!writeArgs(writer)) {
3407 if (!readTag(reader)) {
3410 if (!readArgs(reader)) {
3449 return write(writer);
3455 return read(reader);
3461 if (!writer.
write(return_helper)) {
3474 if (!reader.
read(return_helper)) {
3503 return write(writer);
3513 return read(reader);
3518 if (!writeTag(writer)) {
3521 if (!writeArgs(writer)) {
3542 if (!readTag(reader)) {
3545 if (!readArgs(reader)) {
3576 return write(writer);
3582 return read(reader);
3588 if (!writer.
write(return_helper)) {
3601 if (!reader.
read(return_helper)) {
3630 return write(writer);
3640 return read(reader);
3645 if (!writeTag(writer)) {
3648 if (!writeArgs(writer)) {
3669 if (!readTag(reader)) {
3672 if (!readArgs(reader)) {
3703 return write(writer);
3709 return read(reader);
3718 if (!writer.
write(return_helper)) {
3734 if (!reader.
read(return_helper)) {
3764 link_name{link_name}
3774 return write(writer);
3784 return read(reader);
3789 if (!writeTag(writer)) {
3792 if (!writeArgs(writer)) {
3819 if (!readTag(reader)) {
3822 if (!readArgs(reader)) {
3869 return write(writer);
3875 return read(reader);
3881 if (!writer.
write(return_helper)) {
3894 if (!reader.
read(return_helper)) {
3933 return write(writer);
3943 return read(reader);
3948 if (!writeTag(writer)) {
3951 if (!writeArgs(writer)) {
3975 if (!readTag(reader)) {
3978 if (!readArgs(reader)) {
4017 return write(writer);
4023 return read(reader);
4029 if (!writer.
write(return_helper)) {
4042 if (!reader.
read(return_helper)) {
4056 cmd{old_name, new_name}
4082 return write(writer);
4092 return read(reader);
4097 if (!writeTag(writer)) {
4100 if (!writeArgs(writer)) {
4127 if (!readTag(reader)) {
4130 if (!readArgs(reader)) {
4177 return write(writer);
4183 return read(reader);
4189 if (!writer.
write(return_helper)) {
4202 if (!reader.
read(return_helper)) {
4217 yarp().setOwner(*
this);
4222 if (!
yarp().canWrite()) {
4226 bool ok =
yarp().write(helper, helper);
4232 if (!
yarp().canWrite()) {
4236 bool ok =
yarp().write(helper, helper);
4242 if (!
yarp().canWrite()) {
4246 bool ok =
yarp().write(helper, helper);
4252 if (!
yarp().canWrite()) {
4256 bool ok =
yarp().write(helper, helper);
4262 if (!
yarp().canWrite()) {
4266 bool ok =
yarp().write(helper, helper);
4272 if (!
yarp().canWrite()) {
4276 bool ok =
yarp().write(helper, helper);
4282 if (!
yarp().canWrite()) {
4286 bool ok =
yarp().write(helper, helper);
4292 if (!
yarp().canWrite()) {
4296 bool ok =
yarp().write(helper, helper);
4302 if (!
yarp().canWrite()) {
4306 bool ok =
yarp().write(helper, helper);
4312 if (!
yarp().canWrite()) {
4316 bool ok =
yarp().write(helper, helper);
4322 if (!
yarp().canWrite()) {
4326 bool ok =
yarp().write(helper, helper);
4332 if (!
yarp().canWrite()) {
4336 bool ok =
yarp().write(helper, helper);
4342 if (!
yarp().canWrite()) {
4346 bool ok =
yarp().write(helper, helper);
4352 if (!
yarp().canWrite()) {
4356 bool ok =
yarp().write(helper, helper);
4362 if (!
yarp().canWrite()) {
4366 bool ok =
yarp().write(helper, helper);
4372 if (!
yarp().canWrite()) {
4376 bool ok =
yarp().write(helper, helper);
4382 if (!
yarp().canWrite()) {
4386 bool ok =
yarp().write(helper, helper);
4393 bool showAll = (functionName ==
"--all");
4394 std::vector<std::string> helpString;
4396 helpString.emplace_back(
"*** Available commands:");
4414 helpString.emplace_back(
"help");
4467 if (functionName ==
"help") {
4468 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
4469 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
4470 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");
4471 helpString.emplace_back(
"@return list of strings (one string per line)");
4474 if (helpString.empty()) {
4475 helpString.emplace_back(
"Command not found");
4483 constexpr size_t max_tag_len = 1;
4493 std::string tag = reader.
readTag(1);
4494 bool direct = (tag ==
"__direct__");
4498 while (tag_len <= max_tag_len && !reader.
isError()) {
4499 if(tag ==
"getRemoteProtocolVersion") {
4506 auto proto = getLocalProtocolVersion();
4512 if (!writer.
write(proto)) {
4774 if (tag ==
"help") {
4775 std::string functionName;
4777 functionName =
"--all";
4779 auto help_strings = help(functionName);
4785 if (!writer.
writeTag(
"many", 1, 0)) {
4791 for (
const auto& help_string : help_strings) {
4807 std::string next_tag = reader.
readTag(1);
4808 if (next_tag.empty()) {
4811 tag.append(
"_").append(next_tag);
4812 tag_len = std::count(tag.begin(), tag.end(),
'_') + 1;
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.
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.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue return_helper
static constexpr size_t s_reply_len
static constexpr size_t s_tag_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
yarp::dev::ReturnValue(*)(const std::string &, const std::string &) funcptr_t
static constexpr const char * s_tag
ISimulatedWorldMsgs_attach_helper()=default
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_prototype
void call(ISimulatedWorldMsgs *ptr)
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 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.
yarp::sig::ColorRGB color
bool readArgs(yarp::os::idl::WireReader &reader)
~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 size_t s_reply_len
static constexpr const char * s_help
static constexpr size_t s_tag_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
ISimulatedWorldMsgs_changeColor_helper()=default
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_cmd_len
static constexpr const char * s_prototype
yarp::dev::ReturnValue(*)(const std::string &, const yarp::sig::ColorRGB &) funcptr_t
void call(ISimulatedWorldMsgs *ptr)
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.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool readTag(yarp::os::idl::WireReader &reader)
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 const char * s_help
static constexpr const char * s_tag
static constexpr const char * s_prototype
static constexpr size_t s_reply_len
void call(ISimulatedWorldMsgs *ptr)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue(*)() funcptr_t
static constexpr size_t s_tag_len
ISimulatedWorldMsgs_deleteAll_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_cmd_len
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.
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
void call(ISimulatedWorldMsgs *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::ReturnValue(*)(const std::string &) funcptr_t
static constexpr size_t s_tag_len
static constexpr size_t s_reply_len
ISimulatedWorldMsgs_deleteObject_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 const char * s_tag
static constexpr size_t s_cmd_len
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 readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
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.
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
yarp::dev::ReturnValue(*)(const std::string &) funcptr_t
static constexpr const char * s_tag
ISimulatedWorldMsgs_detach_helper()=default
static constexpr size_t s_cmd_len
static constexpr size_t s_reply_len
void call(ISimulatedWorldMsgs *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
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.
~Command() override=default
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.
~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 bool) funcptr_t
void call(ISimulatedWorldMsgs *ptr)
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
ISimulatedWorldMsgs_enableCollision_helper()=default
static constexpr size_t s_tag_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
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_reply_len
bool readArgs(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
~Reply() 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.
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.
static constexpr size_t s_tag_len
static constexpr const char * s_tag
static constexpr const char * s_help
static constexpr size_t s_cmd_len
ISimulatedWorldMsgs_enableGravity_helper()=default
yarp::dev::ReturnValue(*)(const std::string &, const bool) funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(ISimulatedWorldMsgs *ptr)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
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)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
getListReturnValue 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 const char * s_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
getListReturnValue(*)() funcptr_t
static constexpr size_t s_cmd_len
static constexpr const char * s_prototype
static constexpr size_t s_tag_len
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_help
void call(ISimulatedWorldMsgs *ptr)
ISimulatedWorldMsgs_getList_helper()=default
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 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)
~Reply() override=default
getPoseReturnValue 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 const char * s_prototype
static constexpr const char * s_tag
ISimulatedWorldMsgs_getPose_helper()=default
void call(ISimulatedWorldMsgs *ptr)
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.
getPoseReturnValue(*)(const std::string &, const std::string &) 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.
yarp::os::ApplicationNetworkProtocolVersion helper_proto
ISimulatedWorldMsgs_getRemoteProtocolVersion_helper()=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.
bool readTag(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 readArgs(yarp::os::idl::WireReader &reader)
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.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
static constexpr const char * s_tag
yarp::dev::ReturnValue(*)(const std::string &, const std::string &, const std::string &, const yarp::sig::Pose6D &) funcptr_t
static constexpr const char * s_prototype
void call(ISimulatedWorldMsgs *ptr)
static constexpr const char * s_help
ISimulatedWorldMsgs_makeActor_helper()=default
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
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_len
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.
yarp::sig::ColorRGB color
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)
~Command() override=default
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.
void call(ISimulatedWorldMsgs *ptr)
static constexpr const char * s_help
static constexpr const char * s_tag
static constexpr size_t s_reply_len
static constexpr size_t s_cmd_len
static constexpr const char * s_prototype
ISimulatedWorldMsgs_makeBox_helper()=default
static constexpr size_t s_tag_len
yarp::dev::ReturnValue(*)(const std::string &, const double, const double, const double, const yarp::sig::Pose6D &, const yarp::sig::ColorRGB &, const std::string &, const bool, const bool) funcptr_t
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 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)
yarp::sig::ColorRGB color
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
~Reply() 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.
static constexpr const char * s_prototype
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.
ISimulatedWorldMsgs_makeCylinder_helper()=default
static constexpr size_t s_tag_len
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
static constexpr size_t s_reply_len
void call(ISimulatedWorldMsgs *ptr)
yarp::dev::ReturnValue(*)(const std::string &, const double, const double, const yarp::sig::Pose6D &, const yarp::sig::ColorRGB &, const std::string &, const bool, const bool) funcptr_t
static constexpr const char * s_help
~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.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
yarp::sig::ColorRGB color
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool readArgs(yarp::os::idl::WireReader &reader)
~Reply() 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.
static constexpr const char * s_prototype
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
static constexpr const char * s_tag
static constexpr size_t s_tag_len
static constexpr size_t s_cmd_len
static constexpr const char * s_help
void call(ISimulatedWorldMsgs *ptr)
yarp::dev::ReturnValue(*)(const std::string &, const double, const yarp::sig::Pose6D &, const yarp::sig::ColorRGB &, const std::string &, const bool, const bool) funcptr_t
ISimulatedWorldMsgs_makeFrame_helper()=default
bool readArgs(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
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.
~Reply() override=default
yarp::dev::ReturnValue return_helper
static constexpr const char * s_tag
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_cmd_len
ISimulatedWorldMsgs_makeModel_helper()=default
void call(ISimulatedWorldMsgs *ptr)
static constexpr const char * s_help
static constexpr const char * s_prototype
static constexpr size_t s_tag_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue(*)(const std::string &, const std::string &, const yarp::sig::Pose6D &, const std::string &, const bool, const bool) funcptr_t
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 writeTag(const yarp::os::idl::WireWriter &writer) const
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 readTag(yarp::os::idl::WireReader &reader)
yarp::sig::ColorRGB color
~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.
ISimulatedWorldMsgs_makeSphere_helper()=default
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_reply_len
void call(ISimulatedWorldMsgs *ptr)
static constexpr size_t s_tag_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
yarp::dev::ReturnValue(*)(const std::string &, const double, const yarp::sig::Pose6D &, const yarp::sig::ColorRGB &, const std::string &, const bool, const bool) funcptr_t
static constexpr const char * s_tag
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 readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
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 write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
yarp::dev::ReturnValue return_helper
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
static constexpr const char * s_help
static constexpr const char * s_prototype
ISimulatedWorldMsgs_rename_helper()=default
void call(ISimulatedWorldMsgs *ptr)
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
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_tag_len
~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 readArgs(yarp::os::idl::WireReader &reader)
bool writeTag(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
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(ISimulatedWorldMsgs *ptr)
static constexpr const char * s_tag
static constexpr const char * s_help
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.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_prototype
static constexpr size_t s_tag_len
yarp::dev::ReturnValue(*)(const std::string &, const yarp::sig::Pose6D &, const std::string &) funcptr_t
ISimulatedWorldMsgs_setPose_helper()=default
virtual yarp::dev::ReturnValue rename(const std::string &old_name, const std::string &new_name)
virtual yarp::dev::ReturnValue makeModel(const std::string &id_name, const std::string &filename, const yarp::sig::Pose6D &pose, const std::string &frame_name, const bool gravity_enable, const bool collision_enable)
virtual yarp::dev::ReturnValue deleteAll()
virtual yarp::dev::ReturnValue deleteObject(const std::string &id)
virtual yarp::dev::ReturnValue detach(const std::string &id)
virtual yarp::dev::ReturnValue makeBox(const std::string &id_name, const double width, const double height, const double thickness, const yarp::sig::Pose6D &pose, const yarp::sig::ColorRGB &color, const std::string &frame_name, const bool gravity_enable, const bool collision_enable)
virtual yarp::dev::ReturnValue makeActor(const std::string &id_name, const std::string &skinfile, const std::string &animfile, const yarp::sig::Pose6D &pose)
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual yarp::dev::ReturnValue enableGravity(const std::string &id, const bool enable)
virtual yarp::os::ApplicationNetworkProtocolVersion getLocalProtocolVersion()
virtual yarp::dev::ReturnValue changeColor(const std::string &id, const yarp::sig::ColorRGB &color)
virtual yarp::dev::ReturnValue enableCollision(const std::string &id, const bool enable)
virtual bool checkProtocolVersion()
virtual getListReturnValue getList()
virtual yarp::dev::ReturnValue makeCylinder(const std::string &id_name, const double radius, const double length, const yarp::sig::Pose6D &pose, const yarp::sig::ColorRGB &color, const std::string &frame_name, const bool gravity_enable, const bool collision_enable)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual yarp::dev::ReturnValue setPose(const std::string &id, const yarp::sig::Pose6D &pose, const std::string &frame_name)
virtual yarp::os::ApplicationNetworkProtocolVersion getRemoteProtocolVersion()
virtual yarp::dev::ReturnValue makeFrame(const std::string &id_name, const double size, const yarp::sig::Pose6D &pose, const yarp::sig::ColorRGB &color, const std::string &frame_name, const bool gravity_enable, const bool collision_enable)
virtual getPoseReturnValue getPose(const std::string &id, const std::string &frame_name)
virtual yarp::dev::ReturnValue makeSphere(const std::string &id_name, const double radius, const yarp::sig::Pose6D &pose, const yarp::sig::ColorRGB &color, const std::string &frame_name, const bool gravity_enable, const bool collision_enable)
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 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 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 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