|
| | JoypadControlClient () |
| |
| | JoypadControlClient (const JoypadControlClient &)=delete |
| |
| | JoypadControlClient (JoypadControlClient &&)=delete |
| |
| JoypadControlClient & | operator= (const JoypadControlClient &)=delete |
| |
| JoypadControlClient & | operator= (JoypadControlClient &&)=delete |
| |
| | ~JoypadControlClient () override=default |
| |
| bool | open (yarp::os::Searchable &config) override |
| | Open the DeviceDriver. More...
|
| |
| bool | close () override |
| | Close the DeviceDriver. More...
|
| |
| bool | getRawAxisCount (unsigned int &axis_count) override |
| |
| bool | getRawButtonCount (unsigned int &button_count) override |
| |
| bool | getRawTrackballCount (unsigned int &Trackball_count) override |
| |
| bool | getRawHatCount (unsigned int &Hat_count) override |
| |
| bool | getRawTouchSurfaceCount (unsigned int &touch_count) override |
| |
| bool | getRawStickCount (unsigned int &stick_count) override |
| |
| bool | getRawStickDoF (unsigned int stick_id, unsigned int &DoF) override |
| |
| bool | getRawButton (unsigned int button_id, float &value) override |
| |
| bool | getRawTrackball (unsigned int trackball_id, yarp::sig::Vector &value) override |
| |
| bool | getRawHat (unsigned int hat_id, unsigned char &value) override |
| |
| bool | getRawAxis (unsigned int axis_id, double &value) override |
| |
| bool | getRawStick (unsigned int stick_id, yarp::sig::Vector &value, JoypadCtrl_coordinateMode coordinate_mode) override |
| |
| bool | getRawTouch (unsigned int touch_id, yarp::sig::Vector &value) override |
| |
| bool | getAxisCount (unsigned int &axis_count) override final |
| | Get number of axes. More...
|
| |
| bool | getButtonCount (unsigned int &button_count) override final |
| | Get number of buttons. More...
|
| |
| bool | getTrackballCount (unsigned int &Trackball_count) override final |
| | Get number of trackballs. More...
|
| |
| bool | getHatCount (unsigned int &Hat_count) override final |
| | Get number of hats. More...
|
| |
| bool | getTouchSurfaceCount (unsigned int &touch_count) override final |
| | Get the number of touch surface. More...
|
| |
| bool | getStickCount (unsigned int &stick_count) override final |
| | Get the number of the sticks. More...
|
| |
| bool | getStickDoF (unsigned int stick_id, unsigned int &DoF) override final |
| | Get the Degree Of Freedom count for desired stick. More...
|
| |
| bool | getButton (unsigned int button_id, float &value) override final |
| | Get the value of a button. More...
|
| |
| bool | getTrackball (unsigned int trackball_id, yarp::sig::Vector &value) override final |
| | Get the axes change of a Trackball. More...
|
| |
| bool | getHat (unsigned int hat_id, unsigned char &value) override final |
| | Get the value of an Hat. More...
|
| |
| bool | getAxis (unsigned int axis_id, double &value) override final |
| | Get the value of an axis if present, return false otherwise. More...
|
| |
| bool | getStick (unsigned int stick_id, yarp::sig::Vector &value, JoypadCtrl_coordinateMode coordinate_mode) override final |
| | Get the value of a stick if present, return false otherwise. More...
|
| |
| bool | getTouch (unsigned int touch_id, yarp::sig::Vector &value) override final |
| | Get the value of a touch if present, return false otherwise. More...
|
| |
| | IJoypadEventDriven () |
| |
| | IJoypadEventDriven (int rate) |
| |
| | IJoypadEventDriven (double period) |
| |
| bool | threadInit () override final |
| | Initialization method. More...
|
| |
| void | run () override final |
| | Loop function. More...
|
| |
| bool | eventDriven (bool enable, yarp::dev::IJoypadEvent *event=nullptr) override |
| | Activate event Driven mode. More...
|
| |
| bool | isEventDriven () override |
| |
| virtual | ~IJoypadController ()=default |
| | Destructor. More...
|
| |
| virtual bool | eventDriven (bool enable, yarp::dev::IJoypadEvent *event=nullptr) |
| | Activate event Driven mode. More...
|
| |
| virtual bool | isEventDriven () |
| |
| virtual bool | getAxisCount (unsigned int &axis_count)=0 |
| | Get number of axes. More...
|
| |
| virtual bool | getButtonCount (unsigned int &button_count)=0 |
| | Get number of buttons. More...
|
| |
| virtual bool | getTrackballCount (unsigned int &Trackball_count)=0 |
| | Get number of trackballs. More...
|
| |
| virtual bool | getHatCount (unsigned int &Hat_count)=0 |
| | Get number of hats. More...
|
| |
| virtual bool | getTouchSurfaceCount (unsigned int &touch_count)=0 |
| | Get the number of touch surface. More...
|
| |
| virtual bool | getStickCount (unsigned int &stick_count)=0 |
| | Get the number of the sticks. More...
|
| |
| virtual bool | getStickDoF (unsigned int stick_id, unsigned int &DoF)=0 |
| | Get the Degree Of Freedom count for desired stick. More...
|
| |
| virtual bool | getButton (unsigned int button_id, float &value)=0 |
| | Get the value of a button. More...
|
| |
| virtual bool | getTrackball (unsigned int trackball_id, yarp::sig::Vector &value)=0 |
| | Get the axes change of a Trackball. More...
|
| |
| virtual bool | getHat (unsigned int hat_id, unsigned char &value)=0 |
| | Get the value of an Hat. More...
|
| |
| virtual bool | getAxis (unsigned int axis_id, double &value)=0 |
| | Get the value of an axis if present, return false otherwise. More...
|
| |
| virtual bool | getStick (unsigned int stick_id, yarp::sig::Vector &value, JoypadCtrl_coordinateMode coordinate_mode)=0 |
| | Get the value of a stick if present, return false otherwise. More...
|
| |
| virtual bool | getTouch (unsigned int touch_id, yarp::sig::Vector &value)=0 |
| | Get the value of a touch if present, return false otherwise. More...
|
| |
| | DeviceDriver () |
| |
| | DeviceDriver (const DeviceDriver &other)=delete |
| |
| | DeviceDriver (DeviceDriver &&other) noexcept=delete |
| |
| DeviceDriver & | operator= (const DeviceDriver &other)=delete |
| |
| DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
| |
| | ~DeviceDriver () override |
| |
| bool | open (yarp::os::Searchable &config) override |
| | Open the DeviceDriver. More...
|
| |
| bool | close () override |
| | Close the DeviceDriver. More...
|
| |
| virtual std::string | id () const |
| | Return the id assigned to the PolyDriver. More...
|
| |
| virtual void | setId (const std::string &id) |
| | Set the id for this device. More...
|
| |
| template<class T > |
| bool | view (T *&x) |
| | Get an interface to the device driver. More...
|
| |
| virtual DeviceDriver * | getImplementation () |
| | Some drivers are bureaucrats, pointing at others. More...
|
| |
| virtual | ~IConfig () |
| | Destructor. More...
|
| |
| virtual bool | open (Searchable &config) |
| | Initialize the object. More...
|
| |
| virtual bool | close () |
| | Shut the object down. More...
|
| |
| virtual bool | configure (Searchable &config) |
| | Change online parameters. More...
|
| |
|
| enum | JoypadCtrl_coordinateMode |
| |
| enum | JoypadCtrl_coordinateMode {
JypCtrlcoord_POLAR = 0
,
JypCtrlcoord_CARTESIAN = 1
} |
| |
| virtual bool | getRawAxisCount (unsigned int &axis_count)=0 |
| |
| virtual bool | getRawButtonCount (unsigned int &button_count)=0 |
| |
| virtual bool | getRawTrackballCount (unsigned int &Trackball_count)=0 |
| |
| virtual bool | getRawHatCount (unsigned int &Hat_count)=0 |
| |
| virtual bool | getRawTouchSurfaceCount (unsigned int &touch_count)=0 |
| |
| virtual bool | getRawStickCount (unsigned int &stick_count)=0 |
| |
| virtual bool | getRawStickDoF (unsigned int stick_id, unsigned int &DoF)=0 |
| |
| virtual bool | getRawButton (unsigned int button_id, float &value)=0 |
| |
| virtual bool | getRawTrackball (unsigned int trackball_id, yarp::sig::Vector &value)=0 |
| |
| virtual bool | getRawHat (unsigned int hat_id, unsigned char &value)=0 |
| |
| virtual bool | getRawAxis (unsigned int axis_id, double &value)=0 |
| |
| virtual bool | getRawStick (unsigned int stick_id, yarp::sig::Vector &value, JoypadCtrl_coordinateMode coordinate_mode)=0 |
| |
| virtual bool | getRawTouch (unsigned int touch_id, yarp::sig::Vector &value)=0 |
| |
| virtual bool | executeAction (int action_id) |
| |
| virtual bool | parseActions (const yarp::os::Searchable &cfg, int *count=nullptr) |
| |
| virtual bool | parseActions (const yarp::os::Searchable &cfg, int *count=nullptr) |
| |
| virtual bool | executeAction (int action_id) |
| |
| std::map< int, std::string > | m_actions |
| |
| std::map< int, std::string > | m_actions |
| |
JoypadControlClient: joypad input network wrapper on client side
Description of input parameters
Parameters accepted in the config argument of the open method:
| Parameter name | Type | Units | Default Value | Required | Description | Notes |
| local | string | | | yes | name for the local port to open | |
| remote | string | | | yes | name of the remote server port to connect to | |
Definition at line 40 of file JoypadControlClient.h.