Skip to content

Commit cb5a474

Browse files
authored
reduce feasibilty check lookahead poses, finetune params for narrow path, clear local costmap before narrow driving (#20)
1 parent f236f7d commit cb5a474

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

nav2_bringup/bringup/params/forklift_params.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ controller_server:
2020
type: "line"
2121
line_end: [1.9, 0.0]
2222
line_start: [0.1, 0.0]
23-
min_obstacle_dist: 0.5
23+
min_obstacle_dist: 0.45
2424
include_dynamic_obstacles: False
2525
costmap_converter_plugin: "costmap_converter::CostmapToPolygonsDBSMCCH"
2626
costmap_converter_spin_thread: True
2727
costmap_converter_rate: 2
2828
costmap_converter/CostmapToPolygonsDBSMCCH:
29-
cluster_max_distance: 0.4
29+
cluster_max_distance: 0.2
3030
cluster_min_pts: 3
3131
cluster_max_pts: 10
32-
convex_hull_min_pt_separation: 0.2
32+
convex_hull_min_pt_separation: 0.05
3333
include_costmap_obstacles: True
3434
enable_homotopy_class_planning: True
3535
enable_multithreading: True
@@ -40,9 +40,9 @@ controller_server:
4040
dt_hysteresis: 0.1
4141
global_plan_overwrite_orientation: False
4242
# was 25
43-
feasibility_check_no_poses: 20
43+
feasibility_check_no_poses: 4
4444
optimization_verbose: False
45-
max_global_plan_lookahead_dist: 4.0
45+
max_global_plan_lookahead_dist: 0.7
4646
max_vel_x: 0.8
4747
max_vel_x_near_goal: 0.2
4848
max_vel_x_backwards: 0.3
@@ -66,9 +66,11 @@ controller_server:
6666
obstacle_proximity_upper_bound: 1.0
6767
costmap_obstacles_behind_robot_dist: 1.0
6868
weight_obstacle: 50.0
69-
obstacle_poses_affected: 30
69+
obstacle_poses_affected: 50
7070
weight_kinematics_forward_drive: 0.3
7171
obstacle_association_force_inclusion_factor: 1.0
72+
divergence_detection: False
73+
7274

7375
GeneralFollowPath:
7476
plugin: "teb_local_planner::TebLocalPlannerROS"
@@ -90,7 +92,7 @@ controller_server:
9092
dt_hysteresis: 0.1
9193
global_plan_overwrite_orientation: False
9294
# was 25
93-
feasibility_check_no_poses: 20
95+
feasibility_check_no_poses: 4
9496
optimization_verbose: False
9597
max_global_plan_lookahead_dist: 4.0
9698
max_vel_x: 0.8
@@ -119,6 +121,7 @@ controller_server:
119121
obstacle_poses_affected: 20
120122
weight_kinematics_forward_drive: 0.3
121123
obstacle_association_force_inclusion_factor: 1.0
124+
divergence_detection: False
122125

123126
PalletPickupFollowPath:
124127
plugin: "teb_local_planner::TebLocalPlannerROS"
@@ -141,7 +144,7 @@ controller_server:
141144
dt_hysteresis: 0.1
142145
global_plan_overwrite_orientation: False
143146
# was 25
144-
feasibility_check_no_poses: 20
147+
feasibility_check_no_poses: 4
145148
optimization_verbose: False
146149
max_global_plan_lookahead_dist: 4.0
147150
max_vel_x: 0.8
@@ -170,6 +173,7 @@ controller_server:
170173
obstacle_poses_affected: 20
171174
weight_kinematics_forward_drive: 0.3
172175
obstacle_association_force_inclusion_factor: 1.0
176+
divergence_detection: False
173177

174178
LaneFollowPath:
175179
plugin: "teb_local_planner::TebLocalPlannerROS"
@@ -192,7 +196,7 @@ controller_server:
192196
dt_hysteresis: 0.1
193197
global_plan_overwrite_orientation: False
194198
# was 25
195-
feasibility_check_no_poses: 20
199+
feasibility_check_no_poses: 4
196200
optimization_verbose: False
197201
max_global_plan_lookahead_dist: 4.0
198202
max_vel_x: 0.8
@@ -221,6 +225,7 @@ controller_server:
221225
obstacle_poses_affected: 20
222226
weight_kinematics_forward_drive: 0.3
223227
obstacle_association_force_inclusion_factor: 1.0
228+
divergence_detection: False
224229

225230
controller_server_rclcpp_node:
226231
ros__parameters:

nav2_bt_navigator/behavior_trees/drive_between_pallets.xml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@
44

55
<root main_tree_to_execute="MainTree">
66
<BehaviorTree ID="MainTree">
7-
<PipelineSequence name="DriveBetweenPallets">
8-
<RateController hz="1.0">
9-
<Sequence name="AdjustAndReplan">
10-
<AdjustPalletGoal input_goal="{goal}" goal="{adjusted_goal}"/>
11-
<ComputePathToPosePython goal="{adjusted_goal}" path="{path}" planner_id="GridBased"/>
12-
</Sequence>
13-
</RateController>
14-
<FollowPath path="{path}" controller_id="NarrowFollowPath"/>
15-
</PipelineSequence>
7+
<Sequence name="planning">
8+
<Wait wait_duration="1"/>
9+
<ClearEntireCostmap name="ClearLocalCostmap-Subtree" service_name="local_costmap/clear_entirely_local_costmap"/>
10+
<PipelineSequence name="DriveBetweenPallets">
11+
<RateController hz="1.0">
12+
<Sequence name="AdjustAndReplan">
13+
<AdjustPalletGoal input_goal="{goal}" goal="{adjusted_goal}"/>
14+
<ComputePathToPosePython goal="{adjusted_goal}" path="{path}" planner_id="GridBased"/>
15+
</Sequence>
16+
</RateController>
17+
<FollowPath path="{path}" controller_id="NarrowFollowPath"/>
18+
</PipelineSequence>
19+
</Sequence>
1620
</BehaviorTree>
1721
</root>

0 commit comments

Comments
 (0)