Functions | Variables
xbox_mapper Namespace Reference

Functions

def joy_cb (Joy)
 
def joystick_main ()
 
def limit_acc (fwd, trn)
 

Variables

int A_BUTTON = 0
 
 a_button_msg = Bool()
 
 a_button_pub = rospy.Publisher('/joystick/a_button', Bool, queue_size=1, latch=True)
 
 A_BUTTON_TOGGLE = rospy.get_param('~a_button_toggle', False)
 
 ADJ_THROTTLE = rospy.get_param('~adjustable_throttle', True)
 
 anonymous
 
int B_BUTTON = 1
 
 b_button_msg = Bool()
 
 b_button_pub = rospy.Publisher('/joystick/b_button', Bool, queue_size=1, latch=True)
 
 B_BUTTON_TOGGLE = rospy.get_param('~b_button_toggle', False)
 
int BACK_BUTTON = 6
 
 button_msg = String()
 
 cmd = TwistStamped()
 
 data
 
float DEADBAND = 0.2
 
bool DPAD_ACTIVE = False
 
int DPAD_H_AXES = 6
 
int DPAD_V_AXES = 7
 
 DRIVE_INCREMENTS = rospy.get_param('~drive_increment', 20.0)
 
 DRIVE_THROTTLE = rospy.get_param('~default_drive_throttle', 0.15)
 
 driver = rospy.get_param('/xbox_mapper_node/driver', 'xboxdrv')
 
 FLIPPER_INCREMENTS = rospy.get_param('~drive_increment', 20.0)
 
 FLIPPER_THROTTLE = rospy.get_param('~default_flipper_throttle', 0.6)
 
float FWD_ACC_LIM = 0.2
 
int L_STICK_BUTTON = 9
 
int L_STICK_H_AXES = 0
 
int L_STICK_V_AXES = 1
 
int L_TRIG_AXES = 5
 
 last_a_button = time.time()
 
 last_b_button = time.time()
 
 last_joycb_device_check = time.time()
 
 last_x_button = time.time()
 
 last_y_button = time.time()
 
int LB_BUTTON = 4
 
 MAX_VEL_FLIPPER = rospy.get_param('~max_vel_flipper', 1.4)
 
 MAX_VEL_FWD = rospy.get_param('~max_vel_drive', 2.6)
 
 MAX_VEL_TURN = rospy.get_param('~max_vel_turn', 9.0)
 
float MIN_TOGGLE_DUR = 0.5
 
int POWER_BUTTON = 8
 
int PREV_CMD_TIME = 0
 
int prev_fwd = 0
 
int PREV_SEQ_NUM = 0
 
int prev_trn = 0
 
 pub = rospy.Publisher('/cmd_vel/joystick', TwistStamped, queue_size=3)
 
 pub_cancel_move_base = rospy.Publisher('/move_base/cancel', GoalID, queue_size=10)
 
 pub_delay = rospy.Publisher('/joystick/delay', Float32, queue_size=3)
 
int R_STICK_BUTTON = 10
 
int R_STICK_H_AXES = 2
 
int R_STICK_V_AXES = 3
 
int R_TRIG_AXES = 4
 
int RB_BUTTON = 5
 
int seq = 0
 
int START_BUTTON = 7
 
float TRN_ACC_LIM = 0.4
 
 wired_or_wireless = rospy.get_param('/xbox_mapper_node/wired_or_wireless', 'wireless')
 
int X_BUTTON = 2
 
 x_button_msg = Bool()
 
 x_button_pub = rospy.Publisher('/joystick/x_button', Bool, queue_size=1, latch=True)
 
 X_BUTTON_TOGGLE = rospy.get_param('~x_button_toggle', False)
 
int Y_BUTTON = 3
 
 y_button_msg = Bool()
 
 y_button_pub = rospy.Publisher('/joystick/y_button', Bool, queue_size=1, latch=True)
 
 Y_BUTTON_TOGGLE = rospy.get_param('~y_button_toggle', False)
 

Function Documentation

def xbox_mapper.joy_cb (   Joy)

Definition at line 149 of file xbox_mapper.py.

def xbox_mapper.joystick_main ( )

