@@ -18,6 +18,7 @@ def generate_launch_description():
18
18
result_filename = LaunchConfiguration ('result_filename' )
19
19
battery_constraint = LaunchConfiguration ('battery_constraint' )
20
20
battery_constraint_value = LaunchConfiguration ('battery_constraint_value' )
21
+ mc_reasoning_time_filename = LaunchConfiguration ('mc_reasoning_time_filename' )
21
22
22
23
adaptation_manager_arg = DeclareLaunchArgument (
23
24
'adaptation_manager' ,
@@ -45,12 +46,19 @@ def generate_launch_description():
45
46
description = 'Desired battery functionality' +
46
47
'[True or False]'
47
48
)
49
+
48
50
battery_constraint_value_arg = DeclareLaunchArgument (
49
51
'battery_constraint_value' ,
50
52
default_value = '0.2' ,
51
53
description = 'battery constraint value'
52
54
)
53
55
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
+
54
62
pkg_suave_path = get_package_share_directory (
55
63
'suave_missions' )
56
64
@@ -124,6 +132,8 @@ def generate_launch_description():
124
132
125
133
suave_metacontrol_launch = IncludeLaunchDescription (
126
134
PythonLaunchDescriptionSource (suave_metacontrol_launch_path ),
135
+ launch_arguments = {
136
+ 'reasoning_time_filename' : mc_reasoning_time_filename }.items (),
127
137
condition = LaunchConfigurationEquals (
128
138
'adaptation_manager' , 'metacontrol' ))
129
139
0 commit comments