Skip to content

Commit 8e1e17d

Browse files
committed
🔧 adjust suave_mission launchfile
1 parent f0c4e44 commit 8e1e17d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

suave_missions/launch/mission.launch.py

+10
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def generate_launch_description():
1818
result_filename = LaunchConfiguration('result_filename')
1919
battery_constraint = LaunchConfiguration('battery_constraint')
2020
battery_constraint_value = LaunchConfiguration('battery_constraint_value')
21+
mc_reasoning_time_filename = LaunchConfiguration('mc_reasoning_time_filename')
2122

2223
adaptation_manager_arg = DeclareLaunchArgument(
2324
'adaptation_manager',
@@ -45,12 +46,19 @@ def generate_launch_description():
4546
description='Desired battery functionality' +
4647
'[True or False]'
4748
)
49+
4850
battery_constraint_value_arg = DeclareLaunchArgument(
4951
'battery_constraint_value',
5052
default_value='0.2',
5153
description='battery constraint value'
5254
)
5355

56+
mc_reasoning_time_filename_arg = DeclareLaunchArgument(
57+
'mc_reasoning_time_filename',
58+
default_value='metacontrol_reasoning_time',
59+
description='metacontrol reasoning time filename'
60+
)
61+
5462
pkg_suave_path = get_package_share_directory(
5563
'suave_missions')
5664

@@ -124,6 +132,8 @@ def generate_launch_description():
124132

125133
suave_metacontrol_launch = IncludeLaunchDescription(
126134
PythonLaunchDescriptionSource(suave_metacontrol_launch_path),
135+
launch_arguments = {
136+
'reasoning_time_filename' : mc_reasoning_time_filename}.items(),
127137
condition=LaunchConfigurationEquals(
128138
'adaptation_manager', 'metacontrol'))
129139

0 commit comments

Comments
 (0)