Skip to content

Commit

Permalink
added more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
amock committed Dec 23, 2024
1 parent 2198b86 commit f95f88a
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,16 @@ def generate_launch_description():
# Comment Alex: One can have different maps for same worlds
# Is this to much choice for a tutorial?

# Launch arguments
# Loading a map files with the following extension
mesh_nav_map_ext = ".ply"

available_map_names = [
f[:-4]
f[:-len(mesh_nav_map_ext)]
for f in os.listdir(os.path.join(pkg_mesh_navigation_tutorials, "maps"))
if f.endswith(".dae")
if f.endswith(mesh_nav_map_ext)
]

# Launch arguments
launch_args = [
DeclareLaunchArgument(
"map_name",
Expand Down Expand Up @@ -165,10 +168,10 @@ def generate_launch_description():
[
pkg_mesh_navigation_tutorials,
"maps",
PythonExpression(['"', map_name, '" + ".ply"']),
PythonExpression(['"', map_name, mesh_nav_map_ext, '"']), # loading a map from here
]
),
"mesh_map_working_path": PythonExpression(['"', map_name, '" + ".h5"'])
"mesh_map_working_path": PythonExpression(['"', map_name, '" + ".h5"']) # working on a local copy (as HDF5 format)
}.items(),
)

Expand Down

0 comments on commit f95f88a

Please sign in to comment.