-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwhycode_launch.py
More file actions
35 lines (29 loc) · 952 Bytes
/
whycode_launch.py
File metadata and controls
35 lines (29 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution
from launch_ros.actions import Node
from launch_ros.substitutions import FindPackageShare
def generate_launch_description():
params_file_arg = DeclareLaunchArgument(
'config',
default_value='default.yaml',
description='Path to the YAML parameters file in the config folder'
)
params_file_path = PathJoinSubstitution([
FindPackageShare('whycode'),
'config',
LaunchConfiguration('config')
])
node = Node(
package='whycode',
executable='whycode_node',
name='whycode_node',
output='screen',
emulate_tty=True,
parameters=[params_file_path],
# prefix=['konsole -e gdb -ex run --args']
)
return LaunchDescription([
params_file_arg,
node
])