Skip to content

Commit

Permalink
Auto launch of gesture based driving demo
Browse files Browse the repository at this point in the history
  • Loading branch information
hilary-luo committed Sep 26, 2024
1 parent f2f30da commit 9cb5dd9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
24 changes: 17 additions & 7 deletions turtlebot4_bringup/launch/lite.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def generate_launch_description():
pkg_turtlebot4_bringup = get_package_share_directory('turtlebot4_bringup')
pkg_turtlebot4_diagnostics = get_package_share_directory('turtlebot4_diagnostics')
pkg_turtlebot4_description = get_package_share_directory('turtlebot4_description')
pkg_turtlebot4_vision = get_package_share_directory('turtlebot4_vision_tutorials')

param_file_cmd = DeclareLaunchArgument(
'param_file',
Expand All @@ -63,11 +64,14 @@ def generate_launch_description():
[pkg_turtlebot4_diagnostics, 'launch', 'diagnostics.launch.py'])
rplidar_launch_file = PathJoinSubstitution(
[pkg_turtlebot4_bringup, 'launch', 'rplidar.launch.py'])
oakd_launch_file = PathJoinSubstitution(
[pkg_turtlebot4_bringup, 'launch', 'oakd.launch.py'])
# oakd_launch_file = PathJoinSubstitution(
# [pkg_turtlebot4_bringup, 'launch', 'oakd.launch.py'])
description_launch_file = PathJoinSubstitution(
[pkg_turtlebot4_description, 'launch', 'robot_description.launch.py']
)
[pkg_turtlebot4_description, 'launch', 'robot_description.launch.py'])
vision_launch_file = PathJoinSubstitution(
[pkg_turtlebot4_vision, 'launch', 'video_compression.launch.py'])
pose_launch_file = PathJoinSubstitution(
[pkg_turtlebot4_vision, 'launch', 'pose_detection.launch.py'])

actions = [
PushRosNamespace(namespace),
Expand All @@ -84,13 +88,19 @@ def generate_launch_description():
IncludeLaunchDescription(
PythonLaunchDescriptionSource([rplidar_launch_file])),

IncludeLaunchDescription(
PythonLaunchDescriptionSource([oakd_launch_file]),
launch_arguments=[('camera', 'oakd_lite')]),
# IncludeLaunchDescription(
# PythonLaunchDescriptionSource([oakd_launch_file]),
# launch_arguments=[('camera', 'oakd_lite')]),

IncludeLaunchDescription(
PythonLaunchDescriptionSource([description_launch_file]),
launch_arguments=[('model', 'lite')]),

IncludeLaunchDescription(
PythonLaunchDescriptionSource([vision_launch_file])),

IncludeLaunchDescription(
PythonLaunchDescriptionSource([pose_launch_file])),
]

if (diagnostics_enable.perform(lc)) == '1':
Expand Down
24 changes: 17 additions & 7 deletions turtlebot4_bringup/launch/standard.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def generate_launch_description():
pkg_turtlebot4_bringup = get_package_share_directory('turtlebot4_bringup')
pkg_turtlebot4_diagnostics = get_package_share_directory('turtlebot4_diagnostics')
pkg_turtlebot4_description = get_package_share_directory('turtlebot4_description')
pkg_turtlebot4_vision = get_package_share_directory('turtlebot4_vision_tutorials')

param_file_cmd = DeclareLaunchArgument(
'param_file',
Expand All @@ -63,11 +64,14 @@ def generate_launch_description():
[pkg_turtlebot4_diagnostics, 'launch', 'diagnostics.launch.py'])
rplidar_launch_file = PathJoinSubstitution(
[pkg_turtlebot4_bringup, 'launch', 'rplidar.launch.py'])
oakd_launch_file = PathJoinSubstitution(
[pkg_turtlebot4_bringup, 'launch', 'oakd.launch.py'])
# oakd_launch_file = PathJoinSubstitution(
# [pkg_turtlebot4_bringup, 'launch', 'oakd.launch.py'])
description_launch_file = PathJoinSubstitution(
[pkg_turtlebot4_description, 'launch', 'robot_description.launch.py']
)
[pkg_turtlebot4_description, 'launch', 'robot_description.launch.py'])
vision_launch_file = PathJoinSubstitution(
[pkg_turtlebot4_vision, 'launch', 'video_compression.launch.py'])
pose_launch_file = PathJoinSubstitution(
[pkg_turtlebot4_vision, 'launch', 'pose_detection.launch.py'])

actions = [
PushRosNamespace(namespace),
Expand All @@ -84,13 +88,19 @@ def generate_launch_description():
IncludeLaunchDescription(
PythonLaunchDescriptionSource([rplidar_launch_file])),

IncludeLaunchDescription(
PythonLaunchDescriptionSource([oakd_launch_file]),
launch_arguments=[('camera', 'oakd_pro')]),
# IncludeLaunchDescription(
# PythonLaunchDescriptionSource([oakd_launch_file]),
# launch_arguments=[('camera', 'oakd_pro')]),

IncludeLaunchDescription(
PythonLaunchDescriptionSource([description_launch_file]),
launch_arguments=[('model', 'standard')]),

IncludeLaunchDescription(
PythonLaunchDescriptionSource([vision_launch_file])),

IncludeLaunchDescription(
PythonLaunchDescriptionSource([pose_launch_file])),
]

if (diagnostics_enable.perform(lc)) == '1':
Expand Down

0 comments on commit 9cb5dd9

Please sign in to comment.