45 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
59 if (!helper_proto.read(connection)) {
69 if(!
yarp().canWrite()) {
70 yError(
" Missing server method IJoypadControlMsgs::getRemoteProtocolVersion");
75 return helper.helper_proto;}
86 if (remproto.protocol_version != locproto.protocol_version)
88 yCError(SERVICE_LOG_COMPONENT) <<
"Invalid communication protocol.";
89 yCError(SERVICE_LOG_COMPONENT) <<
"Local Protocol Version: " << locproto.toString();
90 yCError(SERVICE_LOG_COMPONENT) <<
"Remote Protocol Version: " << remproto.toString();
160 static constexpr const char*
s_tag{
"getAxisCount"};
164 static constexpr const char*
s_prototype{
"return_getAxisCount IJoypadControlMsgs::getAxisCount()"};
218 static constexpr const char*
s_tag{
"getButtonCount"};
222 static constexpr const char*
s_prototype{
"return_getButtonCount IJoypadControlMsgs::getButtonCount()"};
276 static constexpr const char*
s_tag{
"getTrackballCount"};
280 static constexpr const char*
s_prototype{
"return_getTrackballCount IJoypadControlMsgs::getTrackballCount()"};
334 static constexpr const char*
s_tag{
"getHatCount"};
338 static constexpr const char*
s_prototype{
"return_getHatCount IJoypadControlMsgs::getHatCount()"};
392 static constexpr const char*
s_tag{
"getTouchSurfaceCount"};
396 static constexpr const char*
s_prototype{
"return_getTouchSurfaceCount IJoypadControlMsgs::getTouchSurfaceCount()"};
450 static constexpr const char*
s_tag{
"getStickCount"};
454 static constexpr const char*
s_prototype{
"return_getStickCount IJoypadControlMsgs::getStickCount()"};
513 static constexpr const char*
s_tag{
"getButton"};
517 static constexpr const char*
s_prototype{
"return_getButton IJoypadControlMsgs::getButton(const std::int32_t button_id)"};
576 static constexpr const char*
s_tag{
"getTrackball"};
580 static constexpr const char*
s_prototype{
"return_getTrackball IJoypadControlMsgs::getTrackball(const std::int32_t trackball_id)"};
639 static constexpr const char*
s_tag{
"getHat"};
643 static constexpr const char*
s_prototype{
"return_getHat IJoypadControlMsgs::getHat(const std::int32_t hat_id)"};
702 static constexpr const char*
s_tag{
"getAxis"};
706 static constexpr const char*
s_prototype{
"return_getAxis IJoypadControlMsgs::getAxis(const std::int32_t axis_id)"};
760 static constexpr const char*
s_tag{
"getAllAxes"};
764 static constexpr const char*
s_prototype{
"return_getAllAxes IJoypadControlMsgs::getAllAxes()"};
824 static constexpr const char*
s_tag{
"getStick"};
828 static constexpr const char*
s_prototype{
"return_getStick IJoypadControlMsgs::getStick(const std::int32_t stick_id, const yarp::dev::IJoypadController::JoypadCtrl_coordinateMode mode)"};
887 static constexpr const char*
s_tag{
"getTouch"};
891 static constexpr const char*
s_prototype{
"return_getTouch IJoypadControlMsgs::getTouch(const std::int32_t touch_id)"};
912 return write(writer);
927 if (!writeTag(writer)) {
930 if (!writeArgs(writer)) {
951 if (!readTag(reader)) {
954 if (!readArgs(reader)) {
985 return write(writer);
1000 if (!writer.
write(return_helper)) {
1016 if (!reader.
read(return_helper)) {
1045 return write(writer);
1055 return read(reader);
1060 if (!writeTag(writer)) {
1063 if (!writeArgs(writer)) {
1084 if (!readTag(reader)) {
1087 if (!readArgs(reader)) {
1118 return write(writer);
1124 return read(reader);
1133 if (!writer.
write(return_helper)) {
1149 if (!reader.
read(return_helper)) {
1178 return write(writer);
1188 return read(reader);
1193 if (!writeTag(writer)) {
1196 if (!writeArgs(writer)) {
1217 if (!readTag(reader)) {
1220 if (!readArgs(reader)) {
1251 return write(writer);
1257 return read(reader);
1266 if (!writer.
write(return_helper)) {
1282 if (!reader.
read(return_helper)) {
1311 return write(writer);
1321 return read(reader);
1326 if (!writeTag(writer)) {
1329 if (!writeArgs(writer)) {
1350 if (!readTag(reader)) {
1353 if (!readArgs(reader)) {
1384 return write(writer);
1390 return read(reader);
1399 if (!writer.
write(return_helper)) {
1415 if (!reader.
read(return_helper)) {
1444 return write(writer);
1454 return read(reader);
1459 if (!writeTag(writer)) {
1462 if (!writeArgs(writer)) {
1483 if (!readTag(reader)) {
1486 if (!readArgs(reader)) {
1517 return write(writer);
1523 return read(reader);
1532 if (!writer.
write(return_helper)) {
1548 if (!reader.
read(return_helper)) {
1577 return write(writer);
1587 return read(reader);
1592 if (!writeTag(writer)) {
1595 if (!writeArgs(writer)) {
1616 if (!readTag(reader)) {
1619 if (!readArgs(reader)) {
1650 return write(writer);
1656 return read(reader);
1665 if (!writer.
write(return_helper)) {
1681 if (!reader.
read(return_helper)) {
1710 button_id{button_id}
1720 return write(writer);
1730 return read(reader);
1735 if (!writeTag(writer)) {
1738 if (!writeArgs(writer)) {
1762 if (!readTag(reader)) {
1765 if (!readArgs(reader)) {
1790 if (!reader.
readI32(button_id)) {
1804 return write(writer);
1810 return read(reader);
1819 if (!writer.
write(return_helper)) {
1835 if (!reader.
read(return_helper)) {
1864 trackball_id{trackball_id}
1874 return write(writer);
1884 return read(reader);
1889 if (!writeTag(writer)) {
1892 if (!writeArgs(writer)) {
1908 if (!writer.
writeI32(trackball_id)) {
1916 if (!readTag(reader)) {
1919 if (!readArgs(reader)) {
1944 if (!reader.
readI32(trackball_id)) {
1958 return write(writer);
1964 return read(reader);
1973 if (!writer.
write(return_helper)) {
1989 if (!reader.
read(return_helper)) {
2028 return write(writer);
2038 return read(reader);
2043 if (!writeTag(writer)) {
2046 if (!writeArgs(writer)) {
2070 if (!readTag(reader)) {
2073 if (!readArgs(reader)) {
2098 if (!reader.
readI32(hat_id)) {
2112 return write(writer);
2118 return read(reader);
2127 if (!writer.
write(return_helper)) {
2143 if (!reader.
read(return_helper)) {
2182 return write(writer);
2192 return read(reader);
2197 if (!writeTag(writer)) {
2200 if (!writeArgs(writer)) {
2224 if (!readTag(reader)) {
2227 if (!readArgs(reader)) {
2252 if (!reader.
readI32(axis_id)) {
2266 return write(writer);
2272 return read(reader);
2281 if (!writer.
write(return_helper)) {
2297 if (!reader.
read(return_helper)) {
2326 return write(writer);
2336 return read(reader);
2341 if (!writeTag(writer)) {
2344 if (!writeArgs(writer)) {
2365 if (!readTag(reader)) {
2368 if (!readArgs(reader)) {
2399 return write(writer);
2405 return read(reader);
2414 if (!writer.
write(return_helper)) {
2430 if (!reader.
read(return_helper)) {
2470 return write(writer);
2480 return read(reader);
2485 if (!writeTag(writer)) {
2488 if (!writeArgs(writer)) {
2507 if (!writer.
writeI32(
static_cast<int32_t
>(mode))) {
2515 if (!readTag(reader)) {
2518 if (!readArgs(reader)) {
2543 if (!reader.
readI32(stick_id)) {
2552 if (!reader.
readI32(_ecast)) {
2567 return write(writer);
2573 return read(reader);
2582 if (!writer.
write(return_helper)) {
2598 if (!reader.
read(return_helper)) {
2637 return write(writer);
2647 return read(reader);
2652 if (!writeTag(writer)) {
2655 if (!writeArgs(writer)) {
2679 if (!readTag(reader)) {
2682 if (!readArgs(reader)) {
2707 if (!reader.
readI32(touch_id)) {
2721 return write(writer);
2727 return read(reader);
2736 if (!writer.
write(return_helper)) {
2752 if (!reader.
read(return_helper)) {
2767 yarp().setOwner(*
this);
2772 if (!
yarp().canWrite()) {
2776 bool ok =
yarp().write(helper, helper);
2782 if (!
yarp().canWrite()) {
2786 bool ok =
yarp().write(helper, helper);
2792 if (!
yarp().canWrite()) {
2796 bool ok =
yarp().write(helper, helper);
2802 if (!
yarp().canWrite()) {
2806 bool ok =
yarp().write(helper, helper);
2812 if (!
yarp().canWrite()) {
2816 bool ok =
yarp().write(helper, helper);
2822 if (!
yarp().canWrite()) {
2826 bool ok =
yarp().write(helper, helper);
2832 if (!
yarp().canWrite()) {
2836 bool ok =
yarp().write(helper, helper);
2842 if (!
yarp().canWrite()) {
2846 bool ok =
yarp().write(helper, helper);
2852 if (!
yarp().canWrite()) {
2856 bool ok =
yarp().write(helper, helper);
2862 if (!
yarp().canWrite()) {
2866 bool ok =
yarp().write(helper, helper);
2872 if (!
yarp().canWrite()) {
2876 bool ok =
yarp().write(helper, helper);
2882 if (!
yarp().canWrite()) {
2886 bool ok =
yarp().write(helper, helper);
2892 if (!
yarp().canWrite()) {
2896 bool ok =
yarp().write(helper, helper);
2903 bool showAll = (functionName ==
"--all");
2904 std::vector<std::string> helpString;
2906 helpString.emplace_back(
"*** Available commands:");
2920 helpString.emplace_back(
"help");
2961 if (functionName ==
"help") {
2962 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
2963 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
2964 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");
2965 helpString.emplace_back(
"@return list of strings (one string per line)");
2968 if (helpString.empty()) {
2969 helpString.emplace_back(
"Command not found");
2977 constexpr size_t max_tag_len = 1;
2987 std::string tag = reader.
readTag(1);
2988 bool direct = (tag ==
"__direct__");
2992 while (tag_len <= max_tag_len && !reader.
isError()) {
2993 if(tag ==
"getRemoteProtocolVersion") {
3000 auto proto = getLocalProtocolVersion();
3006 if (!writer.
write(proto)) {
3208 if (tag ==
"help") {
3209 std::string functionName;
3211 functionName =
"--all";
3213 auto help_strings = help(functionName);
3219 if (!writer.
writeTag(
"many", 1, 0)) {
3225 for (
const auto& help_string : help_strings) {
3241 std::string next_tag = reader.
readTag(1);
3242 if (next_tag.empty()) {
3245 tag.append(
"_").append(next_tag);
3246 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
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