"""
|
Simple image viewer for simulation results
|
"""
|
from PIL import Image
|
import matplotlib.pyplot as plt
|
|
# Open the saved simulation image
|
img = Image.open('simulation_results.png')
|
|
# Display
|
plt.figure(figsize=(16, 10))
|
plt.imshow(img)
|
plt.axis('off')
|
plt.title('Simulation Results with Approach Path')
|
plt.tight_layout()
|
plt.savefig('view_results.png', dpi=150, bbox_inches='tight')
|
print("Saved view_results.png")
|
print(f"Image size: {img.size}")
|
print("\n✓ Approach path (orange dashed) + Work path (black) are now visualized")
|
print("✓ Mower starts from offset position and follows approach path to work path start")
|
print("\n⚠️ Note: Trajectory still has issues after ~40s due to segment progression bug")
|
print(" This is the existing Pure Pursuit restoration issue, not related to approach path")
|