Skip to content

Commit

Permalink
Add xbox controller parameters for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
civerachb-cpr committed Dec 17, 2024
1 parent 5eeabe6 commit 346651a
Show file tree
Hide file tree
Showing 10 changed files with 669 additions and 0 deletions.
66 changes: 66 additions & 0 deletions clearpath_control/config/a200/teleop_xbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Layout for Microsoft Xbox controllers
#
# (LB) (RB)
# (LT) (RT)
# _=====_ _=====_
# / \ / \
# / ---------------------------- \
# / ___ (Y) \
# / / L \ \
# / \___/ (X) (B) \
# | # = |
# | (A) |
# | _ ___ |
# | __| |__ / R \ |
# | |__ __| \___/ |
# | |_| |
# | /------------------------\ |
# | / \ |
# | / \ |
# \ / \ /
# \________/ \________/
#
# BUTTON Value
# LB 6
# RB 7
# A 0
# B 1
# X 3
# Y 4
# L (click) 13
# R (click) 14
# menu (=) 11
# window (#) unmapped

#
# AXIS Value
# Left Horiz. 0
# Left Vert. 1
# Right Horiz. 2
# Right Vert. 3
# LT 5
# RT 4 # yes, really, RT is 4, not 5
# D-pad Horiz. 6
# D-pad Vert. 7

teleop_twist_joy_node:
ros__parameters:
publish_stamped_twist: True
use_sim_time: False
axis_linear.x: 1
scale_linear.x: 0.4
scale_linear_turbo.x: 1.0
axis_angular.yaw: 0
scale_angular.yaw: 0.6
scale_angular_turbo.yaw: 1.2
enable_button: 6
enable_turbo_button: 7
joy_node:
ros__parameters:
use_sim_time: False
deadzone: 0.1
autorepeat_rate: 20.0
dev: /dev/input/xbox
bt_cutoff_node:
ros__parameters:
quality_cutoff: 20
66 changes: 66 additions & 0 deletions clearpath_control/config/a300/teleop_xbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Layout for Microsoft Xbox controllers
#
# (LB) (RB)
# (LT) (RT)
# _=====_ _=====_
# / \ / \
# / ---------------------------- \
# / ___ (Y) \
# / / L \ \
# / \___/ (X) (B) \
# | # = |
# | (A) |
# | _ ___ |
# | __| |__ / R \ |
# | |__ __| \___/ |
# | |_| |
# | /------------------------\ |
# | / \ |
# | / \ |
# \ / \ /
# \________/ \________/
#
# BUTTON Value
# LB 6
# RB 7
# A 0
# B 1
# X 3
# Y 4
# L (click) 13
# R (click) 14
# menu (=) 11
# window (#) unmapped

#
# AXIS Value
# Left Horiz. 0
# Left Vert. 1
# Right Horiz. 2
# Right Vert. 3
# LT 5
# RT 4 # yes, really, RT is 4, not 5
# D-pad Horiz. 6
# D-pad Vert. 7

teleop_twist_joy_node:
ros__parameters:
publish_stamped_twist: True
use_sim_time: False
axis_linear.x: 1
scale_linear.x: 0.3
scale_linear_turbo.x: 2.0
axis_angular.yaw: 0
scale_angular.yaw: 1.0
scale_angular_turbo.yaw: 2.0
enable_button: 5
enable_turbo_button: 4
joy_node:
ros__parameters:
use_sim_time: False
deadzone: 0.1
autorepeat_rate: 20.0
dev: /dev/input/xbox
bt_cutoff_node:
ros__parameters:
quality_cutoff: 20
66 changes: 66 additions & 0 deletions clearpath_control/config/dd100/teleop_xbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Layout for Microsoft Xbox controllers
#
# (LB) (RB)
# (LT) (RT)
# _=====_ _=====_
# / \ / \
# / ---------------------------- \
# / ___ (Y) \
# / / L \ \
# / \___/ (X) (B) \
# | # = |
# | (A) |
# | _ ___ |
# | __| |__ / R \ |
# | |__ __| \___/ |
# | |_| |
# | /------------------------\ |
# | / \ |
# | / \ |
# \ / \ /
# \________/ \________/
#
# BUTTON Value
# LB 6
# RB 7
# A 0
# B 1
# X 3
# Y 4
# L (click) 13
# R (click) 14
# menu (=) 11
# window (#) unmapped

#
# AXIS Value
# Left Horiz. 0
# Left Vert. 1
# Right Horiz. 2
# Right Vert. 3
# LT 5
# RT 4 # yes, really, RT is 4, not 5
# D-pad Horiz. 6
# D-pad Vert. 7

teleop_twist_joy_node:
ros__parameters:
publish_stamped_twist: True
use_sim_time: False
axis_linear.x: 1
scale_linear.x: 0.4
scale_linear_turbo.x: 1.0
axis_angular.yaw: 0
scale_angular.yaw: 0.6
scale_angular_turbo.yaw: 1.0
enable_button: 6
enable_turbo_button: 7
joy_node:
ros__parameters:
use_sim_time: False
deadzone: 0.1
autorepeat_rate: 20.0
dev: /dev/input/xbox
bt_cutoff_node:
ros__parameters:
quality_cutoff: 20
66 changes: 66 additions & 0 deletions clearpath_control/config/dd150/teleop_xbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Layout for Microsoft Xbox controllers
#
# (LB) (RB)
# (LT) (RT)
# _=====_ _=====_
# / \ / \
# / ---------------------------- \
# / ___ (Y) \
# / / L \ \
# / \___/ (X) (B) \
# | # = |
# | (A) |
# | _ ___ |
# | __| |__ / R \ |
# | |__ __| \___/ |
# | |_| |
# | /------------------------\ |
# | / \ |
# | / \ |
# \ / \ /
# \________/ \________/
#
# BUTTON Value
# LB 6
# RB 7
# A 0
# B 1
# X 3
# Y 4
# L (click) 13
# R (click) 14
# menu (=) 11
# window (#) unmapped

#
# AXIS Value
# Left Horiz. 0
# Left Vert. 1
# Right Horiz. 2
# Right Vert. 3
# LT 5
# RT 4 # yes, really, RT is 4, not 5
# D-pad Horiz. 6
# D-pad Vert. 7

teleop_twist_joy_node:
ros__parameters:
publish_stamped_twist: True
use_sim_time: False
axis_linear.x: 1
scale_linear.x: 0.4
scale_linear_turbo.x: 1.0
axis_angular.yaw: 0
scale_angular.yaw: 0.6
scale_angular_turbo.yaw: 1.0
enable_button: 6
enable_turbo_button: 7
joy_node:
ros__parameters:
use_sim_time: False
deadzone: 0.1
autorepeat_rate: 20.0
dev: /dev/input/xbox
bt_cutoff_node:
ros__parameters:
quality_cutoff: 20
69 changes: 69 additions & 0 deletions clearpath_control/config/do100/teleop_xbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Layout for Microsoft Xbox controllers
#
# (LB) (RB)
# (LT) (RT)
# _=====_ _=====_
# / \ / \
# / ---------------------------- \
# / ___ (Y) \
# / / L \ \
# / \___/ (X) (B) \
# | # = |
# | (A) |
# | _ ___ |
# | __| |__ / R \ |
# | |__ __| \___/ |
# | |_| |
# | /------------------------\ |
# | / \ |
# | / \ |
# \ / \ /
# \________/ \________/
#
# BUTTON Value
# LB 6
# RB 7
# A 0
# B 1
# X 3
# Y 4
# L (click) 13
# R (click) 14
# menu (=) 11
# window (#) unmapped

#
# AXIS Value
# Left Horiz. 0
# Left Vert. 1
# Right Horiz. 2
# Right Vert. 3
# LT 5
# RT 4 # yes, really, RT is 4, not 5
# D-pad Horiz. 6
# D-pad Vert. 7

teleop_twist_joy_node:
ros__parameters:
publish_stamped_twist: True
use_sim_time: False
axis_linear.x: 1
axis_linear.y: 0
scale_linear.x: 0.4
scale_linear.y: 0.4
scale_linear_turbo.x: 1.0
scale_linear_turbo.y: 1.0
axis_angular.yaw: 3
scale_angular.yaw: 0.5
scale_angular_turbo.yaw: 1.0
enable_button: 6
enable_turbo_button: 7
joy_node:
ros__parameters:
use_sim_time: False
deadzone: 0.1
autorepeat_rate: 20.0
dev: /dev/input/xbox
bt_cutoff_node:
ros__parameters:
quality_cutoff: 20
Loading

0 comments on commit 346651a

Please sign in to comment.