Plot arrow.
(x, y, yaw, length=1.0, width=0.5, fc="r", ec="k")
| 112 | |
| 113 | |
| 114 | def plot_arrow(x, y, yaw, length=1.0, width=0.5, fc="r", ec="k"): # pragma: no cover |
| 115 | """Plot arrow.""" |
| 116 | if not isinstance(x, float): |
| 117 | for (ix, iy, iyaw) in zip(x, y, yaw): |
| 118 | plot_arrow(ix, iy, iyaw) |
| 119 | else: |
| 120 | plt.arrow(x, y, length * np.cos(yaw), length * np.sin(yaw), |
| 121 | fc=fc, ec=ec, head_width=width, head_length=width) |
| 122 | plt.plot(x, y) |
| 123 | |
| 124 | |
| 125 | def main(): |