-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from clubcapra/Controller-fixes-with-docker
Merge Controller fixes with docker to main
- Loading branch information
Showing
12 changed files
with
293 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/rove_controller_node: | ||
ros__parameters: | ||
# Buttons | ||
A: 0 | ||
B: 1 | ||
X: 3 | ||
Y: 4 | ||
LB: 6 | ||
RB: 7 | ||
VIEW: 10 | ||
MENU: 11 | ||
XBOX: 12 | ||
LS: 13 | ||
RS: 14 | ||
SHARE: 15 | ||
# Axes | ||
LS_X: 0 | ||
LS_Y: 1 | ||
LT: 5 | ||
RS_X: 2 | ||
RS_Y: 3 | ||
RT: 4 | ||
D_PAD_X: 6 | ||
D_PAD_Y: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
/game_controller_node: | ||
ros__parameters: | ||
# 0 (publish on change) | ||
autorepeat_rate: 0.0 | ||
# 1000ms / 20 (refresh rate in Hz) = 50 | ||
autorepeat_rate: 20.0 # 0 (publish on change) | ||
coalesce_interval_ms: 50 # 1000ms / 20 (refresh rate in Hz) = 50 | ||
deadzone: 0.05 | ||
sticky_buttons: false | ||
|
||
/joy_node: | ||
ros__parameters: | ||
autorepeat_rate: 20.0 | ||
coalesce_interval_ms: 50 | ||
deadzone: 0.05 | ||
device_id: 0 | ||
device_name: '' | ||
qos_overrides: | ||
/parameter_events: | ||
publisher: | ||
depth: 1000 | ||
durability: volatile | ||
history: keep_last | ||
reliability: reliable | ||
sticky_buttons: false | ||
use_sim_time: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/rove_controller_node: | ||
ros__parameters: | ||
# Buttons | ||
A: 0 | ||
B: 1 | ||
X: 2 | ||
Y: 3 | ||
LB: 4 | ||
RB: 5 | ||
VIEW: 6 | ||
MENU: 7 | ||
XBOX: 8 | ||
LS: 9 | ||
RS: 10 | ||
SHARE: 11 | ||
# Axes | ||
LS_X: 0 | ||
LS_Y: 1 | ||
LT: 2 | ||
RS_X: 3 | ||
RS_Y: 4 | ||
RT: 5 | ||
D_PAD_X: 6 | ||
D_PAD_Y: 7 |
38 changes: 38 additions & 0 deletions
38
src/rove_bringup/launch/rove_controller_bluethoot.launch.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
from launch import LaunchDescription | ||
from launch_ros.actions import Node | ||
from ament_index_python.packages import get_package_share_directory | ||
|
||
def generate_launch_description(): | ||
package_name = 'rove_bringup' | ||
dir = get_package_share_directory(package_name) | ||
# Get params files | ||
joy_params_file = dir + '/config/joy_params.yaml' | ||
teleope_joy_params_file = dir + '/config/teleop_joy_params.yaml' | ||
bluethoot_mapping_file = dir + '/config/bluethoot_mapping.yaml' | ||
|
||
return LaunchDescription([ | ||
Node( | ||
package='joy', | ||
executable='joy_node', | ||
name='game_controller_node', | ||
output='screen', | ||
parameters=[joy_params_file], | ||
), | ||
Node( | ||
package='teleop_twist_joy', | ||
executable='teleop_node', | ||
name='teleop_twist_joy_node', | ||
parameters=[teleope_joy_params_file], | ||
remappings=[ | ||
('/joy', '/rove/joy'), | ||
# ('/cmd_vel', '/model/rove/cmd_vel') | ||
], | ||
), | ||
Node( | ||
package=package_name, | ||
executable='rove_controller_node', | ||
name='rove_controller_node', | ||
parameters=[bluethoot_mapping_file], | ||
output='screen', | ||
), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.