Definition at line 326 of file xbox_mapper.py.

def xbox_mapper.limit_acc (   fwd,
  trn 
)

Definition at line 127 of file xbox_mapper.py.

Variable Documentation

int xbox_mapper.A_BUTTON = 0

Definition at line 72 of file xbox_mapper.py.

xbox_mapper.a_button_msg = Bool()

Definition at line 108 of file xbox_mapper.py.

xbox_mapper.a_button_pub = rospy.Publisher('/joystick/a_button', Bool, queue_size=1, latch=True)

Definition at line 119 of file xbox_mapper.py.

xbox_mapper.A_BUTTON_TOGGLE = rospy.get_param('~a_button_toggle', False)

Definition at line 96 of file xbox_mapper.py.

xbox_mapper.ADJ_THROTTLE = rospy.get_param('~adjustable_throttle', True)

Definition at line 95 of file xbox_mapper.py.

xbox_mapper.anonymous

Definition at line 25 of file xbox_mapper.py.

int xbox_mapper.B_BUTTON = 1

Definition at line 73 of file xbox_mapper.py.

xbox_mapper.b_button_msg = Bool()

Definition at line 110 of file xbox_mapper.py.

xbox_mapper.b_button_pub = rospy.Publisher('/joystick/b_button', Bool, queue_size=1, latch=True)

Definition at line 120 of file xbox_mapper.py.

xbox_mapper.B_BUTTON_TOGGLE = rospy.get_param('~b_button_toggle', False)

Definition at line 97 of file xbox_mapper.py.

int xbox_mapper.BACK_BUTTON = 6

Definition at line 78 of file xbox_mapper.py.

xbox_mapper.button_msg = String()

Definition at line 34 of file xbox_mapper.py.

xbox_mapper.cmd = TwistStamped()

Definition at line 27 of file xbox_mapper.py.

xbox_mapper.data

Definition at line 109 of file xbox_mapper.py.

float xbox_mapper.DEADBAND = 0.2

Definition at line 103 of file xbox_mapper.py.

bool xbox_mapper.DPAD_ACTIVE = False

Definition at line 106 of file xbox_mapper.py.

int xbox_mapper.DPAD_H_AXES = 6

Definition at line 69 of file xbox_mapper.py.

int xbox_mapper.DPAD_V_AXES = 7

Definition at line 70 of file xbox_mapper.py.

xbox_mapper.DRIVE_INCREMENTS = rospy.get_param('~drive_increment', 20.0)

Definition at line 101 of file xbox_mapper.py.

xbox_mapper.DRIVE_THROTTLE = rospy.get_param('~default_drive_throttle', 0.15)

Definition at line 93 of file xbox_mapper.py.

xbox_mapper.driver = rospy.get_param('/xbox_mapper_node/driver', 'xboxdrv')

Definition at line 40 of file xbox_mapper.py.

xbox_mapper.FLIPPER_INCREMENTS = rospy.get_param('~drive_increment', 20.0)

Definition at line 102 of file xbox_mapper.py.

xbox_mapper.FLIPPER_THROTTLE = rospy.get_param('~default_flipper_throttle', 0.6)

Definition at line 94 of file xbox_mapper.py.

float xbox_mapper.FWD_ACC_LIM = 0.2

Definition at line 104 of file xbox_mapper.py.

int xbox_mapper.L_STICK_BUTTON = 9

Definition at line 81 of file xbox_mapper.py.

int xbox_mapper.L_STICK_H_AXES = 0

Definition at line 63 of file xbox_mapper.py.

int xbox_mapper.L_STICK_V_AXES = 1

Definition at line 64 of file xbox_mapper.py.

int xbox_mapper.L_TRIG_AXES = 5

Definition at line 65 of file xbox_mapper.py.

xbox_mapper.last_a_button = time.time()

Definition at line 29 of file xbox_mapper.py.

xbox_mapper.last_b_button = time.time()

Definition at line 30 of file xbox_mapper.py.

xbox_mapper.last_joycb_device_check = time.time()

Definition at line 33 of file xbox_mapper.py.

xbox_mapper.last_x_button = time.time()

Definition at line 31 of file xbox_mapper.py.

xbox_mapper.last_y_button = time.time()

Definition at line 32 of file xbox_mapper.py.

int xbox_mapper.LB_BUTTON = 4

Definition at line 76 of file xbox_mapper.py.

xbox_mapper.MAX_VEL_FLIPPER = rospy.get_param('~max_vel_flipper', 1.4)

Definition at line 92 of file xbox_mapper.py.

xbox_mapper.MAX_VEL_FWD = rospy.get_param('~max_vel_drive', 2.6)

Definition at line 90 of file xbox_mapper.py.

xbox_mapper.MAX_VEL_TURN = rospy.get_param('~max_vel_turn', 9.0)

Definition at line 91 of file xbox_mapper.py.

float xbox_mapper.MIN_TOGGLE_DUR = 0.5

Definition at line 100 of file xbox_mapper.py.

int xbox_mapper.POWER_BUTTON = 8

Definition at line 80 of file xbox_mapper.py.

int xbox_mapper.PREV_CMD_TIME = 0

Definition at line 87 of file xbox_mapper.py.

int xbox_mapper.prev_fwd = 0

Definition at line 84 of file xbox_mapper.py.

int xbox_mapper.PREV_SEQ_NUM = 0

Definition at line 88 of file xbox_mapper.py.

int xbox_mapper.prev_trn = 0

Definition at line 85 of file xbox_mapper.py.

xbox_mapper.pub = rospy.Publisher('/cmd_vel/joystick', TwistStamped, queue_size=3)

Definition at line 118 of file xbox_mapper.py.

xbox_mapper.pub_cancel_move_base = rospy.Publisher('/move_base/cancel', GoalID, queue_size=10)

Definition at line 124 of file xbox_mapper.py.

xbox_mapper.pub_delay = rospy.Publisher('/joystick/delay', Float32, queue_size=3)

Definition at line 123 of file xbox_mapper.py.

int xbox_mapper.R_STICK_BUTTON = 10

Definition at line 82 of file xbox_mapper.py.

int xbox_mapper.R_STICK_H_AXES = 2

Definition at line 66 of file xbox_mapper.py.

int xbox_mapper.R_STICK_V_AXES = 3

Definition at line 67 of file xbox_mapper.py.

int xbox_mapper.R_TRIG_AXES = 4

Definition at line 68 of file xbox_mapper.py.

int xbox_mapper.RB_BUTTON = 5

Definition at line 77 of file xbox_mapper.py.

int xbox_mapper.seq = 0

Definition at line 28 of file xbox_mapper.py.

int xbox_mapper.START_BUTTON = 7

Definition at line 79 of file xbox_mapper.py.

float xbox_mapper.TRN_ACC_LIM = 0.4

Definition at line 105 of file xbox_mapper.py.

xbox_mapper.wired_or_wireless = rospy.get_param('/xbox_mapper_node/wired_or_wireless', 'wireless')

Definition at line 41 of file xbox_mapper.py.

int xbox_mapper.X_BUTTON = 2

Definition at line 74 of file xbox_mapper.py.

xbox_mapper.x_button_msg = Bool()

Definition at line 112 of file xbox_mapper.py.

xbox_mapper.x_button_pub = rospy.Publisher('/joystick/x_button', Bool, queue_size=1, latch=True)

Definition at line 121 of file xbox_mapper.py.

xbox_mapper.X_BUTTON_TOGGLE = rospy.get_param('~x_button_toggle', False)

Definition at line 98 of file xbox_mapper.py.

int xbox_mapper.Y_BUTTON = 3

Definition at line 75 of file xbox_mapper.py.

xbox_mapper.y_button_msg = Bool()

Definition at line 114 of file xbox_mapper.py.

xbox_mapper.y_button_pub = rospy.Publisher('/joystick/y_button', Bool, queue_size=1, latch=True)

Definition at line 122 of file xbox_mapper.py.

xbox_mapper.Y_BUTTON_TOGGLE = rospy.get_param('~y_button_toggle', False)

Definition at line 99 of file xbox_mapper.py.



rr_control_input_manager
Author(s):
autogenerated on Thu Sep 10 2020 03:38:35