6#ifndef YARP_DEV_JOYPADCONTROL_NWC_YARP_H
7#define YARP_DEV_JOYPADCONTROL_NWC_YARP_H
25#define DEFAULT_THREAD_PERIOD 10
40 if constexpr (std::is_same_v<T, yarp::dev::AxisDataList>)
44 std::lock_guard<std::mutex> lock(mtx);
50 std::lock_guard<std::mutex> lock(mtx);
79 std::vector<size_t> m_stickDof;
103 bool close()
override;
This class is the parameters parser for class JoypadControl_nwc_yarp.
JoypadControl_nwc_yarp: joypad input network wrapper on client side
yarp::dev::ReturnValue getTrackballCount(size_t &Trackball_count) override
Get number of trackballs.
bool close() override
Close the DeviceDriver.
JoypadControl_nwc_yarp & operator=(JoypadControl_nwc_yarp &&)=delete
~JoypadControl_nwc_yarp() override=default
yarp::dev::ReturnValue getAxisCount(size_t &axis_count) override
Get number of axes.
yarp::dev::ReturnValue getTouch(size_t touch_id, std::vector< yarp::dev::TouchData > &value) override
Get the value of a touch if present, return false otherwise.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
JoypadControl_nwc_yarp(JoypadControl_nwc_yarp &&)=delete
yarp::dev::ReturnValue getTouchSurfaceCount(size_t &touch_count) override
Get the number of touch surface.
JoypadControl_nwc_yarp & operator=(const JoypadControl_nwc_yarp &)=delete
yarp::dev::ReturnValue getButtonCount(size_t &button_count) override
Get number of buttons.
yarp::dev::ReturnValue getStick(size_t stick_id, yarp::dev::StickData &value, JoypadCtrl_coordinateMode coordinate_mode) override
Get the value of a stick if present, return false otherwise.
yarp::dev::ReturnValue getButton(size_t button_id, double &value) override
Get the value of a button.
yarp::dev::ReturnValue getAllAxes(std::vector< double > &values) override
Get the values of all available joystick axes.
yarp::dev::ReturnValue getHatCount(size_t &Hat_count) override
Get number of hats.
yarp::dev::ReturnValue getTrackball(size_t trackball_id, yarp::dev::TrackballData &value) override
Get the axes change of a Trackball.
yarp::dev::ReturnValue getAxis(size_t axis_id, double &value) override
Get the value of an axis if present, return false otherwise.
JoypadControl_nwc_yarp(const JoypadControl_nwc_yarp &)=delete
yarp::dev::ReturnValue getHat(size_t hat_id, unsigned char &value) override
Get the value of an Hat.
yarp::dev::ReturnValue getStickCount(size_t &stick_count) override
Get the number of the sticks.
void onRead(T &v) override
Callback method.
Interface implemented by all device drivers.
JoypadCtrl_coordinateMode
A mini-server for performing network communication in the background.
A mini-server for network communication.
A base class for nested structures that can be searched.