Classes | Enumerations | Functions | Variables
AS::Joystick Namespace Reference

Classes

struct  EnumHash
 
class  PublishControl
 
class  PublishControlBoardRev2
 
class  PublishControlBoardRev3
 
class  PublishControlFactory
 

Enumerations

enum  GamepadType {
  LOGITECH_F310, HRI_SAFE_REMOTE, LOGITECH_G29, NINTENDO_SWITCH_WIRED_PLUS,
  XBOX_ONE
}
 
enum  JoyAxis {
  LEFT_STICK_UD, LEFT_STICK_LR, RIGHT_STICK_UD, RIGHT_STICK_LR,
  DPAD_UD, DPAD_LR, LEFT_TRIGGER_AXIS, RIGHT_TRIGGER_AXIS
}
 
enum  JoyButton {
  TOP_BTN, LEFT_BTN, BOTTOM_BTN, RIGHT_BTN,
  LEFT_BUMPER, RIGHT_BUMPER, BACK_SELECT_MINUS, START_PLUS,
  LEFT_TRIGGER_BTN, RIGHT_TRIGGER_BTN, LEFT_STICK_PUSH, RIGHT_STICK_PUSH
}
 
enum  ShiftState {
  SHIFT_PARK = 0, SHIFT_REVERSE = 1, SHIFT_NEUTRAL = 2, SHIFT_LOW = 3,
  SHIFT_HIGH = 4
}
 
enum  TurnSignalState { SIGNAL_RIGHT, SIGNAL_OFF, SIGNAL_LEFT, SIGNAL_HAZARD }
 
enum  VehicleType {
  POLARIS_GEM, POLARIS_RANGER, LEXUS_RX_450H, INTERNATIONAL_PROSTAR,
  VEHICLE_4, VEHICLE_5, VEHICLE_6
}
 

Functions

bool check_controller_type (ros::NodeHandle *nodeH)
 
bool check_scale_values (ros::NodeHandle *nodeH)
 
bool check_steering_stick_left_right (ros::NodeHandle *)
 
bool check_vehicle_type (ros::NodeHandle *nodeH)
 
bool run_startup_checks_error (ros::NodeHandle *nodeH)
 

Variables

static const float ACCEL_OFFSET = 0.21
 
static const float ACCEL_SCALE_FACTOR = 0.6
 
static const float AXES_MAX = 1.0
 
static const float AXES_MIN = -1.0
 
static const uint16_t BUTTON_DOWN = 1
 
static std::mutex enable_mutex
 
static const uint16_t HEADLIGHT_STATE_START_VALUE = 0
 
static const uint16_t INVALID = -1
 
static const float MAX_ROT_RAD_DEFAULT = 10.9956
 
static const float MAX_ROT_RAD_VEHICLE2 = 6.5
 
static const float MAX_ROT_RAD_VEHICLE4 = 8.5
 
static const float MAX_ROT_RAD_VEHICLE5 = 8.1
 
static const float MAX_ROT_RAD_VEHICLE6 = 8.5
 
static const uint16_t NUM_HEADLIGHT_STATES = 3
 
static const uint16_t NUM_WIPER_STATES = 8
 
static const float ROT_RANGE_SCALER_LB = 0.05
 
static std::mutex shift_mutex
 
static std::mutex speed_mutex
 
static std::mutex state_change_mutex
 
static const float STEER_OFFSET = 1.0
 
static const float STEER_SCALE_FACTOR = 1.5
 
static std::mutex turn_mutex
 
static const uint16_t WIPER_STATE_START_VALUE = 0
 

Enumeration Type Documentation

Enumerator
LOGITECH_F310 
HRI_SAFE_REMOTE 
LOGITECH_G29 
NINTENDO_SWITCH_WIRED_PLUS 
XBOX_ONE 

Definition at line 43 of file globals.h.

Enumerator
LEFT_STICK_UD 
LEFT_STICK_LR 
RIGHT_STICK_UD 
RIGHT_STICK_LR 
DPAD_UD 
DPAD_LR 
LEFT_TRIGGER_AXIS 
RIGHT_TRIGGER_AXIS 

Definition at line 63 of file globals.h.

Enumerator
TOP_BTN 
LEFT_BTN 
BOTTOM_BTN 
RIGHT_BTN 
LEFT_BUMPER 
RIGHT_BUMPER 
BACK_SELECT_MINUS 
START_PLUS 
LEFT_TRIGGER_BTN 
RIGHT_TRIGGER_BTN 
LEFT_STICK_PUSH 
RIGHT_STICK_PUSH 

Definition at line 75 of file globals.h.

Enumerator
SHIFT_PARK 
SHIFT_REVERSE 
SHIFT_NEUTRAL 
SHIFT_LOW 
SHIFT_HIGH 

Definition at line 26 of file globals.h.

Enumerator
SIGNAL_RIGHT 
SIGNAL_OFF 
SIGNAL_LEFT 
SIGNAL_HAZARD 

Definition at line 35 of file globals.h.

Enumerator
POLARIS_GEM 
POLARIS_RANGER 
LEXUS_RX_450H 
INTERNATIONAL_PROSTAR 
VEHICLE_4 
VEHICLE_5 
VEHICLE_6 

Definition at line 52 of file globals.h.

Function Documentation

bool AS::Joystick::check_controller_type ( ros::NodeHandle nodeH)

Definition at line 96 of file startup_checks.cpp.

bool AS::Joystick::check_scale_values ( ros::NodeHandle nodeH)

Definition at line 216 of file startup_checks.cpp.

bool AS::Joystick::check_steering_stick_left_right ( ros::NodeHandle nodeH)

Definition at line 14 of file startup_checks.cpp.

bool AS::Joystick::check_vehicle_type ( ros::NodeHandle nodeH)

Definition at line 46 of file startup_checks.cpp.

bool AS::Joystick::run_startup_checks_error ( ros::NodeHandle nodeH)

Definition at line 289 of file startup_checks.cpp.

Variable Documentation

const float AS::Joystick::ACCEL_OFFSET = 0.21
static

Definition at line 103 of file globals.h.

const float AS::Joystick::ACCEL_SCALE_FACTOR = 0.6
static

Definition at line 102 of file globals.h.

const float AS::Joystick::AXES_MAX = 1.0
static

Definition at line 112 of file globals.h.

const float AS::Joystick::AXES_MIN = -1.0
static

Definition at line 111 of file globals.h.

const uint16_t AS::Joystick::BUTTON_DOWN = 1
static

Definition at line 118 of file globals.h.

std::mutex AS::Joystick::enable_mutex
static

Definition at line 121 of file globals.h.

const uint16_t AS::Joystick::HEADLIGHT_STATE_START_VALUE = 0
static

Definition at line 116 of file globals.h.

const uint16_t AS::Joystick::INVALID = -1
static

Definition at line 117 of file globals.h.

const float AS::Joystick::MAX_ROT_RAD_DEFAULT = 10.9956
static

Definition at line 110 of file globals.h.

const float AS::Joystick::MAX_ROT_RAD_VEHICLE2 = 6.5
static

Definition at line 106 of file globals.h.

const float AS::Joystick::MAX_ROT_RAD_VEHICLE4 = 8.5
static

Definition at line 107 of file globals.h.

const float AS::Joystick::MAX_ROT_RAD_VEHICLE5 = 8.1
static

Definition at line 108 of file globals.h.

const float AS::Joystick::MAX_ROT_RAD_VEHICLE6 = 8.5
static

Definition at line 109 of file globals.h.

const uint16_t AS::Joystick::NUM_HEADLIGHT_STATES = 3
static

Definition at line 115 of file globals.h.

const uint16_t AS::Joystick::NUM_WIPER_STATES = 8
static

Definition at line 113 of file globals.h.

const float AS::Joystick::ROT_RANGE_SCALER_LB = 0.05
static

Definition at line 101 of file globals.h.

std::mutex AS::Joystick::shift_mutex
static

Definition at line 124 of file globals.h.

std::mutex AS::Joystick::speed_mutex
static

Definition at line 122 of file globals.h.

std::mutex AS::Joystick::state_change_mutex
static

Definition at line 123 of file globals.h.

const float AS::Joystick::STEER_OFFSET = 1.0
static

Definition at line 105 of file globals.h.

const float AS::Joystick::STEER_SCALE_FACTOR = 1.5
static

Definition at line 104 of file globals.h.

std::mutex AS::Joystick::turn_mutex
static

Definition at line 125 of file globals.h.

const uint16_t AS::Joystick::WIPER_STATE_START_VALUE = 0
static

Definition at line 114 of file globals.h.



pacmod_game_control
Author(s): Joe Driscoll
autogenerated on Mon Jun 10 2019 14:09:15