#include <joystick_controller.h>
|
enum | ButtonStatus { PRESSED = 0
, RELEASED = 1
} |
|
enum | KeyboardMapping {
KEY_UP = 273
, KEY_DOWN = 274
, KEY_LEFT = 276
, KEY_RIGHT = 275
,
KEY_COUNTER_CLOCKWISE_ROTATION = 97
, KEY_CLOCKWISE_ROTATION = 100
, KEY_LINEAR_SPEED_INCREASE = 109
, KEY_LINEAR_SPEED_DECREASE = 110
,
KEY_ANGULAR_RATE_INCREASE = 120
, KEY_ANGULAR_RATE_DECREASE = 122
, KEY_PAUSE = 32
} |
|
Definition at line 46 of file joystick_controller.h.
◆ ButtonStatus
◆ KeyboardMapping
Enumerator |
---|
KEY_UP | |
KEY_DOWN | |
KEY_LEFT | |
KEY_RIGHT | |
KEY_COUNTER_CLOCKWISE_ROTATION | |
KEY_CLOCKWISE_ROTATION | |
KEY_LINEAR_SPEED_INCREASE | |
KEY_LINEAR_SPEED_DECREASE | |
KEY_ANGULAR_RATE_INCREASE | |
KEY_ANGULAR_RATE_DECREASE | |
KEY_PAUSE | |
Definition at line 50 of file joystick_controller.h.
◆ JoystickController()
JoystickController::JoystickController |
( |
| ) |
|
◆ ~JoystickController()
JoystickController::~JoystickController |
( |
| ) |
|
|
virtual |
◆ initROS()
void JoystickController::initROS |
( |
| ) |
|
◆ initThreads()
void JoystickController::initThreads |
( |
| ) |
|
◆ listenerThread()
void JoystickController::listenerThread |
( |
| ) |
|
◆ joystickCallback()
void JoystickController::joystickCallback |
( |
const sensor_msgs::JoyConstPtr & |
_msg | ) |
|
|
private |
◆ keyboardButtonReleasedCallback()
void JoystickController::keyboardButtonReleasedCallback |
( |
const keyboard::KeyConstPtr & |
_msg | ) |
|
|
private |
◆ keyboardButtonPressedCallback()
void JoystickController::keyboardButtonPressedCallback |
( |
const keyboard::KeyConstPtr & |
_msg | ) |
|
|
private |
◆ changeLinearMultiplier()
void JoystickController::changeLinearMultiplier |
( |
bool |
_increase | ) |
|
|
private |
◆ changeRotationalMultiplier()
void JoystickController::changeRotationalMultiplier |
( |
bool |
_increase | ) |
|
|
private |
◆ isControllerPaused()
bool JoystickController::isControllerPaused |
( |
| ) |
|
|
inline |
◆ publishTwistCommand()
void JoystickController::publishTwistCommand |
( |
| ) |
|
◆ readyToChangeLinearMultiplier()
bool JoystickController::readyToChangeLinearMultiplier |
( |
| ) |
|
|
private |
◆ readyToChangeRotationalMultiplier()
bool JoystickController::readyToChangeRotationalMultiplier |
( |
| ) |
|
|
private |
◆ keyboard_button_pressed_subscriber
ros::Subscriber JoystickController::keyboard_button_pressed_subscriber |
|
private |
◆ keyboard_button_released_subscriber
ros::Subscriber JoystickController::keyboard_button_released_subscriber |
|
private |
◆ FORWARD
◆ BACKWARD
◆ LEFT
◆ RIGHT
◆ CLOCKWISE_ROTATION
◆ COUNTER_CLOCKWISE_ROTATION
◆ LINEAR_SPEED_INCREASE
◆ LINEAR_SPEED_DECREASE
◆ ANGULAR_RATE_INCREASE
◆ ANGULAR_RATE_DECREASE
◆ PAUSE
◆ nodeHandle
std::unique_ptr<ros::NodeHandle> JoystickController::nodeHandle |
|
private |
◆ joystick_subscriber
ros::Subscriber JoystickController::joystick_subscriber |
|
private |
◆ twist_command_publisher
ros::Publisher JoystickController::twist_command_publisher |
|
private |
◆ linear_rate_multiplier
double JoystickController::linear_rate_multiplier = 0.2 |
|
private |
◆ linear_rate_multiplier_step
double JoystickController::linear_rate_multiplier_step = 0.1 |
|
private |
◆ linear_rate_multiplier_min
double JoystickController::linear_rate_multiplier_min = 0.2 |
|
private |
◆ linear_rate_multiplier_max
double JoystickController::linear_rate_multiplier_max = 0.6 |
|
private |
◆ rotational_rate_multiplier
double JoystickController::rotational_rate_multiplier = 0.2 |
|
private |
◆ rotational_rate_multiplier_step
double JoystickController::rotational_rate_multiplier_step = 0.2 |
|
private |
◆ rotational_rate_multiplier_max
double JoystickController::rotational_rate_multiplier_max = 2.6 |
|
private |
◆ rotational_rate_multiplier_min
double JoystickController::rotational_rate_multiplier_min = 0.2 |
|
private |
◆ twist_command_message
◆ pause
double JoystickController::pause = false |
|
private |
◆ minimum_seconds_between_limit_change
double JoystickController::minimum_seconds_between_limit_change = 0.1 |
|
private |
◆ time_of_last_linear_limit_change
double JoystickController::time_of_last_linear_limit_change = 0.0 |
|
private |
◆ time_of_last_rotational_limit_change
double JoystickController::time_of_last_rotational_limit_change = 0.0 |
|
private |
The documentation for this class was generated from the following files: