Public Member Functions | Private Member Functions
XboxWirelessConverter Class Reference

#include <RmpXboxConverter.h>

Inheritance diagram for XboxWirelessConverter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int GetAudioCommand (const sensor_msgs::Joy &rJoyMessage)
virtual bool GetBoost (const sensor_msgs::Joy &rJoyMessage)
virtual bool GetDeadman (const sensor_msgs::Joy &rJoyMessage)
virtual double GetRotationalVelocity (const sensor_msgs::Joy &rJoyMessage)
virtual double GetTranslationalVelocity (const sensor_msgs::Joy &rJoyMessage)
 XboxWirelessConverter ()
virtual ~XboxWirelessConverter ()

Private Member Functions

void IsValid (const sensor_msgs::Joy &rJoyMessage)

Detailed Description

This class converts Xbox controller input to Rmp commands.

Definition at line 47 of file RmpXboxConverter.h.


Constructor & Destructor Documentation

Constructor

Definition at line 55 of file RmpXboxConverter.cpp.

Destructor

Definition at line 59 of file RmpXboxConverter.cpp.


Member Function Documentation

int XboxWirelessConverter::GetAudioCommand ( const sensor_msgs::Joy &  rJoyMessage) [virtual]

Get audio command

Parameters:
rJoyMessagejoystick message
Returns:
return audio command or -1 if no command

Implements JoystickConverter.

Definition at line 90 of file RmpXboxConverter.cpp.

bool XboxWirelessConverter::GetBoost ( const sensor_msgs::Joy &  rJoyMessage) [virtual]

Get wether the boost button is pressed

Parameters:
rJoyMessagejoystick message
Returns:
wether the button is pressed

Implements JoystickConverter.

Definition at line 83 of file RmpXboxConverter.cpp.

bool XboxWirelessConverter::GetDeadman ( const sensor_msgs::Joy &  rJoyMessage) [virtual]

Get wether the deadman button is pressed

Parameters:
rJoyMessagejoystick message
Returns:
wether the button is pressed

Implements JoystickConverter.

Definition at line 76 of file RmpXboxConverter.cpp.

double XboxWirelessConverter::GetRotationalVelocity ( const sensor_msgs::Joy &  rJoyMessage) [virtual]

Get the rotational velocity reading

Parameters:
rJoyMessagejoystick message
Returns:
axe/button reading

Implements JoystickConverter.

Definition at line 69 of file RmpXboxConverter.cpp.

double XboxWirelessConverter::GetTranslationalVelocity ( const sensor_msgs::Joy &  rJoyMessage) [virtual]

Get the translational velocity reading

Parameters:
rJoyMessagejoystick message
Returns:
axe/button reading

Implements JoystickConverter.

Definition at line 62 of file RmpXboxConverter.cpp.

void XboxWirelessConverter::IsValid ( const sensor_msgs::Joy &  rJoyMessage) [private]

Wether the joystick message is valid throw an exception otherwise

Exceptions:
std::logic_errorif rJoyMessage does not match the Xbox wireless joystick message specifications

Definition at line 102 of file RmpXboxConverter.cpp.


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


rmp_teleop
Author(s):
autogenerated on Wed Aug 26 2015 16:24:37