6#ifndef YARP_DEV_JOYPADCONTROL_NWS_YARP_H
7#define YARP_DEV_JOYPADCONTROL_NWS_YARP_H
53 std::unique_ptr<IJoypadControlRPCd> m_RPCMsgs;
68 size_t m_numberOfAxes=0;
69 size_t m_numberOfSticks=0;
70 size_t m_numberOfTouchSurfaces=0;
71 size_t m_numberOfButtons=0;
72 size_t m_numberOfHats=0;
73 size_t m_numberOfTrackballs=0;
75 std::vector<double> m_curr_axes;
76 std::vector<yarp::dev::StickData> m_curr_sticks;
78 std::vector<double> m_curr_buttons;
79 std::vector<unsigned char> m_curr_hats;
80 std::vector<yarp::dev::TrackballData> m_curr_trackballs;
82 std::vector<double> m_last_axes;
83 std::vector<yarp::dev::StickData> m_last_sticks;
85 std::vector<double> m_last_buttons;
86 std::vector<unsigned char> m_last_hats;
87 std::vector<yarp::dev::TrackballData> m_last_trackballs;
103 bool close()
override;
This class is the parameters parser for class JoypadControl_nws_yarp.
JoypadControl_nws_yarp: joypad input network wrapper on server side
bool detach() override
Detach the object (you must have first called attach).
void threadRelease() override
Release method.
JoypadControl_nws_yarp(JoypadControl_nws_yarp &&)=delete
JoypadControl_nws_yarp(const JoypadControl_nws_yarp &)=delete
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void run() override
Loop function.
bool threadInit() override
Initialization method.
JoypadControl_nws_yarp & operator=(const JoypadControl_nws_yarp &)=delete
JoypadControl_nws_yarp & operator=(JoypadControl_nws_yarp &&)=delete
bool open(yarp::os::Searchable ¶ms) override
Open the DeviceDriver.
bool attach(yarp::dev::PolyDriver *poly) override
Attach to another object.
~JoypadControl_nws_yarp() override
bool close() override
Close the DeviceDriver.
Interface implemented by all device drivers.
JoypadCtrl_coordinateMode
A container for a device driver.
Helper interface for an object that can wrap/or "attach" to a single other device.
A mini-server for performing network communication in the background.
An interface for reading from a network connection.
An abstraction for a periodic thread.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
A port that is specialized as an RPC server.
A base class for nested structures that can be searched.