44 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
58 if (!helper_proto.read(connection)) {
68 if(!
yarp().canWrite()) {
69 yError(
" Missing server method ISimulatedWorldMsgs::getRemoteProtocolVersion");
74 return helper.helper_proto;}
85 if (remproto.protocol_version != locproto.protocol_version)
87 yCError(SERVICE_LOG_COMPONENT) <<
"Invalid communication protocol.";
88 yCError(SERVICE_LOG_COMPONENT) <<
"Local Protocol Version: " << locproto.toString();
89 yCError(SERVICE_LOG_COMPONENT) <<
"Remote Protocol Version: " << remproto.toString();
170 static constexpr const char*
s_tag{
"makeSphere"};
174 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)"};
241 static constexpr const char*
s_tag{
"makeBox"};
245 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)"};
311 static constexpr const char*
s_tag{
"makeCylinder"};
315 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)"};
380 static constexpr const char*
s_tag{
"makeFrame"};
384 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)"};
448 static constexpr const char*
s_tag{
"makeModel"};
452 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)"};
514 static constexpr const char*
s_tag{
"makeActor"};
518 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)"};
578 static constexpr const char*
s_tag{
"changeColor"};
582 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::changeColor(const std::string& id, const yarp::sig::ColorRGB& color)"};
643 static constexpr const char*
s_tag{
"setPose"};
647 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)"};
707 static constexpr const char*
s_tag{
"enableGravity"};
711 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::enableGravity(const std::string& id, const bool enable)"};
771 static constexpr const char*
s_tag{
"enableCollision"};
775 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::enableCollision(const std::string& id, const bool enable)"};
835 static constexpr const char*
s_tag{
"getPose"};
839 static constexpr const char*
s_prototype{
"getPoseReturnValue ISimulatedWorldMsgs::getPose(const std::string& id, const std::string& frame_name)"};
858 explicit Command(
const std::string&
id);
898 static constexpr const char*
s_tag{
"deleteObject"};
902 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::deleteObject(const std::string& id)"};
956 static constexpr const char*
s_tag{
"deleteAll"};
960 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::deleteAll()"};
1014 static constexpr const char*
s_tag{
"getList"};
1018 static constexpr const char*
s_prototype{
"getListReturnValue ISimulatedWorldMsgs::getList()"};
1078 static constexpr const char*
s_tag{
"attach"};
1082 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::attach(const std::string& id, const std::string& link_name)"};
1101 explicit Command(
const std::string&
id);
1141 static constexpr const char*
s_tag{
"detach"};
1145 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::detach(const std::string& id)"};
1205 static constexpr const char*
s_tag{
"rename"};
1209 static constexpr const char*
s_prototype{
"yarp::dev::ReturnValue ISimulatedWorldMsgs::rename(const std::string& old_name, const std::string& new_name)"};
1215 cmd{id_name, radius, pose, color, frame_name, gravity_enable, collision_enable}
1234 frame_name{frame_name},
1235 gravity_enable{gravity_enable},
1236 collision_enable{collision_enable}
1246 return write(writer);
1256 return read(reader);
1261 if (!writeTag(writer)) {
1264 if (!writeArgs(writer)) {
1295 if (!writer.
writeBool(gravity_enable)) {
1298 if (!writer.
writeBool(collision_enable)) {
1306 if (!readTag(reader)) {
1309 if (!readArgs(reader)) {
1374 if (!reader.
readBool(gravity_enable)) {
1382 if (!reader.
readBool(collision_enable)) {
1396 return write(writer);
1402 return read(reader);
1408 if (!writer.
write(return_helper)) {
1421 if (!reader.
read(return_helper)) {
1435 cmd{id_name, width, height, thickness, pose, color, frame_name, gravity_enable, collision_enable}
1453 thickness{thickness},
1456 frame_name{frame_name},
1457 gravity_enable{gravity_enable},
1458 collision_enable{collision_enable}
1468 return write(writer);
1478 return read(reader);
1483 if (!writeTag(writer)) {
1486 if (!writeArgs(writer)) {
1523 if (!writer.
writeBool(gravity_enable)) {
1526 if (!writer.
writeBool(collision_enable)) {
1534 if (!readTag(reader)) {
1537 if (!readArgs(reader)) {
1618 if (!reader.
readBool(gravity_enable)) {
1626 if (!reader.
readBool(collision_enable)) {
1640 return write(writer);
1646 return read(reader);
1652 if (!writer.
write(return_helper)) {
1665 if (!reader.
read(return_helper)) {
1679 cmd{id_name, radius, length, pose, color, frame_name, gravity_enable, collision_enable}
1699 frame_name{frame_name},
1700 gravity_enable{gravity_enable},
1701 collision_enable{collision_enable}
1711 return write(writer);
1721 return read(reader);
1726 if (!writeTag(writer)) {
1729 if (!writeArgs(writer)) {
1763 if (!writer.
writeBool(gravity_enable)) {
1766 if (!writer.
writeBool(collision_enable)) {
1774 if (!readTag(reader)) {
1777 if (!readArgs(reader)) {
1850 if (!reader.
readBool(gravity_enable)) {
1858 if (!reader.
readBool(collision_enable)) {
1872 return write(writer);
1878 return read(reader);
1884 if (!writer.
write(return_helper)) {
1897 if (!reader.
read(return_helper)) {
1911 cmd{id_name, size, pose, color, frame_name, gravity_enable, collision_enable}
1930 frame_name{frame_name},
1931 gravity_enable{gravity_enable},
1932 collision_enable{collision_enable}
1942 return write(writer);
1952 return read(reader);
1957 if (!writeTag(writer)) {
1960 if (!writeArgs(writer)) {
1991 if (!writer.
writeBool(gravity_enable)) {
1994 if (!writer.
writeBool(collision_enable)) {
2002 if (!readTag(reader)) {
2005 if (!readArgs(reader)) {
2070 if (!reader.
readBool(gravity_enable)) {
2078 if (!reader.
readBool(collision_enable)) {
2092 return write(writer);
2098 return read(reader);
2104 if (!writer.
write(return_helper)) {
2117 if (!reader.
read(return_helper)) {
2131 cmd{id_name, filename, pose, frame_name, gravity_enable, collision_enable}
2149 frame_name{frame_name},
2150 gravity_enable{gravity_enable},
2151 collision_enable{collision_enable}
2161 return write(writer);
2171 return read(reader);
2176 if (!writeTag(writer)) {
2179 if (!writeArgs(writer)) {
2207 if (!writer.
writeBool(gravity_enable)) {
2210 if (!writer.
writeBool(collision_enable)) {
2218 if (!readTag(reader)) {
2221 if (!readArgs(reader)) {
2278 if (!reader.
readBool(gravity_enable)) {
2286 if (!reader.
readBool(collision_enable)) {
2300 return write(writer);
2306 return read(reader);
2312 if (!writer.
write(return_helper)) {
2325 if (!reader.
read(return_helper)) {
2339 cmd{id_name, skinfile, animfile, pose}
2367 return write(writer);
2377 return read(reader);
2382 if (!writeTag(writer)) {
2385 if (!writeArgs(writer)) {
2418 if (!readTag(reader)) {
2421 if (!readArgs(reader)) {
2484 return write(writer);
2490 return read(reader);
2496 if (!writer.
write(return_helper)) {
2509 if (!reader.
read(return_helper)) {
2549 return write(writer);
2559 return read(reader);
2564 if (!writeTag(writer)) {
2567 if (!writeArgs(writer)) {
2594 if (!readTag(reader)) {
2597 if (!readArgs(reader)) {
2644 return write(writer);
2650 return read(reader);
2656 if (!writer.
write(return_helper)) {
2669 if (!reader.
read(return_helper)) {
2683 cmd{id, pose, frame_name}
2700 frame_name{frame_name}
2710 return write(writer);
2720 return read(reader);
2725 if (!writeTag(writer)) {
2728 if (!writeArgs(writer)) {
2758 if (!readTag(reader)) {
2761 if (!readArgs(reader)) {
2816 return write(writer);
2822 return read(reader);
2828 if (!writer.
write(return_helper)) {
2841 if (!reader.
read(return_helper)) {
2881 return write(writer);
2891 return read(reader);
2896 if (!writeTag(writer)) {
2899 if (!writeArgs(writer)) {
2926 if (!readTag(reader)) {
2929 if (!readArgs(reader)) {
2976 return write(writer);
2982 return read(reader);
2988 if (!writer.
write(return_helper)) {
3001 if (!reader.
read(return_helper)) {
3041 return write(writer);
3051 return read(reader);
3056 if (!writeTag(writer)) {
3059 if (!writeArgs(writer)) {
3086 if (!readTag(reader)) {
3089 if (!readArgs(reader)) {
3136 return write(writer);
3142 return read(reader);
3148 if (!writer.
write(return_helper)) {
3161 if (!reader.
read(return_helper)) {
3191 frame_name{frame_name}
3201 return write(writer);
3211 return read(reader);
3216 if (!writeTag(writer)) {
3219 if (!writeArgs(writer)) {
3246 if (!readTag(reader)) {
3249 if (!readArgs(reader)) {
3296 return write(writer);
3302 return read(reader);
3311 if (!writer.
write(return_helper)) {
3327 if (!reader.
read(return_helper)) {
3366 return write(writer);
3376 return read(reader);
3381 if (!writeTag(writer)) {
3384 if (!writeArgs(writer)) {
3408 if (!readTag(reader)) {
3411 if (!readArgs(reader)) {
3450 return write(writer);
3456 return read(reader);
3462 if (!writer.
write(return_helper)) {
3475 if (!reader.
read(return_helper)) {
3504 return write(writer);
3514 return read(reader);
3519 if (!writeTag(writer)) {
3522 if (!writeArgs(writer)) {
3543 if (!readTag(reader)) {
3546 if (!readArgs(reader)) {
3577 return write(writer);
3583 return read(reader);
3589 if (!writer.
write(return_helper)) {
3602 if (!reader.
read(return_helper)) {
3631 return write(writer);
3641 return read(reader);
3646 if (!writeTag(writer)) {
3649 if (!writeArgs(writer)) {
3670 if (!readTag(reader)) {
3673 if (!readArgs(reader)) {
3704 return write(writer);
3710 return read(reader);
3719 if (!writer.
write(return_helper)) {
3735 if (!reader.
read(return_helper)) {
3765 link_name{link_name}
3775 return write(writer);
3785 return read(reader);
3790 if (!writeTag(writer)) {
3793 if (!writeArgs(writer)) {
3820 if (!readTag(reader)) {
3823 if (!readArgs(reader)) {
3870 return write(writer);
3876 return read(reader);
3882 if (!writer.
write(return_helper)) {
3895 if (!reader.
read(return_helper)) {
3934 return write(writer);
3944 return read(reader);
3949 if (!writeTag(writer)) {
3952 if (!writeArgs(writer)) {
3976 if (!readTag(reader)) {
3979 if (!readArgs(reader)) {
4018 return write(writer);
4024 return read(reader);
4030 if (!writer.
write(return_helper)) {
4043 if (!reader.
read(return_helper)) {
4057 cmd{old_name, new_name}
4083 return write(writer);
4093 return read(reader);
4098 if (!writeTag(writer)) {
4101 if (!writeArgs(writer)) {
4128 if (!readTag(reader)) {
4131 if (!readArgs(reader)) {
4178 return write(writer);
4184 return read(reader);
4190 if (!writer.
write(return_helper)) {
4203 if (!reader.
read(return_helper)) {
4218 yarp().setOwner(*
this);
4223 if (!
yarp().canWrite()) {
4227 bool ok =
yarp().write(helper, helper);
4233 if (!
yarp().canWrite()) {
4237 bool ok =
yarp().write(helper, helper);
4243 if (!
yarp().canWrite()) {
4247 bool ok =
yarp().write(helper, helper);
4253 if (!
yarp().canWrite()) {
4257 bool ok =
yarp().write(helper, helper);
4263 if (!
yarp().canWrite()) {
4267 bool ok =
yarp().write(helper, helper);
4273 if (!
yarp().canWrite()) {
4277 bool ok =
yarp().write(helper, helper);
4283 if (!
yarp().canWrite()) {
4287 bool ok =
yarp().write(helper, helper);
4293 if (!
yarp().canWrite()) {
4297 bool ok =
yarp().write(helper, helper);
4303 if (!
yarp().canWrite()) {
4307 bool ok =
yarp().write(helper, helper);
4313 if (!
yarp().canWrite()) {
4317 bool ok =
yarp().write(helper, helper);
4323 if (!
yarp().canWrite()) {
4327 bool ok =
yarp().write(helper, helper);
4331 return failed_reply;
4333 return helper.reply.return_helper;
4338 if (!
yarp().canWrite()) {
4342 bool ok =
yarp().write(helper, helper);
4348 if (!
yarp().canWrite()) {
4352 bool ok =
yarp().write(helper, helper);
4358 if (!
yarp().canWrite()) {
4362 bool ok =
yarp().write(helper, helper);
4366 return failed_reply;
4368 return helper.reply.return_helper;
4373 if (!
yarp().canWrite()) {
4377 bool ok =
yarp().write(helper, helper);
4383 if (!
yarp().canWrite()) {
4387 bool ok =
yarp().write(helper, helper);
4393 if (!
yarp().canWrite()) {
4397 bool ok =
yarp().write(helper, helper);
4404 bool showAll = (functionName ==
"--all");
4405 std::vector<std::string> helpString;
4407 helpString.emplace_back(
"*** Available commands:");
4425 helpString.emplace_back(
"help");
4478 if (functionName ==
"help") {
4479 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
4480 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
4481 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");
4482 helpString.emplace_back(
"@return list of strings (one string per line)");
4485 if (helpString.empty()) {
4486 helpString.emplace_back(
"Command not found");
4494 constexpr size_t max_tag_len = 1;
4504 std::string tag = reader.
readTag(1);
4505 bool direct = (tag ==
"__direct__");
4509 while (tag_len <= max_tag_len && !reader.
isError()) {
4510 if(tag ==
"getRemoteProtocolVersion") {
4517 auto proto = getLocalProtocolVersion();
4523 if (!writer.
write(proto)) {
4785 if (tag ==
"help") {
4786 std::string functionName;
4788 functionName =
"--all";
4790 auto help_strings = help(functionName);
4796 if (!writer.
writeTag(
"many", 1, 0)) {
4802 for (
const auto& help_string : help_strings) {
4818 std::string next_tag = reader.
readTag(1);
4819 if (next_tag.empty()) {
4822 tag.append(
"_").append(next_tag);
4823 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)
yarp::dev::ReturnValue retVal
yarp::dev::ReturnValue retVal
@ return_value_error_nws_nwc_communication_error
Method is not (yet) implemented.
short int protocol_version
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
bool write(PortWriter &writer)
Write a message to the associated port or reader.
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
bool 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