Skip to content

Commit

Permalink
Merge pull request #56 from MichaelRazum/ros2
Browse files Browse the repository at this point in the history
Switch to pathlib #54
  • Loading branch information
Ryanf55 authored Jan 20, 2024
2 parents 7155cb4 + b0080bc commit 23141e4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions launch/load_tif.launch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os
from pathlib import Path

from ament_index_python.packages import get_package_share_directory

Expand Down Expand Up @@ -46,7 +46,7 @@ def generate_launch_description():
rviz = Node(
package="rviz2",
executable="rviz2",
arguments=["-d", os.path.join(pkg_grid_map_geo, "rviz", "config.rviz")],
arguments=["-d", f'{Path(pkg_grid_map_geo) / "rviz" / "config.rviz"}'],
condition=IfCondition(LaunchConfiguration("rviz")),
)

Expand All @@ -65,16 +65,12 @@ def generate_launch_description():
),
DeclareLaunchArgument(
"tif_path",
default_value=os.path.join(
pkg_grid_map_geo, "resources", default_tif_file
),
default_value=f'{Path(pkg_grid_map_geo) / "resources" / default_tif_file}',
description="Full path to the elevation map file.",
),
DeclareLaunchArgument(
"tif_color_path",
default_value=os.path.join(
pkg_grid_map_geo, "resources", default_tif_color_file
),
default_value=f'{Path(pkg_grid_map_geo) / "resources" / default_tif_color_file}',
description="Full path to the elevation texture file.",
),
static_transform_publisher,
Expand Down

0 comments on commit 23141e4

Please sign in to comment.