Change width of quiver plot to display drivable area instead of arrows.

master
matssteinweg 2019-12-01 02:05:02 +01:00
parent a3b2b4d3f3
commit 7940964b29
1 changed files with 5 additions and 5 deletions

View File

@ -351,17 +351,17 @@ class ReferencePath:
# Plot arrows indicating drivable area
if display_drivable_area:
plt.quiver(wp_x, wp_y, wp_ub_x - wp_x, wp_ub_y - wp_y, scale=1,
units='xy', width=0.2*self.resolution, color='#2ECC71',
headwidth=1, headlength=2)
units='xy', width=1.5*self.resolution, color='#2ECC71',
headwidth=1, headlength=0)
plt.quiver(wp_x, wp_y, wp_lb_x - wp_x, wp_lb_y - wp_y, scale=1,
units='xy', width=0.2*self.resolution, color='#2ECC71',
headwidth=1, headlength=2)
units='xy', width=1.5*self.resolution, color='#2ECC71',
headwidth=1, headlength=0)
if __name__ == '__main__':
# Select Path | 'Race' or 'Q'
path = 'Race'
path = 'Q'
# Create Map
if path == 'Race':