Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
plot_track.py
Go to the documentation of this file.
1
# pylint: skip-file
2
# mypy: ignore-errors
3
import
matplotlib.pyplot
as
plt
4
5
xTrackList = []
6
yTrackList = []
7
xMidList = []
8
yMidList = []
9
10
colorList = []
11
count = 0
12
13
print(len(xTrackList))
14
15
with
open(
"../tracks/finalPath.txt"
,
"r"
)
as
f:
16
for
line
in
f:
17
lineList = line.split(
" "
)
18
xMidList.append(float(lineList[0]))
19
yMidList.append(float(lineList[1]))
20
colorList.append(
"#00aa00"
)
21
22
plt.scatter(xTrackList + xMidList, yTrackList + yMidList, s=5, c=colorList)
23
plt.axis(
"equal"
)
24
plt.show()
src
planning
plots
plot_track.py
Generated by
1.9.8