Skip to content

Commit a4f33de

Browse files
committed
Changed the computation method of to_goal_cost
Signed-off-by: KoenHan <[email protected]>
1 parent 1896ee7 commit a4f33de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PathPlanning/DynamicWindowApproach/dynamic_window_approach.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def __init__(self):
3333
self.predict_time = 3.0 # [s]
3434
self.to_goal_cost_gain = 0.15
3535
self.speed_cost_gain = 1.0
36-
self.ob_cost_gain = 1.0
3736
self.robot_radius = 1.0 # [m]
3837

3938

@@ -134,7 +133,7 @@ def calc_obstacle_cost(traj, ob, config):
134133
if minr >= r:
135134
minr = r
136135

137-
return config.ob_cost_gain / minr # OK
136+
return 1.0 / minr # OK
138137

139138

140139
def calc_to_goal_cost(traj, goal, config):

0 commit comments

Comments
 (0)