Fix lane centering with single lane line (#737)

This commit is contained in:
Gernby
2019-07-12 12:55:34 -05:00
committed by rbiasini
parent 4db632d669
commit 7ad0d8ca45
+1 -1
View File
@@ -44,7 +44,7 @@ class ModelParser(object):
self.lane_width_certainty += 0.05 * (lr_prob - self.lane_width_certainty)
current_lane_width = abs(l_poly[3] - r_poly[3])
self.lane_width_estimate += 0.005 * (current_lane_width - self.lane_width_estimate)
speed_lane_width = interp(v_ego, [0., 31.], [3., 3.8])
speed_lane_width = interp(v_ego, [0., 31.], [2.8, 3.5])
self.lane_width = self.lane_width_certainty * self.lane_width_estimate + \
(1 - self.lane_width_certainty) * speed_lane_width