feat: add error graphic
This commit is contained in:
11
simulator.py
11
simulator.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user