Skip to content

Commit

Permalink
Fix flaky costmap filters tests: (ros-navigation#3754)
Browse files Browse the repository at this point in the history
1. Set forward_prune_distance to 1.0 to robot not getting lost
2. Correct map name for costmap filter tests

Signed-off-by: enricosutera <enricosutera@outlook.com>
  • Loading branch information
AlexeyMerzlyakov authored and enricosutera committed May 19, 2024
1 parent a8c4cdd commit 442d1c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions nav2_system_tests/src/costmap_filters/keepout_params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ controller_server:
plugin: "dwb_core::DWBLocalPlanner"
debug_trajectory_details: True
prune_distance: 1.0
forward_prune_distance: 1.0
min_vel_x: 0.0
min_vel_y: 0.0
max_vel_x: 0.26
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def generate_launch_description():
param_substitutions = {
'planner_server.ros__parameters.GridBased.use_astar': os.getenv('ASTAR'),
'filter_mask_server.ros__parameters.yaml_filename': filter_mask_file,
'yaml_filename': filter_mask_file}
'map_server.ros__parameters.yaml_filename': map_yaml_file}
configured_params = RewrittenYaml(
source_file=params_file,
root_key='',
Expand Down
2 changes: 1 addition & 1 deletion nav2_system_tests/src/costmap_filters/test_speed_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def generate_launch_description():
param_substitutions = {
'planner_server.ros__parameters.GridBased.use_astar': os.getenv('ASTAR'),
'filter_mask_server.ros__parameters.yaml_filename': filter_mask_file,
'yaml_filename': filter_mask_file}
'map_server.ros__parameters.yaml_filename': map_yaml_file}
configured_params = RewrittenYaml(
source_file=params_file,
root_key='',
Expand Down

0 comments on commit 442d1c7

Please sign in to comment.