YARP
Yet Another Robot Platform
IJoypadController.h File Reference
#include <yarp/sig/Vector.h>
#include <yarp/dev/api.h>
#include <yarp/os/Vocab.h>
#include <yarp/os/PeriodicThread.h>
#include <yarp/os/Searchable.h>
#include <yarp/dev/GenericVocabs.h>
#include <map>
#include <vector>
#include <string>
+ Include dependency graph for IJoypadController.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  yarp::dev::IJoypadController
 
class  yarp::dev::IJoypadEvent
 
struct  yarp::dev::IJoypadEvent::joyData< T >
 
class  yarp::dev::IJoypadEventDriven
 

Namespaces

 yarp
 The main, catch-all namespace for YARP.
 
 yarp::dev
 An interface for the device drivers.
 

Macros

#define HAT_ACTIONS_ID_SHIFT   100
 
#define YRPJOY_HAT_CENTERED   0x00
 
#define YRPJOY_HAT_UP   0x01
 
#define YRPJOY_HAT_RIGHT   0x02
 
#define YRPJOY_HAT_DOWN   0x04
 
#define YRPJOY_HAT_LEFT   0x08
 
#define YRPJOY_HAT_RIGHTUP   (YRPJOY_HAT_RIGHT|YRPJOY_HAT_UP)
 
#define YRPJOY_HAT_RIGHTDOWN   (YRPJOY_HAT_RIGHT|YRPJOY_HAT_DOWN)
 
#define YRPJOY_HAT_LEFTUP   (YRPJOY_HAT_LEFT |YRPJOY_HAT_UP)
 
#define YRPJOY_HAT_LEFTDOWN   (YRPJOY_HAT_LEFT |YRPJOY_HAT_DOWN)
 

Variables

constexpr yarp::conf::vocab32_t VOCAB_IJOYPADCTRL = yarp::os::createVocab('i','j','p','c')
 
constexpr yarp::conf::vocab32_t VOCAB_BUTTON = yarp::os::createVocab('b','u','t','n')
 
constexpr yarp::conf::vocab32_t VOCAB_TRACKBALL = yarp::os::createVocab('t','r','b','l')
 
constexpr yarp::conf::vocab32_t VOCAB_HAT = yarp::os::createVocab('h','a','t')
 
constexpr yarp::conf::vocab32_t VOCAB_AXIS = yarp::os::createVocab('a','x','i','s')
 
constexpr yarp::conf::vocab32_t VOCAB_STICK = yarp::os::createVocab('s','t','c','k')
 
constexpr yarp::conf::vocab32_t VOCAB_STICKDOF = yarp::os::createVocab('s','d','o','f')
 
constexpr yarp::conf::vocab32_t VOCAB_TOUCH = yarp::os::createVocab('t','u','c','h')
 
constexpr yarp::conf::vocab32_t VOCAB_POLAR = yarp::os::createVocab('p','o','l','r')
 
constexpr yarp::conf::vocab32_t VOCAB_CARTESIAN = yarp::os::createVocab('c','a','r','t')
 

Macro Definition Documentation

◆ HAT_ACTIONS_ID_SHIFT

#define HAT_ACTIONS_ID_SHIFT   100

Definition at line 22 of file IJoypadController.h.

◆ YRPJOY_HAT_CENTERED

#define YRPJOY_HAT_CENTERED   0x00

Definition at line 277 of file IJoypadController.h.

◆ YRPJOY_HAT_DOWN

#define YRPJOY_HAT_DOWN   0x04

Definition at line 280 of file IJoypadController.h.

◆ YRPJOY_HAT_LEFT

#define YRPJOY_HAT_LEFT   0x08

Definition at line 281 of file IJoypadController.h.

◆ YRPJOY_HAT_LEFTDOWN

#define YRPJOY_HAT_LEFTDOWN   (YRPJOY_HAT_LEFT |YRPJOY_HAT_DOWN)

Definition at line 285 of file IJoypadController.h.

◆ YRPJOY_HAT_LEFTUP

#define YRPJOY_HAT_LEFTUP   (YRPJOY_HAT_LEFT |YRPJOY_HAT_UP)

Definition at line 284 of file IJoypadController.h.

◆ YRPJOY_HAT_RIGHT

#define YRPJOY_HAT_RIGHT   0x02

Definition at line 279 of file IJoypadController.h.

◆ YRPJOY_HAT_RIGHTDOWN

#define YRPJOY_HAT_RIGHTDOWN   (YRPJOY_HAT_RIGHT|YRPJOY_HAT_DOWN)

Definition at line 283 of file IJoypadController.h.

◆ YRPJOY_HAT_RIGHTUP

#define YRPJOY_HAT_RIGHTUP   (YRPJOY_HAT_RIGHT|YRPJOY_HAT_UP)

Definition at line 282 of file IJoypadController.h.

◆ YRPJOY_HAT_UP

#define YRPJOY_HAT_UP   0x01

Definition at line 278 of file IJoypadController.h.

Variable Documentation

◆ VOCAB_AXIS

constexpr yarp::conf::vocab32_t VOCAB_AXIS = yarp::os::createVocab('a','x','i','s')
constexpr

Definition at line 292 of file IJoypadController.h.

◆ VOCAB_BUTTON

constexpr yarp::conf::vocab32_t VOCAB_BUTTON = yarp::os::createVocab('b','u','t','n')
constexpr

Definition at line 289 of file IJoypadController.h.

◆ VOCAB_CARTESIAN

constexpr yarp::conf::vocab32_t VOCAB_CARTESIAN = yarp::os::createVocab('c','a','r','t')
constexpr

Definition at line 297 of file IJoypadController.h.

◆ VOCAB_HAT

constexpr yarp::conf::vocab32_t VOCAB_HAT = yarp::os::createVocab('h','a','t')
constexpr

Definition at line 291 of file IJoypadController.h.

◆ VOCAB_IJOYPADCTRL

constexpr yarp::conf::vocab32_t VOCAB_IJOYPADCTRL = yarp::os::createVocab('i','j','p','c')
constexpr

Definition at line 287 of file IJoypadController.h.

◆ VOCAB_POLAR

constexpr yarp::conf::vocab32_t VOCAB_POLAR = yarp::os::createVocab('p','o','l','r')
constexpr

Definition at line 296 of file IJoypadController.h.

◆ VOCAB_STICK

constexpr yarp::conf::vocab32_t VOCAB_STICK = yarp::os::createVocab('s','t','c','k')
constexpr

Definition at line 293 of file IJoypadController.h.

◆ VOCAB_STICKDOF

constexpr yarp::conf::vocab32_t VOCAB_STICKDOF = yarp::os::createVocab('s','d','o','f')
constexpr

Definition at line 294 of file IJoypadController.h.

◆ VOCAB_TOUCH

constexpr yarp::conf::vocab32_t VOCAB_TOUCH = yarp::os::createVocab('t','u','c','h')
constexpr

Definition at line 295 of file IJoypadController.h.

◆ VOCAB_TRACKBALL

constexpr yarp::conf::vocab32_t VOCAB_TRACKBALL = yarp::os::createVocab('t','r','b','l')
constexpr

Definition at line 290 of file IJoypadController.h.