We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2e5d4f commit ed44895Copy full SHA for ed44895
1 file changed
Launchers/car_junction.launch.py
@@ -10,16 +10,10 @@
10
11
def generate_launch_description():
12
13
- # Set the path to the Gazebo ROS package
14
- pkg_gazebo_ros = FindPackageShare(package="gazebo_ros").find("gazebo_ros")
15
-
16
- # Set the path to this package.
17
- pkg_share = FindPackageShare(package="custom_robots").find("custom_robots")
18
19
- # Set the path to the world file
20
- world_file_name = "road_junction.world"
21
- world_path = os.path.join(pkg_share, "worlds", world_file_name)
22
+ custom_robots_share = get_package_share_directory("custom_robots")
+ world_path = os.path.join(
+ custom_robots_share, "worlds", "road_junction.world"
+ )
23
# Set the path to the SDF model files.
24
gazebo_models_path = os.path.join(pkg_share, "models")
25
os.environ[
0 commit comments