提交 bb47f9b9 编写于 作者: J jiangyifei 提交者: Jiangtao Hu

[planning] update plot planning.

上级 f603953f
......@@ -89,10 +89,10 @@ if __name__ == '__main__':
ax1 = plt.subplot2grid((3, 3), (0, 2))
speed_subplot = SpeedSubplot(ax1)
ax2 = plt.subplot2grid((3, 3), (1, 2))
ax2 = plt.subplot2grid((3, 3), (2, 2))
dp_st_main_subplot = StMainSubplot(ax2, 'QpSplineStSpeedOptimizer')
ax3 = plt.subplot2grid((3, 3), (2, 2))
ax3 = plt.subplot2grid((3, 3), (1, 2))
qp_st_main_subplot = StMainSubplot(ax3, 'DpStSpeedOptimizer')
ax4 = plt.subplot2grid((3, 3), (2, 0), colspan=1)
......
......@@ -41,6 +41,7 @@ class PathSubplot:
self.vehicle_polygon_line, = ax.plot([0], [0], 'g-')
self.set_visible(False)
ax.set_title("PLANNING PATH")
def set_visible(self, visible):
for line in self.path_lines:
......
......@@ -37,10 +37,11 @@ class SlMainSubplot:
self.sl_aggregated_boundary_high_line, = \
ax.plot([0], [0], "k-", lw=1, ms=2)
ax.set_xlim([30, 140])
ax.set_ylim([-5, 5])
ax.set_xlim([-10, 100])
ax.set_ylim([-2.5, 2.5])
ax.set_xlabel("s (m)")
ax.set_ylabel("l (m)")
ax.set_title("QP Path - sl Graph")
self.set_visible(False)
......
......@@ -32,9 +32,9 @@ class SpeedSubplot:
ax.set_xlabel("t (second)")
ax.set_xlim([-2, 10])
ax.set_ylim([-1, 10])
ax.set_ylim([-1, 20])
ax.set_ylabel("speed (m/s)")
ax.set_title("PLANNING SPEED")
self.set_visible(False)
def set_visible(self, visible):
......
......@@ -29,10 +29,10 @@ class StSpeedSubplot:
ax.plot([0], [0], "b-", lw=3, alpha=1, label="lower")[0]
self.st_name = st_name
ax.set_xlim(-10, 70)
ax.set_ylim(-1, 15)
ax.set_ylim(-1, 20)
ax.set_xlabel("s (m)")
ax.set_ylabel("v (m/s)")
ax.set_title("SV graph")
ax.set_title("QP Speed - sv graph")
ax.legend(loc="upper left", bbox_to_anchor=(0, 1), ncol=2, borderaxespad=0.)
self.set_visible(False)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册