This class simplifies the implementation of a interface between xbox and PTU.
More...
#include <class_xbox_ptu_teleop.h>
|
enum | {
MAN_AUTO_STEER =0,
MAN_AUTO_BRAKE =1,
MAN_AUTO_THROTTLE =2,
MAN_AUTO_CLUTCH =3,
_B4 =4,
MAN_AUTO_IGNITION =5,
START =6,
E_STOP =7,
_B8 =8,
_B9 =9,
HIGH_LIGHTS =10,
WARNING_LIGHTS =11,
MEDIUM_LIGHTS =12,
_B13 =13,
STOP =14
} |
| enumerator to describe all digital buttons More...
|
|
enum | {
STEERING =0,
_A1 =1,
BRAKE =2,
_A3 =3,
CLUTCH =4,
THROTTLE =5
} |
| enumerator to describe all analog buttons More...
|
|
enum | {
MAN_AUTO_STEER =0,
MAN_AUTO_BRAKE =1,
MAN_AUTO_THROTTLE =2,
MAN_AUTO_CLUTCH =3,
_B4 =4,
MAN_AUTO_IGNITION =5,
START =6,
E_STOP =7,
_B8 =8,
_B9 =9,
HIGH_LIGHTS =10,
WARNING_LIGHTS =11,
MEDIUM_LIGHTS =12,
_B13 =13,
STOP =14
} |
| digital buttons at xbox and their function More...
|
|
enum | {
STEERING =0,
_A1 =1,
BRAKE =2,
_A3 =3,
CLUTCH =4,
THROTTLE =5
} |
| analog buttons and their functionalities More...
|
|
|
void | XboxCallback (const sensor_msgs::Joy::ConstPtr &joy) |
| callback that is called when a xbox msg is received More...
|
|
void | XboxCallback (const sensor_msgs::Joy::ConstPtr &joy) |
| constructor More...
|
|
This class simplifies the implementation of a interface between xbox and PTU.
Definition at line 49 of file class_xbox_ptu_teleop.h.
enumerator to describe all digital buttons
Enumerator |
---|
MAN_AUTO_STEER |
|
MAN_AUTO_BRAKE |
|
MAN_AUTO_THROTTLE |
|
MAN_AUTO_CLUTCH |
|
_B4 |
|
MAN_AUTO_IGNITION |
|
START |
|
E_STOP |
|
_B8 |
|
_B9 |
|
HIGH_LIGHTS |
|
WARNING_LIGHTS |
|
MEDIUM_LIGHTS |
|
_B13 |
|
STOP |
|
Definition at line 77 of file class_xbox_ptu_teleop.h.
enumerator to describe all analog buttons
Enumerator |
---|
STEERING |
|
_A1 |
|
BRAKE |
|
_A3 |
|
CLUTCH |
|
THROTTLE |
|
Definition at line 81 of file class_xbox_ptu_teleop.h.
digital buttons at xbox and their function
Enumerator |
---|
MAN_AUTO_STEER |
|
MAN_AUTO_BRAKE |
|
MAN_AUTO_THROTTLE |
|
MAN_AUTO_CLUTCH |
|
_B4 |
|
MAN_AUTO_IGNITION |
|
START |
|
E_STOP |
|
_B8 |
|
_B9 |
|
HIGH_LIGHTS |
|
WARNING_LIGHTS |
|
MEDIUM_LIGHTS |
|
_B13 |
|
STOP |
|
Definition at line 83 of file class_xbox_teleop.h.
analog buttons and their functionalities
Enumerator |
---|
STEERING |
|
_A1 |
|
BRAKE |
|
_A3 |
|
CLUTCH |
|
THROTTLE |
|
Definition at line 87 of file class_xbox_teleop.h.
XboxTeleopAtlascar::XboxTeleopAtlascar |
( |
int |
num_but, |
|
|
int |
num_axis |
|
) |
| |
constructor
function to initialize the XboxTeleop for the AtlasCAR robot
- Parameters
-
num_but | - number of digital buttons in the gamepad |
num_axis | - number of analog buttons or axis |
num_but | - specifies the number of digital buttons that the xbox gamepad have |
num_axis | - specifies the number of analog buttons that the xbox gamepad have |
Definition at line 42 of file class_xbox_ptu_teleop.cpp.
XboxTeleopAtlascar::~XboxTeleopAtlascar |
( |
| ) |
|
XboxTeleopAtlascar::XboxTeleopAtlascar |
( |
int |
num_but, |
|
|
int |
num_axis |
|
) |
| |
constructor
- Parameters
-
num_but | - number of digital buttons in the gamepad |
num_axis | - number of analog buttons or axis |
XboxTeleopAtlascar::~XboxTeleopAtlascar |
( |
| ) |
|
void XboxTeleopAtlascar::XboxCallback |
( |
const sensor_msgs::Joy::ConstPtr & |
joy | ) |
|
|
private |
callback that is called when a xbox msg is received
private method associated to the callback when a new message from the gamepad is received, and construct the message that will be sent to atlascar_base
- Parameters
-
joy | - struct with gamepad message |
joy | - is the message received from the gamepad |
Definition at line 94 of file class_xbox_ptu_teleop.cpp.
void XboxTeleopAtlascar::XboxCallback |
( |
const sensor_msgs::Joy::ConstPtr & |
joy | ) |
|
|
private |
ros::Publisher XboxTeleopAtlascar::atlascar_cmd_ |
|
private |
double XboxTeleopAtlascar::b_brake |
|
private |
float XboxTeleopAtlascar::b_brake |
|
private |
double XboxTeleopAtlascar::b_left_ang |
|
private |
float XboxTeleopAtlascar::b_left_ang |
|
private |
double XboxTeleopAtlascar::b_right_ang |
|
private |
float XboxTeleopAtlascar::b_right_ang |
|
private |
double XboxTeleopAtlascar::b_speed |
|
private |
float XboxTeleopAtlascar::b_speed |
|
private |
double XboxTeleopAtlascar::brake_max |
|
private |
double XboxTeleopAtlascar::brake_min |
|
private |
vector< int > XboxTeleopAtlascar::button |
|
private |
double XboxTeleopAtlascar::clutch_max |
|
private |
double XboxTeleopAtlascar::clutch_min |
|
private |
atlascar_base::AtlascarCommand XboxTeleopAtlascar::command |
|
private |
ros::Subscriber XboxTeleopAtlascar::joy_sub_ |
|
private |
double XboxTeleopAtlascar::m_brake |
|
private |
float XboxTeleopAtlascar::m_brake |
|
private |
double XboxTeleopAtlascar::m_left_ang |
|
private |
float XboxTeleopAtlascar::m_left_ang |
|
private |
double XboxTeleopAtlascar::m_right_ang |
|
private |
float XboxTeleopAtlascar::m_right_ang |
|
private |
double XboxTeleopAtlascar::m_speed |
|
private |
float XboxTeleopAtlascar::m_speed |
|
private |
ros::NodeHandle XboxTeleopAtlascar::nh_teleop |
|
private |
int XboxTeleopAtlascar::num_axes |
|
private |
int XboxTeleopAtlascar::num_buttons |
|
private |
variable with number of digital buttons and analog axis
specifies the number of digital buttons and analog buttons in the gamepad
Definition at line 132 of file class_xbox_ptu_teleop.h.
ros::Publisher XboxTeleopAtlascar::ptu_pub |
|
private |
double XboxTeleopAtlascar::speed_max |
|
private |
float XboxTeleopAtlascar::speed_max |
|
private |
double XboxTeleopAtlascar::speed_min |
|
private |
float XboxTeleopAtlascar::speed_min |
|
private |
float XboxTeleopAtlascar::steering_left_ang |
|
private |
double XboxTeleopAtlascar::steering_left_ang |
|
private |
double XboxTeleopAtlascar::steering_max |
|
private |
double XboxTeleopAtlascar::steering_min |
|
private |
double XboxTeleopAtlascar::steering_right_ang |
|
private |
float XboxTeleopAtlascar::steering_right_ang |
|
private |
double XboxTeleopAtlascar::throttle_max |
|
private |
double XboxTeleopAtlascar::throttle_min |
|
private |
The documentation for this class was generated from the following files: