1+ """
2+ Launch file for starting Gazebo with the simple circuit world.
3+
4+ The world with obstacles and following camera.
5+ """
6+
17import os
28from launch import LaunchDescription
39from launch .actions import DeclareLaunchArgument , IncludeLaunchDescription
4- from launch .conditions import IfCondition , UnlessCondition
10+ from launch .conditions import IfCondition
511from launch .launch_description_sources import PythonLaunchDescriptionSource
6- from launch .substitutions import Command , LaunchConfiguration , PythonExpression
7- from launch_ros .actions import Node
12+ from launch .substitutions import LaunchConfiguration
813from launch_ros .substitutions import FindPackageShare
914
1015
1116def generate_launch_description ():
17+ """
18+ Generate the launch description for starting Gazebo with the simple circuit world.
19+
20+ With obstacles and a following camera.
21+ """
1222
1323 # Set the path to the Gazebo ROS package
1424 pkg_gazebo_ros = FindPackageShare (package = "gazebo_ros" ).find ("gazebo_ros" )
@@ -23,9 +33,9 @@ def generate_launch_description():
2333
2434 # Set the path to the SDF model files.
2535 gazebo_models_path = os .path .join (pkg_share , "models" )
26- os .environ [
27- " GAZEBO_MODEL_PATH"
28- ] = f" { os . environ . get ( 'GAZEBO_MODEL_PATH' , '' ) } : { ':' . join ( gazebo_models_path ) } "
36+ os .environ ["GAZEBO_MODEL_PATH" ] = (
37+ f" { os . environ . get ( ' GAZEBO_MODEL_PATH' , '' ) } : { ':' . join ( gazebo_models_path ) } "
38+ )
2939
3040 ########### YOU DO NOT NEED TO CHANGE ANYTHING BELOW THIS LINE ##############
3141 # Launch configuration variables specific to simulation
0 commit comments