File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -190,10 +190,15 @@ def add_frequency_control(self, code):
190
190
191
191
def on_run_application (self , event ):
192
192
application_configuration = event .kwargs .get ('data' , {})
193
- application_file = application_configuration ['template' ]
193
+ application_file_path = application_configuration ['template' ]
194
194
exercise_id = application_configuration ['exercise_id' ]
195
195
code = application_configuration ['code' ]
196
-
196
+
197
+ if "noetic" in str (self .ros_version ):
198
+ application_file = application_file_path + '/ros1_noetic/exercise.py'
199
+ else :
200
+ application_file = application_file_path + '/ros2_humble/exercise.py'
201
+
197
202
errors = self .linter .evaluate_code (code , exercise_id )
198
203
if errors == "" :
199
204
code = self .add_frequency_control (code )
You can’t perform that action at this time.
0 commit comments