MCPcopy Create free account
hub / github.com/SHAILAB-IPEC/OpenFly-Platform / __init__

Method __init__

scripts/sim/ue_bridge.py:17–35  ·  view source on GitHub ↗
(self, ue_ip, ue_port, env_name)

Source from the content-addressed store, hash-verified

15
16class 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

Callers

nothing calls this directly

Calls 6

kill_failed_processMethod · 0.95
find_available_portMethod · 0.95
modify_port_in_iniMethod · 0.95
_connection_checkMethod · 0.95
_camera_initMethod · 0.95
ClientClass · 0.85

Tested by

no test coverage detected