提交 0272dd34 编写于 作者: J jiangyifei 提交者: Dong Li

[planning] fix a bug in plot planning

上级 64be10fc
......@@ -121,14 +121,14 @@ def update(frame_number):
sl_map_lower_boundary, sl_map_upper_boundary, sl_path,
sl_aggregated_boundary_low_line, sl_aggregated_boundary_high_line)
if len(planning.st_data_s.keys()) >= 1:
if len(planning.st_curve_s.keys()) >= 1:
planning.replot_st_data(obstacle_line_pool, st_line_1,
obstacle_annotation_pool,
planning.st_data_s.keys()[0])
if len(planning.st_data_s.keys()) >= 2:
planning.st_curve_s.keys()[0])
if len(planning.st_curve_s.keys()) >= 2:
planning.replot_st_data(obstacle_line_pool2, st_line_2,
obstacle_annotation_pool2,
planning.st_data_s.keys()[1])
planning.st_curve_s.keys()[1])
localization.replot_vehicle(vehicle_position_line, vehicle_polygon_line)
try:
ax.set_xlim(localization.localization_pb.pose.position.x - MAP_BOUNDARY_BUFFER,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册