EEROS  0.4.1.0
API for the EEROS Real-Time Robotics Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
eeros::control::XBoxInput Class Reference

#include <XBoxInput.hpp>

Inheritance diagram for eeros::control::XBoxInput:
Collaboration diagram for eeros::control::XBoxInput:

Public Member Functions

 XBoxInput (std::string dev)
 
virtual ~XBoxInput ()
 
virtual void run ()
 
virtual void setInitPos (eeros::math::Vector4 initPos)
 
virtual void setSpeedScaleFactor (double speedScale)
 
void on_button (std::function< void(int, bool)> &&action)
 
- Public Member Functions inherited from eeros::control::Block1o< eeros::math::Vector4 >
 Block1o ()
 
virtual Output
< eeros::math::Vector4 > & 
getOut ()
 
- Public Member Functions inherited from eeros::control::Block
virtual void setName (std::string name)
 
virtual std::string getName ()
 
- Public Member Functions inherited from eeros::Runnable
virtual ~Runnable ()
 

Public Attributes

double speedScaleFactor = 1.0
 
double xScale = 0.0001
 
double yScale = 0.0001
 
double zScale = 0.0001
 
double rScale = 0.002
 
double min_x = -0.03
 
double max_x = 0.045
 
double min_y = -0.03
 
double max_y = 0.03
 
double min_z = -0.053
 
double max_z = -0.015
 
double min_r = -2.8
 
double max_r = 2.8
 

Protected Attributes

eeros::math::Matrix< 4, 4, double > axisScale
 
eeros::hal::Joystick j
 
std::thread * t
 
- Protected Attributes inherited from eeros::control::Block1o< eeros::math::Vector4 >
Output< eeros::math::Vector4out
 

Constructor & Destructor Documentation

XBoxInput::XBoxInput ( std::string  dev)
XBoxInput::~XBoxInput ( )
virtual

Member Function Documentation

void eeros::control::XBoxInput::on_button ( std::function< void(int, bool)> &&  action)
inline

Here is the call graph for this function:

void XBoxInput::run ( )
virtual

Implements eeros::Runnable.

Here is the call graph for this function:

void XBoxInput::setInitPos ( eeros::math::Vector4  initPos)
virtual
void XBoxInput::setSpeedScaleFactor ( double  speedScale)
virtual

Member Data Documentation

eeros::math::Matrix<4,4,double> eeros::control::XBoxInput::axisScale
protected
eeros::hal::Joystick eeros::control::XBoxInput::j
protected
double eeros::control::XBoxInput::max_r = 2.8
double eeros::control::XBoxInput::max_x = 0.045
double eeros::control::XBoxInput::max_y = 0.03
double eeros::control::XBoxInput::max_z = -0.015
double eeros::control::XBoxInput::min_r = -2.8
double eeros::control::XBoxInput::min_x = -0.03
double eeros::control::XBoxInput::min_y = -0.03
double eeros::control::XBoxInput::min_z = -0.053
double eeros::control::XBoxInput::rScale = 0.002
double eeros::control::XBoxInput::speedScaleFactor = 1.0
std::thread* eeros::control::XBoxInput::t
protected
double eeros::control::XBoxInput::xScale = 0.0001
double eeros::control::XBoxInput::yScale = 0.0001
double eeros::control::XBoxInput::zScale = 0.0001

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