Skip to content

Commit 8b22fc1

Browse files
authored
Mesh Nav Update (#6)
* test parameters * working version with lvr-update branches * added lvr update branch to CI * changed mesh tools branch in source dependencies * added descriptions * added more comments * line-length * removed trailing whitespace
1 parent 5e67a4a commit 8b22fc1

File tree

4 files changed

+36
-13
lines changed

4 files changed

+36
-13
lines changed

mesh_navigation_tutorials/config/mbf_mesh_nav.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ move_base_flex:
3030
cmd_vel_ignored_tolerance: 10.0
3131

3232
mesh_map:
33-
mesh_part: 'mesh'
33+
# input
34+
# mesh_file: '/home/amock/mesh_nav_ws/src/mesh_navigation_tutorials/mesh_navigation_tutorials/maps/parking_garage.ply'
35+
mesh_part: '/'
36+
# storage
37+
# mesh_working_file: 'parking_garage.h5'
38+
mesh_working_part: 'mesh'
39+
40+
# half-edge-mesh implementation
41+
hem: pmp # pmp (default), lvr
3442

3543
layers: ['border', 'height_diff', 'roughness', 'inflation']
3644

@@ -53,8 +61,8 @@ move_base_flex:
5361
inflation:
5462
type: 'mesh_layers/InflationLayer'
5563
factor: 1.0
56-
inflation_radius: 0.4
57-
inscribed_radius: 0.2
64+
inflation_radius: 0.2
65+
inscribed_radius: 0.4
5866
lethal_value: 1.0
5967
inscribed_value: 0.8
6068
repulsive_field: false

mesh_navigation_tutorials/launch/mbf_mesh_navigation_server_launch.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,18 @@ def generate_launch_description():
4242
launch_args = [
4343
DeclareLaunchArgument(
4444
"mesh_map_path",
45-
description="Path to the mesh file that defines the map.",
45+
description="Path to the mesh file that defines the map."
46+
"Allowed formats are our internal HDF5 format and all"
47+
"standard mesh formats loadable by Assimp.",
48+
),
49+
DeclareLaunchArgument(
50+
"mesh_map_working_path",
51+
description="Path to the mesh file used by the mesh navigation "
52+
"to store costs during operation. Only HDF5 formats are permitted.",
4653
),
4754
]
4855
mesh_map_path = LaunchConfiguration("mesh_map_path")
56+
mesh_map_working_path = LaunchConfiguration("mesh_map_working_path")
4957

5058
mbf_mesh_nav_config = os.path.join(
5159
get_package_share_directory("mesh_navigation_tutorials"), "config", "mbf_mesh_nav.yaml"
@@ -60,8 +68,11 @@ def generate_launch_description():
6068
],
6169
parameters=[
6270
mbf_mesh_nav_config,
63-
{"mesh_map.mesh_file": mesh_map_path},
64-
],
71+
{
72+
"mesh_map.mesh_file": mesh_map_path,
73+
"mesh_map.mesh_working_file": mesh_map_working_path
74+
}
75+
]
6576
)
6677

6778
return LaunchDescription(

mesh_navigation_tutorials/launch/mesh_navigation_tutorial_launch.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,16 @@ def generate_launch_description():
5050
# Comment Alex: One can have different maps for same worlds
5151
# Is this to much choice for a tutorial?
5252

53-
# Launch arguments
53+
# Loading a map files with the following extension
54+
mesh_nav_map_ext = ".ply"
55+
5456
available_map_names = [
55-
f[:-3]
57+
f[:-len(mesh_nav_map_ext)]
5658
for f in os.listdir(os.path.join(pkg_mesh_navigation_tutorials, "maps"))
57-
if f.endswith(".h5")
59+
if f.endswith(mesh_nav_map_ext)
5860
]
5961

62+
# Launch arguments
6063
launch_args = [
6164
DeclareLaunchArgument(
6265
"map_name",
@@ -165,9 +168,10 @@ def generate_launch_description():
165168
[
166169
pkg_mesh_navigation_tutorials,
167170
"maps",
168-
PythonExpression(['"', map_name, '" + ".h5"']),
171+
PythonExpression(['"', map_name, mesh_nav_map_ext, '"']),
169172
]
170173
),
174+
"mesh_map_working_path": PythonExpression(['"', map_name, '" + ".h5"'])
171175
}.items(),
172176
)
173177

source_dependencies.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ repositories:
44
lvr2:
55
type: git
66
url: https://github.com/uos/lvr2.git
7-
version: humble
7+
version: version-upgrade
88
mesh_tools:
99
type: git
1010
url: https://github.com/naturerobots/mesh_tools.git
11-
version: humble
11+
version: lvr-update
1212
mesh_navigation:
1313
type: git
1414
url: https://github.com/naturerobots/mesh_navigation.git
15-
version: humble
15+
version: lvr-update
1616
move_base_flex:
1717
type: git
1818
url: https://github.com/naturerobots/move_base_flex.git

0 commit comments

Comments
 (0)