mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
hadn't the time to check, also refractord every use of cameras handler to settings manager, might have missed
22 lines
661 B
Python
22 lines
661 B
Python
import tornado.ioloop
|
|
|
|
from app.ChameleonVisionApp import ChameleonApplication
|
|
from app.classes.SettingsManager import SettingsManager
|
|
from tornado.options import options
|
|
from app.handlers.VisionHandler import VisionHandler
|
|
|
|
if __name__ == "__main__":
|
|
SettingsManager()
|
|
|
|
#VisionHandler().run()
|
|
# SettingsManager().save_settings()
|
|
|
|
tornado.options.parse_command_line()
|
|
app = ChameleonApplication()
|
|
print(f"Serving on port {options.port}")
|
|
app.listen(options.port)
|
|
tornado.ioloop.IOLoop.current().start()
|
|
|
|
#TODO: create process for each camera
|
|
# create proccess loop and camera publisher
|
|
# bridge network tables for each camera |