feat: add error graphic

This commit is contained in:
2025-07-01 12:25:57 +03:00
parent 9a289bd372
commit f78b01dcec
3 changed files with 69 additions and 37 deletions

View File

@@ -127,6 +127,8 @@ class Simulator:
break
dangle, velocity = signal
drone_x, drone_y = self.autonomePilot.get_position()
self.viz_manager.update_error_plot(i, drone_x, drone_y, self.current_x, self.current_y)
# Сдвиг камеры
action = ActionChains(self.driver)
@@ -154,14 +156,9 @@ class Simulator:
# Передаем изображение в AutoPilot для анализа
self.autonomePilot.handle(rotated_im)
rotated_im.save(f"./images/{i}.png")
# Обновляем визуализацию каждые несколько итераций для производительности
if i % 5 == 0:
self.update_map()
self.viz_manager.update_display()
self.viz_manager.pause(0.25)
self.update_map()
self.viz_manager.update_display()
# Финальное обновление карты
self.update_map()