yincheng.zhong
8 天以前 b9aca884f88abdda860d5c62be841a9e21ce68a1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
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")