LocalGuidance
A library that generates velocity references to follow a path.
robot_utils::Joystick Class Reference

#include <Joystick.hpp>

Public Types

enum  JoyAxes {
  JA_SAGITTAL =2, JA_CORONAL =1, JA_VERTICAL =5, JA_ROLL =3,
  JA_PITCH =6, JA_YAW =4
}
 

Public Member Functions

 Joystick ()
 
virtual ~Joystick ()
 
double getAxis (int iAxis)
 
double getButton (int iButton)
 
bool getButtonOneClick (int iButton)
 
double getSagittal ()
 
double getCoronal ()
 
double getVertical ()
 
double getRoll ()
 
double getPitch ()
 
double getYaw ()
 
void setSagittal (double value)
 
void setCoronal (double value)
 
void setVertical (double value)
 
void setRoll (double value)
 
void setPitch (double value)
 
void setYaw (double value)
 
double * getAxes ()
 
double * getButtons ()
 
int getNoAxes ()
 
int getNoButtons ()
 
void setAxis (int iAxis, double value)
 
void setButton (int iButton, double value)
 

Protected Attributes

const int nAxes_
 number of axes More...
 
const int nButtons_
 number of buttons More...
 
double joystickAxes_ [7]
 joystick axes More...
 
double joystickButtons_ [15]
 joystick buttons More...
 
std_utils::SteadyClockTimer joystickButtonsTimers_ [15]
 button timers More...
 
double oneClickButtonTimePeriod_
 time period of a single clicks More...
 

Member Enumeration Documentation

Enumerator
JA_SAGITTAL 
JA_CORONAL 
JA_VERTICAL 
JA_ROLL 
JA_PITCH 
JA_YAW 

Constructor & Destructor Documentation

robot_utils::Joystick::Joystick ( )
virtual robot_utils::Joystick::~Joystick ( )
virtual

Member Function Documentation

double* robot_utils::Joystick::getAxes ( )
double robot_utils::Joystick::getAxis ( int  iAxis)

Gets the joystick axis by index {1, ..., 7}

Parameters
iAxisindex of the axis
Returns
value
double robot_utils::Joystick::getButton ( int  iButton)

Gets the joystick button by button number {1, ..., 15}

Parameters
iButtonindex of the button {1, ..., 15}
Returns
value
bool robot_utils::Joystick::getButtonOneClick ( int  iButton)
double* robot_utils::Joystick::getButtons ( )
double robot_utils::Joystick::getCoronal ( )
int robot_utils::Joystick::getNoAxes ( )
int robot_utils::Joystick::getNoButtons ( )
double robot_utils::Joystick::getPitch ( )
double robot_utils::Joystick::getRoll ( )
double robot_utils::Joystick::getSagittal ( )
double robot_utils::Joystick::getVertical ( )
double robot_utils::Joystick::getYaw ( )
void robot_utils::Joystick::setAxis ( int  iAxis,
double  value 
)
void robot_utils::Joystick::setButton ( int  iButton,
double  value 
)
void robot_utils::Joystick::setCoronal ( double  value)
void robot_utils::Joystick::setPitch ( double  value)
void robot_utils::Joystick::setRoll ( double  value)
void robot_utils::Joystick::setSagittal ( double  value)
void robot_utils::Joystick::setVertical ( double  value)
void robot_utils::Joystick::setYaw ( double  value)

Member Data Documentation

double robot_utils::Joystick::joystickAxes_[7]
protected

joystick axes

double robot_utils::Joystick::joystickButtons_[15]
protected

joystick buttons

std_utils::SteadyClockTimer robot_utils::Joystick::joystickButtonsTimers_[15]
protected

button timers

const int robot_utils::Joystick::nAxes_
protected

number of axes

const int robot_utils::Joystick::nButtons_
protected

number of buttons

double robot_utils::Joystick::oneClickButtonTimePeriod_
protected

time period of a single clicks


The documentation for this class was generated from the following file: