Classes | Namespaces | Enumerations | Variables
globals.h File Reference
#include <cstdio>
#include <mutex>
#include <unordered_map>
#include <ros/ros.h>
#include <sensor_msgs/Joy.h>
#include <std_msgs/Bool.h>
#include <pacmod_msgs/VehicleSpeedRpt.h>
Include dependency graph for globals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AS::Joystick::EnumHash
 

Namespaces

 AS
 
 AS::Joystick
 

Enumerations

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

Variables

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


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