GamePad RTM-Module class
outport TimedULong 'Buttons','Pushed Buttons' have 1 bit info for each button in 32bit value
outport TimedFloat 'Stick*' value was adjusted to [-1.0 - 1.0] * coefficient[x,y]
outport TimedDouble 'Stick*d' value was adjusted to [-1.0 - 1.0] * coefficient[x,y]
outport TimedVelocity 'Velocity' v = -StickLYd * coefficienty, w = -StickLXd * coefficientx
.
More...
#include <GamePad.h>
Public Member Functions | |
GamePad (RTC::Manager *manager) | |
virtual RTC::ReturnCode_t | onActivated (RTC::UniqueId ec_id) |
virtual RTC::ReturnCode_t | onDeactivated (RTC::UniqueId ec_id) |
virtual RTC::ReturnCode_t | onExecute (RTC::UniqueId ec_id) |
polling gamepad status | |
virtual RTC::ReturnCode_t | onInitialize () |
~GamePad () | |
Protected Attributes | |
RTC::TimedULong | m_Button |
OutPort< RTC::TimedULong > | m_ButtonOut |
float | m_Klx |
float | m_Kly |
float | m_Krx |
float | m_Kry |
RTC::TimedFloat | m_StickLX |
RTC::TimedDouble | m_StickLXd |
OutPort< RTC::TimedDouble > | m_StickLXdOut |
OutPort< RTC::TimedFloat > | m_StickLXOut |
RTC::TimedFloat | m_StickLY |
RTC::TimedDouble | m_StickLYd |
OutPort< RTC::TimedDouble > | m_StickLYdOut |
OutPort< RTC::TimedFloat > | m_StickLYOut |
RTC::TimedFloat | m_StickRX |
RTC::TimedDouble | m_StickRXd |
OutPort< RTC::TimedDouble > | m_StickRXdOut |
OutPort< RTC::TimedFloat > | m_StickRXOut |
RTC::TimedFloat | m_StickRY |
RTC::TimedDouble | m_StickRYd |
OutPort< RTC::TimedDouble > | m_StickRYdOut |
OutPort< RTC::TimedFloat > | m_StickRYOut |
std::string | m_str_port |
RTC::TimedVelocity | m_Velocity |
IIS::TimedVelocity2D | m_Velocity2DIIS |
OutPort< IIS::TimedVelocity2D > | m_Velocity2DIISOut |
IIS::TimedVelocity | m_VelocityIIS |
OutPort< IIS::TimedVelocity > | m_VelocityIISOut |
OutPort< RTC::TimedVelocity > | m_VelocityOut |
Private Attributes | |
int | dummy |
GamePad RTM-Module class
outport TimedULong 'Buttons','Pushed Buttons' have 1 bit info for each button in 32bit value
outport TimedFloat 'Stick*' value was adjusted to [-1.0 - 1.0] * coefficient[x,y]
outport TimedDouble 'Stick*d' value was adjusted to [-1.0 - 1.0] * coefficient[x,y]
outport TimedVelocity 'Velocity' v = -StickLYd * coefficienty, w = -StickLXd * coefficientx
.
GamePad::GamePad | ( | RTC::Manager * | manager | ) |
Definition at line 41 of file GamePad.cpp.
Definition at line 92 of file GamePad.cpp.
RTC::ReturnCode_t GamePad::onActivated | ( | RTC::UniqueId | ec_id | ) | [virtual] |
Definition at line 136 of file GamePad.cpp.
RTC::ReturnCode_t GamePad::onDeactivated | ( | RTC::UniqueId | ec_id | ) | [virtual] |
Definition at line 146 of file GamePad.cpp.
RTC::ReturnCode_t GamePad::onExecute | ( | RTC::UniqueId | ec_id | ) | [virtual] |
RTC::ReturnCode_t GamePad::onInitialize | ( | ) | [virtual] |
Definition at line 97 of file GamePad.cpp.
int GamePad::dummy [private] |
RTC::TimedULong GamePad::m_Button [protected] |
OutPort<RTC::TimedULong> GamePad::m_ButtonOut [protected] |
float GamePad::m_Klx [protected] |
float GamePad::m_Kly [protected] |
float GamePad::m_Krx [protected] |
float GamePad::m_Kry [protected] |
RTC::TimedFloat GamePad::m_StickLX [protected] |
RTC::TimedDouble GamePad::m_StickLXd [protected] |
OutPort<RTC::TimedDouble> GamePad::m_StickLXdOut [protected] |
OutPort<RTC::TimedFloat> GamePad::m_StickLXOut [protected] |
RTC::TimedFloat GamePad::m_StickLY [protected] |
RTC::TimedDouble GamePad::m_StickLYd [protected] |
OutPort<RTC::TimedDouble> GamePad::m_StickLYdOut [protected] |
OutPort<RTC::TimedFloat> GamePad::m_StickLYOut [protected] |
RTC::TimedFloat GamePad::m_StickRX [protected] |
RTC::TimedDouble GamePad::m_StickRXd [protected] |
OutPort<RTC::TimedDouble> GamePad::m_StickRXdOut [protected] |
OutPort<RTC::TimedFloat> GamePad::m_StickRXOut [protected] |
RTC::TimedFloat GamePad::m_StickRY [protected] |
RTC::TimedDouble GamePad::m_StickRYd [protected] |
OutPort<RTC::TimedDouble> GamePad::m_StickRYdOut [protected] |
OutPort<RTC::TimedFloat> GamePad::m_StickRYOut [protected] |
std::string GamePad::m_str_port [protected] |
RTC::TimedVelocity GamePad::m_Velocity [protected] |
IIS::TimedVelocity2D GamePad::m_Velocity2DIIS [protected] |
OutPort<IIS::TimedVelocity2D> GamePad::m_Velocity2DIISOut [protected] |
IIS::TimedVelocity GamePad::m_VelocityIIS [protected] |
OutPort<IIS::TimedVelocity> GamePad::m_VelocityIISOut [protected] |
OutPort<RTC::TimedVelocity> GamePad::m_VelocityOut [protected] |