GT RoboCup SSL
Soccer software, robot firmware
|
Joystick class for using a SpaceNavigator 3d mouse for controlling the robots. More...
Public Member Functions | |
bool | valid () const override |
Returns whether or not we can connect to the spacenav driver. More... | |
void | reset () override |
Resets any stored values. More... | |
void | update () override |
Instructs the joystick to updates its values. | |
JoystickControlValues | getJoystickControlValues () override |
Returns the control values from this joystick. More... | |
Public Member Functions inherited from Joystick | |
int | getRobotId () |
void | setRobotId (int rId) |
Static Public Member Functions | |
static void | createConfiguration (Configuration *cfg) |
Static Public Member Functions inherited from Joystick | |
static void | createConfiguration (Configuration *cfg) |
Static Public Attributes | |
static ConfigDouble * | DribblerPositiveDeadzone |
static ConfigDouble * | DribblerNegativeDeadzone |
Static Public Attributes inherited from Joystick | |
static ConfigDouble * | JoystickRotationMaxSpeed |
static ConfigDouble * | JoystickRotationMaxDampedSpeed |
static ConfigDouble * | JoystickTranslationMaxSpeed |
static ConfigDouble * | JoystickTranslationMaxDampedSpeed |
Protected Member Functions | |
void | open () |
void | close () |
Protected Member Functions inherited from Joystick | |
QMutex & | mutex () |
Protected Attributes | |
bool | _daemonConnected |
bool | _daemonTried |
JoystickControlValues | _controlValues |
RJ::Time | _lastDribbleTime |
Protected Attributes inherited from Joystick | |
int | robotId |
Joystick class for using a SpaceNavigator 3d mouse for controlling the robots.
Control mappings:
Note: usage of this joystick requires the spacenavd userspace driver daemon to be running.
|
overridevirtual |
Returns the control values from this joystick.
Note: The controls should be scaled between 0 and 1. The processor handles scaling to real world values.
Implements Joystick.
|
overridevirtual |
Resets any stored values.
Joysticks are reset whenever the robot they're controlling is switched
Implements Joystick.
|
overridevirtual |
Returns whether or not we can connect to the spacenav driver.
Unfortunately there is no api available for detecting whether or not there is a SpaceNavigator connected - we can only tell whether or not we can connect to the daemon. This is less than ideal, but it's what we've got.
Implements Joystick.