46 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
60 if (!helper_proto.read(connection)) {
70 if(!
yarp().canWrite()) {
71 yError(
" Missing server method IJoypadControlMsgs::getRemoteProtocolVersion");
76 return helper.helper_proto;}
87 if (remproto.protocol_version != locproto.protocol_version)
89 yCError(SERVICE_LOG_COMPONENT) <<
"Invalid communication protocol.";
90 yCError(SERVICE_LOG_COMPONENT) <<
"Local Protocol Version: " << locproto.toString();
91 yCError(SERVICE_LOG_COMPONENT) <<
"Remote Protocol Version: " << remproto.toString();
161 static constexpr const char*
s_tag{
"getAxisCount"};
165 static constexpr const char*
s_prototype{
"return_getAxisCount IJoypadControlMsgs::getAxisCount()"};
219 static constexpr const char*
s_tag{
"getButtonCount"};
223 static constexpr const char*
s_prototype{
"return_getButtonCount IJoypadControlMsgs::getButtonCount()"};
277 static constexpr const char*
s_tag{
"getTrackballCount"};
281 static constexpr const char*
s_prototype{
"return_getTrackballCount IJoypadControlMsgs::getTrackballCount()"};
335 static constexpr const char*
s_tag{
"getHatCount"};
339 static constexpr const char*
s_prototype{
"return_getHatCount IJoypadControlMsgs::getHatCount()"};
393 static constexpr const char*
s_tag{
"getTouchSurfaceCount"};
397 static constexpr const char*
s_prototype{
"return_getTouchSurfaceCount IJoypadControlMsgs::getTouchSurfaceCount()"};
451 static constexpr const char*
s_tag{
"getStickCount"};
455 static constexpr const char*
s_prototype{
"return_getStickCount IJoypadControlMsgs::getStickCount()"};
514 static constexpr const char*
s_tag{
"getButton"};
518 static constexpr const char*
s_prototype{
"return_getButton IJoypadControlMsgs::getButton(const std::int32_t button_id)"};
577 static constexpr const char*
s_tag{
"getTrackball"};
581 static constexpr const char*
s_prototype{
"return_getTrackball IJoypadControlMsgs::getTrackball(const std::int32_t trackball_id)"};
640 static constexpr const char*
s_tag{
"getHat"};
644 static constexpr const char*
s_prototype{
"return_getHat IJoypadControlMsgs::getHat(const std::int32_t hat_id)"};
703 static constexpr const char*
s_tag{
"getAxis"};
707 static constexpr const char*
s_prototype{
"return_getAxis IJoypadControlMsgs::getAxis(const std::int32_t axis_id)"};
761 static constexpr const char*
s_tag{
"getAllAxes"};
765 static constexpr const char*
s_prototype{
"return_getAllAxes IJoypadControlMsgs::getAllAxes()"};
825 static constexpr const char*
s_tag{
"getStick"};
829 static constexpr const char*
s_prototype{
"return_getStick IJoypadControlMsgs::getStick(const std::int32_t stick_id, const yarp::dev::IJoypadController::JoypadCtrl_coordinateMode mode)"};
888 static constexpr const char*
s_tag{
"getTouch"};
892 static constexpr const char*
s_prototype{
"return_getTouch IJoypadControlMsgs::getTouch(const std::int32_t touch_id)"};
913 return write(writer);
928 if (!writeTag(writer)) {
931 if (!writeArgs(writer)) {
952 if (!readTag(reader)) {
955 if (!readArgs(reader)) {
986 return write(writer);
1001 if (!writer.
write(return_helper)) {
1017 if (!reader.
read(return_helper)) {
1046 return write(writer);
1056 return read(reader);
1061 if (!writeTag(writer)) {
1064 if (!writeArgs(writer)) {
1085 if (!readTag(reader)) {
1088 if (!readArgs(reader)) {
1119 return write(writer);
1125 return read(reader);
1134 if (!writer.
write(return_helper)) {
1150 if (!reader.
read(return_helper)) {
1179 return write(writer);
1189 return read(reader);
1194 if (!writeTag(writer)) {
1197 if (!writeArgs(writer)) {
1218 if (!readTag(reader)) {
1221 if (!readArgs(reader)) {
1252 return write(writer);
1258 return read(reader);
1267 if (!writer.
write(return_helper)) {
1283 if (!reader.
read(return_helper)) {
1312 return write(writer);
1322 return read(reader);
1327 if (!writeTag(writer)) {
1330 if (!writeArgs(writer)) {
1351 if (!readTag(reader)) {
1354 if (!readArgs(reader)) {
1385 return write(writer);
1391 return read(reader);
1400 if (!writer.
write(return_helper)) {
1416 if (!reader.
read(return_helper)) {
1445 return write(writer);
1455 return read(reader);
1460 if (!writeTag(writer)) {
1463 if (!writeArgs(writer)) {
1484 if (!readTag(reader)) {
1487 if (!readArgs(reader)) {
1518 return write(writer);
1524 return read(reader);
1533 if (!writer.
write(return_helper)) {
1549 if (!reader.
read(return_helper)) {
1578 return write(writer);
1588 return read(reader);
1593 if (!writeTag(writer)) {
1596 if (!writeArgs(writer)) {
1617 if (!readTag(reader)) {
1620 if (!readArgs(reader)) {
1651 return write(writer);
1657 return read(reader);
1666 if (!writer.
write(return_helper)) {
1682 if (!reader.
read(return_helper)) {
1711 button_id{button_id}
1721 return write(writer);
1731 return read(reader);
1736 if (!writeTag(writer)) {
1739 if (!writeArgs(writer)) {
1763 if (!readTag(reader)) {
1766 if (!readArgs(reader)) {
1791 if (!reader.
readI32(button_id)) {
1805 return write(writer);
1811 return read(reader);
1820 if (!writer.
write(return_helper)) {
1836 if (!reader.
read(return_helper)) {
1865 trackball_id{trackball_id}
1875 return write(writer);
1885 return read(reader);
1890 if (!writeTag(writer)) {
1893 if (!writeArgs(writer)) {
1909 if (!writer.
writeI32(trackball_id)) {
1917 if (!readTag(reader)) {
1920 if (!readArgs(reader)) {
1945 if (!reader.
readI32(trackball_id)) {
1959 return write(writer);
1965 return read(reader);
1974 if (!writer.
write(return_helper)) {
1990 if (!reader.
read(return_helper)) {
2029 return write(writer);
2039 return read(reader);
2044 if (!writeTag(writer)) {
2047 if (!writeArgs(writer)) {
2071 if (!readTag(reader)) {
2074 if (!readArgs(reader)) {
2099 if (!reader.
readI32(hat_id)) {
2113 return write(writer);
2119 return read(reader);
2128 if (!writer.
write(return_helper)) {
2144 if (!reader.
read(return_helper)) {
2183 return write(writer);
2193 return read(reader);
2198 if (!writeTag(writer)) {
2201 if (!writeArgs(writer)) {
2225 if (!readTag(reader)) {
2228 if (!readArgs(reader)) {
2253 if (!reader.
readI32(axis_id)) {
2267 return write(writer);
2273 return read(reader);
2282 if (!writer.
write(return_helper)) {
2298 if (!reader.
read(return_helper)) {
2327 return write(writer);
2337 return read(reader);
2342 if (!writeTag(writer)) {
2345 if (!writeArgs(writer)) {
2366 if (!readTag(reader)) {
2369 if (!readArgs(reader)) {
2400 return write(writer);
2406 return read(reader);
2415 if (!writer.
write(return_helper)) {
2431 if (!reader.
read(return_helper)) {
2471 return write(writer);
2481 return read(reader);
2486 if (!writeTag(writer)) {
2489 if (!writeArgs(writer)) {
2516 if (!readTag(reader)) {
2519 if (!readArgs(reader)) {
2544 if (!reader.
readI32(stick_id)) {
2553 if (!reader.
readI32(_ecast)) {
2568 return write(writer);
2574 return read(reader);
2583 if (!writer.
write(return_helper)) {
2599 if (!reader.
read(return_helper)) {
2638 return write(writer);
2648 return read(reader);
2653 if (!writeTag(writer)) {
2656 if (!writeArgs(writer)) {
2680 if (!readTag(reader)) {
2683 if (!readArgs(reader)) {
2708 if (!reader.
readI32(touch_id)) {
2722 return write(writer);
2728 return read(reader);
2737 if (!writer.
write(return_helper)) {
2753 if (!reader.
read(return_helper)) {
2768 yarp().setOwner(*
this);
2773 if (!
yarp().canWrite()) {
2777 bool ok =
yarp().write(helper, helper);
2781 return failed_reply;
2783 return helper.reply.return_helper;
2788 if (!
yarp().canWrite()) {
2792 bool ok =
yarp().write(helper, helper);
2796 return failed_reply;
2798 return helper.reply.return_helper;
2803 if (!
yarp().canWrite()) {
2807 bool ok =
yarp().write(helper, helper);
2811 return failed_reply;
2813 return helper.reply.return_helper;
2818 if (!
yarp().canWrite()) {
2822 bool ok =
yarp().write(helper, helper);
2826 return failed_reply;
2828 return helper.reply.return_helper;
2833 if (!
yarp().canWrite()) {
2837 bool ok =
yarp().write(helper, helper);
2841 return failed_reply;
2843 return helper.reply.return_helper;
2848 if (!
yarp().canWrite()) {
2852 bool ok =
yarp().write(helper, helper);
2856 return failed_reply;
2858 return helper.reply.return_helper;
2863 if (!
yarp().canWrite()) {
2867 bool ok =
yarp().write(helper, helper);
2871 return failed_reply;
2873 return helper.reply.return_helper;
2878 if (!
yarp().canWrite()) {
2882 bool ok =
yarp().write(helper, helper);
2886 return failed_reply;
2888 return helper.reply.return_helper;
2893 if (!
yarp().canWrite()) {
2897 bool ok =
yarp().write(helper, helper);
2901 return failed_reply;
2903 return helper.reply.return_helper;
2908 if (!
yarp().canWrite()) {
2912 bool ok =
yarp().write(helper, helper);
2916 return failed_reply;
2918 return helper.reply.return_helper;
2923 if (!
yarp().canWrite()) {
2927 bool ok =
yarp().write(helper, helper);
2931 return failed_reply;
2933 return helper.reply.return_helper;
2938 if (!
yarp().canWrite()) {
2942 bool ok =
yarp().write(helper, helper);
2946 return failed_reply;
2948 return helper.reply.return_helper;
2953 if (!
yarp().canWrite()) {
2957 bool ok =
yarp().write(helper, helper);
2961 return failed_reply;
2963 return helper.reply.return_helper;
2969 bool showAll = (functionName ==
"--all");
2970 std::vector<std::string> helpString;
2972 helpString.emplace_back(
"*** Available commands:");
2986 helpString.emplace_back(
"help");
3027 if (functionName ==
"help") {
3028 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
3029 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
3030 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");
3031 helpString.emplace_back(
"@return list of strings (one string per line)");
3034 if (helpString.empty()) {
3035 helpString.emplace_back(
"Command not found");
3043 constexpr size_t max_tag_len = 1;
3053 std::string tag = reader.
readTag(1);
3054 bool direct = (tag ==
"__direct__");
3058 while (tag_len <= max_tag_len && !reader.
isError()) {
3059 if(tag ==
"getRemoteProtocolVersion") {
3066 auto proto = getLocalProtocolVersion();
3072 if (!writer.
write(proto)) {
3274 if (tag ==
"help") {
3275 std::string functionName;
3277 functionName =
"--all";
3279 auto help_strings = help(functionName);
3285 if (!writer.
writeTag(
"many", 1, 0)) {
3291 for (
const auto& help_string : help_strings) {
3307 std::string next_tag = reader.
readTag(1);
3308 if (next_tag.empty()) {
3311 tag.append(
"_").append(next_tag);
3312 tag_len = std::count(tag.begin(), tag.end(),
'_') + 1;
~Command() override=default
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_getAllAxes 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 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
static constexpr size_t s_tag_len
void call(IJoypadControlMsgs *ptr)
static constexpr size_t s_reply_len
static constexpr const char * s_help
static constexpr const char * s_tag
IJoypadControlMsgs_getAllAxes_helper()=default
return_getAllAxes(*)() funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
return_getAxisCount 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_prototype
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(IJoypadControlMsgs *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
IJoypadControlMsgs_getAxisCount_helper()=default
return_getAxisCount(*)() funcptr_t
static constexpr const char * s_help
~Command() override=default
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
return_getAxis return_helper
~Reply() override=default
void call(IJoypadControlMsgs *ptr)
static constexpr const char * s_prototype
IJoypadControlMsgs_getAxis_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.
return_getAxis(*)(const std::int32_t) funcptr_t
static constexpr size_t s_cmd_len
static constexpr size_t s_reply_len
~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.
bool readTag(yarp::os::idl::WireReader &reader)
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
return_getHatCount return_helper
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_tag
IJoypadControlMsgs_getHatCount_helper()=default
static constexpr const char * s_help
static constexpr size_t s_reply_len
return_getHatCount(*)() funcptr_t
void call(IJoypadControlMsgs *ptr)
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
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.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
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.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
return_getHat return_helper
static constexpr size_t s_cmd_len
void call(IJoypadControlMsgs *ptr)
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_getHat(*)(const std::int32_t) funcptr_t
static constexpr const char * s_help
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
IJoypadControlMsgs_getHat_helper()=default
static constexpr size_t s_tag_len
static constexpr const char * s_tag
yarp::os::ApplicationNetworkProtocolVersion helper_proto
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.
IJoypadControlMsgs_getRemoteProtocolVersion_helper()=default
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.
~Command() override=default
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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_getStickCount 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.
static constexpr const char * s_help
static constexpr const char * s_tag
void call(IJoypadControlMsgs *ptr)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
return_getStickCount(*)() funcptr_t
static constexpr size_t s_tag_len
IJoypadControlMsgs_getStickCount_helper()=default
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
bool readTag(yarp::os::idl::WireReader &reader)
~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.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
yarp::dev::IJoypadController::JoypadCtrl_coordinateMode mode
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
return_getStick 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
static constexpr size_t s_reply_len
return_getStick(*)(const std::int32_t, const yarp::dev::IJoypadController::JoypadCtrl_coordinateMode) funcptr_t
static constexpr size_t s_cmd_len
static constexpr const char * s_help
IJoypadControlMsgs_getStick_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_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(IJoypadControlMsgs *ptr)
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 writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool 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.
return_getTouchSurfaceCount return_helper
~Reply() override=default
static constexpr const char * s_help
return_getTouchSurfaceCount(*)() funcptr_t
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.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
void call(IJoypadControlMsgs *ptr)
IJoypadControlMsgs_getTouchSurfaceCount_helper()=default
static constexpr size_t s_tag_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~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 writeTag(const yarp::os::idl::WireWriter &writer) const
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.
~Reply() override=default
return_getTouch return_helper
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_help
return_getTouch(*)(const std::int32_t) funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_tag_len
void call(IJoypadControlMsgs *ptr)
static constexpr const char * s_tag
IJoypadControlMsgs_getTouch_helper()=default
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
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool 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.
return_getTrackballCount 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_tag_len
static constexpr const char * s_tag
static constexpr const char * s_help
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_reply_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
return_getTrackballCount(*)() funcptr_t
void call(IJoypadControlMsgs *ptr)
static constexpr size_t s_cmd_len
static constexpr const char * s_prototype
IJoypadControlMsgs_getTrackballCount_helper()=default
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.
std::int32_t trackball_id
bool readTag(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
return_getTrackball return_helper
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_reply_len
static constexpr const char * s_tag
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_tag_len
IJoypadControlMsgs_getTrackball_helper()=default
static constexpr const char * s_prototype
return_getTrackball(*)(const std::int32_t) funcptr_t
void call(IJoypadControlMsgs *ptr)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_help
virtual return_getAxis getAxis(const std::int32_t axis_id)
virtual return_getHat getHat(const std::int32_t hat_id)
virtual return_getHatCount getHatCount()
virtual return_getAllAxes getAllAxes()
virtual return_getAxisCount getAxisCount()
virtual return_getTrackballCount getTrackballCount()
virtual return_getStick getStick(const std::int32_t stick_id, const yarp::dev::IJoypadController::JoypadCtrl_coordinateMode mode)
virtual yarp::os::ApplicationNetworkProtocolVersion getLocalProtocolVersion()
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual return_getButton getButton(const std::int32_t button_id)
virtual return_getTouchSurfaceCount getTouchSurfaceCount()
virtual return_getTouch getTouch(const std::int32_t touch_id)
virtual bool checkProtocolVersion()
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual return_getButtonCount getButtonCount()
virtual return_getTrackball getTrackball(const std::int32_t trackball_id)
virtual yarp::os::ApplicationNetworkProtocolVersion getRemoteProtocolVersion()
virtual return_getStickCount getStickCount()
JoypadCtrl_coordinateMode
@ return_value_error_nws_nwc_communication_error
Method is not (yet) implemented.
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
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)
bool readI32(std::int32_t &x)
std::string readTag(size_t len=static_cast< size_t >(-1))
bool read(WirePortable &obj)
IDL-friendly connection writer.
bool write(const WirePortable &obj) const
bool writeI32(std::int32_t x, bool skip_tag=false) const
bool writeListHeader(int len) const
bool writeTag(const char *tag, int split, int len) const
bool writeString(const std::string &str, bool skip_tag=false) const
bool writeListEnd() const
bool writeListBegin(int tag, size_t len) const
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.
#define YARP_VERSION_PATCH
#define YARP_VERSION_MAJOR
#define YARP_VERSION_MINOR