(self, ue_ip, ue_port, env_name)
| 15 | |
| 16 | class UEBridge: |
| 17 | def __init__(self, ue_ip, ue_port, env_name): |
| 18 | self.kill_failed_process() |
| 19 | time.sleep(1) |
| 20 | |
| 21 | port = self.find_available_port() |
| 22 | print(f"Available port: {port}") |
| 23 | self.modify_port_in_ini(port, env_name) |
| 24 | ue_port = port |
| 25 | |
| 26 | self.env_name = env_name |
| 27 | self._sim_thread = threading.Thread(target=self._init_ue_sim) |
| 28 | self._sim_thread.start() |
| 29 | time.sleep(15) |
| 30 | |
| 31 | self._client = Client((ue_ip, ue_port)) |
| 32 | self._connection_check() |
| 33 | |
| 34 | self._camera_init() |
| 35 | print("cam init") |
| 36 | |
| 37 | def find_available_port(self): |
| 38 | port = 9000 |
nothing calls this directly
no test coverage detected