File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ class LauncherRos(ILauncher):
4444 def run (self ):
4545 try :
4646 # generate entry_point environment variable
47- os .environ [
48- "EXERCISE_FOLDER "
49- ] = f" { os . environ . get ( 'EXERCISES_STATIC_FOLDER' ) } / { self . exercise_id } "
47+ os .environ ["EXERCISE_FOLDER" ] = (
48+ f" { os . environ . get ( 'EXERCISES_STATIC_FOLDER' ) } / { self . exercise_id } "
49+ )
5050
5151 # expand variables in configuration paths
5252 resource_folders = [
@@ -57,15 +57,15 @@ def run(self):
5757 launch_file = os .path .expandvars (self .launch_file )
5858
5959 env = dict (os .environ )
60- env [
61- " GAZEBO_RESOURCE_PATH"
62- ] = f" { env . get ( 'GAZEBO_RESOURCE_PATH' , '' ) } : { ':' . join ( resource_folders ) } "
63- env [
64- " GAZEBO_MODEL_PATH"
65- ] = f" { env . get ( 'GAZEBO_MODEL_PATH' , '' ) } : { ':' . join ( model_folders ) } "
66- env [
67- " GAZEBO_PLUGIN_PATH"
68- ] = f" { env . get ( 'GAZEBO_PLUGIN_PATH' , '' ) } : { ':' . join ( plugin_folders ) } "
60+ env ["GAZEBO_RESOURCE_PATH" ] = (
61+ f" { env . get ( ' GAZEBO_RESOURCE_PATH' , '' ) } : { ':' . join ( resource_folders ) } "
62+ )
63+ env ["GAZEBO_MODEL_PATH" ] = (
64+ f" { env . get ( ' GAZEBO_MODEL_PATH' , '' ) } : { ':' . join ( model_folders ) } "
65+ )
66+ env ["GAZEBO_PLUGIN_PATH" ] = (
67+ f" { env . get ( ' GAZEBO_PLUGIN_PATH' , '' ) } : { ':' . join ( plugin_folders ) } "
68+ )
6969
7070 parameters = " " .join (self .parameters )
7171 command = f"{ self .ros_command_line } { parameters } { launch_file } "
Original file line number Diff line number Diff line change 1010
1111import logging
1212
13+
1314class LauncherRos2Api (ILauncher ):
1415 type : str
1516 module : str
Original file line number Diff line number Diff line change @@ -652,7 +652,6 @@ def find_docker_console():
652652
653653 LogManager .logger .info ("Run application transition finished" )
654654
655-
656655 def on_terminate_application (self , event ):
657656
658657 if self .application_process :
You can’t perform that action at this time.
0 commit comments