Skip to content

Commit 92e7cec

Browse files
Renamed keepout map launch argument to keepout mask
Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com>
1 parent a4fc32b commit 92e7cec

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

nav2_bringup/launch/bringup_launch.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def generate_launch_description() -> LaunchDescription:
3535
namespace = LaunchConfiguration('namespace')
3636
slam = LaunchConfiguration('slam')
3737
map_yaml_file = LaunchConfiguration('map')
38-
keepout_map_yaml_file = LaunchConfiguration('keepout_map')
38+
keepout_mask_yaml_file = LaunchConfiguration('keepout_mask')
3939
graph_filepath = LaunchConfiguration('graph')
4040
use_sim_time = LaunchConfiguration('use_sim_time')
4141
params_file = LaunchConfiguration('params_file')
@@ -75,9 +75,9 @@ def generate_launch_description() -> LaunchDescription:
7575
'map', default_value='', description='Full path to map yaml file to load'
7676
)
7777

78-
declare_keepout_map_yaml_cmd = DeclareLaunchArgument(
79-
'keepout_map', default_value='',
80-
description='Full path to keepout map yaml file to load'
78+
declare_keepout_mask_yaml_cmd = DeclareLaunchArgument(
79+
'keepout_mask', default_value='',
80+
description='Full path to keepout mask yaml file to load'
8181
)
8282

8383
declare_graph_file_cmd = DeclareLaunchArgument(
@@ -180,7 +180,7 @@ def generate_launch_description() -> LaunchDescription:
180180
condition=IfCondition(PythonExpression([use_keepout_zones])),
181181
launch_arguments={
182182
'namespace': namespace,
183-
'keepout_map': keepout_map_yaml_file,
183+
'keepout_mask': keepout_mask_yaml_file,
184184
'use_sim_time': use_sim_time,
185185
'params_file': params_file,
186186
'use_composition': use_composition,
@@ -217,7 +217,7 @@ def generate_launch_description() -> LaunchDescription:
217217
ld.add_action(declare_namespace_cmd)
218218
ld.add_action(declare_slam_cmd)
219219
ld.add_action(declare_map_yaml_cmd)
220-
ld.add_action(declare_keepout_map_yaml_cmd)
220+
ld.add_action(declare_keepout_mask_yaml_cmd)
221221
ld.add_action(declare_graph_file_cmd)
222222
ld.add_action(declare_use_sim_time_cmd)
223223
ld.add_action(declare_params_file_cmd)

nav2_bringup/launch/map_modifier.launch.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def generate_launch_description() -> LaunchDescription:
2929
bringup_dir = get_package_share_directory('nav2_bringup')
3030

3131
namespace = LaunchConfiguration('namespace')
32-
keepout_map_yaml_file = LaunchConfiguration('keepout_map')
32+
keepout_mask_yaml_file = LaunchConfiguration('keepout_mask')
3333
use_sim_time = LaunchConfiguration('use_sim_time')
3434
autostart = LaunchConfiguration('autostart')
3535
params_file = LaunchConfiguration('params_file')
@@ -63,10 +63,10 @@ def generate_launch_description() -> LaunchDescription:
6363
'namespace', default_value='', description='Top-level namespace'
6464
)
6565

66-
declare_keepout_map_yaml_cmd = DeclareLaunchArgument(
67-
'keepout_map',
66+
declare_keepout_mask_yaml_cmd = DeclareLaunchArgument(
67+
'keepout_mask',
6868
default_value='',
69-
description='Full path to map yaml file to load',
69+
description='Full path to keepout mask yaml file to load',
7070
)
7171

7272
declare_use_sim_time_cmd = DeclareLaunchArgument(
@@ -120,7 +120,7 @@ def generate_launch_description() -> LaunchDescription:
120120
output='screen',
121121
respawn=use_respawn,
122122
respawn_delay=2.0,
123-
parameters=[configured_params, {'yaml_filename': keepout_map_yaml_file}],
123+
parameters=[configured_params, {'yaml_filename': keepout_mask_yaml_file}],
124124
arguments=['--ros-args', '--log-level', log_level],
125125
remappings=remappings,
126126
),
@@ -165,7 +165,7 @@ def generate_launch_description() -> LaunchDescription:
165165
name='filter_mask_server',
166166
parameters=[
167167
configured_params,
168-
{'yaml_filename': keepout_map_yaml_file}
168+
{'yaml_filename': keepout_mask_yaml_file}
169169
],
170170
remappings=remappings,
171171
),
@@ -203,7 +203,7 @@ def generate_launch_description() -> LaunchDescription:
203203

204204
# Declare the launch options
205205
ld.add_action(declare_namespace_cmd)
206-
ld.add_action(declare_keepout_map_yaml_cmd)
206+
ld.add_action(declare_keepout_mask_yaml_cmd)
207207
ld.add_action(declare_use_sim_time_cmd)
208208
ld.add_action(declare_params_file_cmd)
209209
ld.add_action(declare_use_composition_cmd)

nav2_bringup/launch/tb4_simulation_launch.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def generate_launch_description() -> LaunchDescription:
5454
slam = LaunchConfiguration('slam')
5555
namespace = LaunchConfiguration('namespace')
5656
map_yaml_file = LaunchConfiguration('map')
57-
keepout_map_yaml_file = LaunchConfiguration('keepout_map')
57+
keepout_mask_yaml_file = LaunchConfiguration('keepout_mask')
5858
graph_filepath = LaunchConfiguration('graph')
5959
use_sim_time = LaunchConfiguration('use_sim_time')
6060
params_file = LaunchConfiguration('params_file')
@@ -98,10 +98,10 @@ def generate_launch_description() -> LaunchDescription:
9898
description='Full path to map file to load',
9999
)
100100

101-
declare_keepout_map_yaml_cmd = DeclareLaunchArgument(
102-
'keepout_map',
101+
declare_keepout_mask_yaml_cmd = DeclareLaunchArgument(
102+
'keepout_mask',
103103
default_value=os.path.join(bringup_dir, 'maps', f'{MAP_TYPE}_keepout.yaml'),
104-
description='Full path to keepout map file to load',
104+
description='Full path to keepout mask file to load',
105105
)
106106

107107
declare_graph_file_cmd = DeclareLaunchArgument(
@@ -215,7 +215,7 @@ def generate_launch_description() -> LaunchDescription:
215215
'namespace': namespace,
216216
'slam': slam,
217217
'map': map_yaml_file,
218-
'keepout_map': keepout_map_yaml_file,
218+
'keepout_mask': keepout_mask_yaml_file,
219219
'graph': graph_filepath,
220220
'use_sim_time': use_sim_time,
221221
'params_file': params_file,
@@ -281,7 +281,7 @@ def generate_launch_description() -> LaunchDescription:
281281
ld.add_action(declare_namespace_cmd)
282282
ld.add_action(declare_slam_cmd)
283283
ld.add_action(declare_map_yaml_cmd)
284-
ld.add_action(declare_keepout_map_yaml_cmd)
284+
ld.add_action(declare_keepout_mask_yaml_cmd)
285285
ld.add_action(declare_graph_file_cmd)
286286
ld.add_action(declare_use_sim_time_cmd)
287287
ld.add_action(declare_params_file_cmd)

0 commit comments

Comments
 (0)