|
|
|
|
|
|
|
|
# Set Axis |
|
|
# Set Axis |
|
|
ax1.set_xlim([-0.02*mm, 0.52*mm]) |
|
|
ax1.set_xlim([-0.02*mm, 0.52*mm]) |
|
|
ax1.set_ylim([-0.02*mm, 0.52*mm]) |
|
|
ax1.set_ylim([-0.02*mm, 0.52*mm]) |
|
|
ax1.set_xticks(np.arange(0.0*mm, 0.55*mm, 0.05*mm)) |
|
|
|
|
|
ax1.set_yticks(np.arange(0.0*mm, 0.55*mm, 0.05*mm)) |
|
|
|
|
|
|
|
|
#ax1.set_xticks(np.arange(0.0*mm, 0.55*mm, 0.05*mm)) |
|
|
|
|
|
#ax1.set_yticks(np.arange(0.0*mm, 0.55*mm, 0.05*mm)) |
|
|
ax1.set_xlabel('X-Position of object [mm]', fontdict=font) |
|
|
ax1.set_xlabel('X-Position of object [mm]', fontdict=font) |
|
|
ax1.set_ylabel('Y-Position of object [mm]', fontdict=font) |
|
|
ax1.set_ylabel('Y-Position of object [mm]', fontdict=font) |
|
|
ax1.grid(alpha=0.6) |
|
|
ax1.grid(alpha=0.6) |
|
|
for label in ax1.xaxis.get_ticklabels(): |
|
|
|
|
|
label.set_rotation(90) |
|
|
|
|
|
|
|
|
#for label in ax1.xaxis.get_ticklabels(): |
|
|
|
|
|
# label.set_rotation(90) |
|
|
|
|
|
|
|
|
ax2.set_ylim([0.1*mm, 0.6*mm]) |
|
|
ax2.set_ylim([0.1*mm, 0.6*mm]) |
|
|
ax2.set_xlim([0.0*mm, 0.2*mm]) |
|
|
ax2.set_xlim([0.0*mm, 0.2*mm]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pos_counter += 1 |
|
|
pos_counter += 1 |
|
|
|
|
|
|
|
|
ax1.plot(art_info[:, 1], art_info[:, 2], color="Gold", label="ART System", linewidth=5, marker="x") |
|
|
|
|
|
|
|
|
ax1.plot(art_info[:, 1], art_info[:, 2], color="green", label="ART System", linewidth=1) |
|
|
|
|
|
|
|
|
print("x=", art_info[:, 1]) |
|
|
print("x=", art_info[:, 1]) |
|
|
print("y=", art_info[:, 2]) |
|
|
print("y=", art_info[:, 2]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Decide what scaling_factors and Recording |
|
|
# Decide what scaling_factors and Recording |
|
|
scale_factors = np.arange(0.001, 0.0035, 0.0005) |
|
|
|
|
|
localization.k_nearest = 5 |
|
|
|
|
|
|
|
|
#scale_factors = np.arange(0.001, 0.0035, 0.0005) |
|
|
|
|
|
scale_factors = [1] |
|
|
|
|
|
localization.k_nearest = 15 |
|
|
|
|
|
|
|
|
Recording = 15 # which ART Recording to pick |
|
|
|
|
|
|
|
|
Recording = 5 # which ART Recording to pick |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for sf in scale_factors: |
|
|
for sf in scale_factors: |
|
|
|
|
|
|
|
|
positions = positions * mm # convert from m to mm |
|
|
positions = positions * mm # convert from m to mm |
|
|
|
|
|
|
|
|
# Plot IndLoc Positions |
|
|
# Plot IndLoc Positions |
|
|
ax1.plot(positions[:, 0], positions[:, 1], label="sf = " + str(sf), linewidth=2) |
|
|
|
|
|
ax2.plot(positions[:, 2], positions[:, 1], label="sf = " + str(sf), linewidth=2) |
|
|
|
|
|
|
|
|
ax1.plot(positions[:, 0], positions[:, 1], label="sf = " + str(sf), linewidth=1) |
|
|
|
|
|
ax2.plot(positions[:, 2], positions[:, 1], label="sf = " + str(sf), linewidth=1) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plot_art(Recording) |
|
|
plot_art(Recording) |