We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 44a716f + 1096648 commit be0b42cCopy full SHA for be0b42c
vesc_driver/launch/vesc_driver_node.launch.py
@@ -30,6 +30,8 @@
30
31
from ament_index_python.packages import get_package_share_directory
32
from launch import LaunchDescription
33
+from launch.actions import DeclareLaunchArgument
34
+from launch.substitutions import LaunchConfiguration
35
from launch_ros.actions import Node
36
37
@@ -41,11 +43,16 @@ def generate_launch_description():
41
43
'vesc_config.yaml'
42
44
)
45
return LaunchDescription([
46
+ DeclareLaunchArgument(
47
+ name="config",
48
+ default_value=vesc_config,
49
+ description="VESC yaml configuration file.",
50
+ ),
51
Node(
52
package='vesc_driver',
53
executable='vesc_driver_node',
54
name='vesc_driver_node',
- parameters=[vesc_config]
55
+ parameters=[LaunchConfiguration("config")]
56
),
57
58
])
0 commit comments