|
20 | 20 | from typing import TypeAlias |
21 | 21 |
|
22 | 22 | from aiortc import MediaStreamTrack # type: ignore[import-untyped] |
23 | | -from go2_webrtc_driver.constants import ( # type: ignore[import-untyped] |
| 23 | +import numpy as np |
| 24 | +from numpy.typing import NDArray |
| 25 | +from reactivex import operators as ops |
| 26 | +from reactivex.observable import Observable |
| 27 | +from reactivex.subject import Subject |
| 28 | +from unitree_webrtc_connect.constants import ( # type: ignore[import-untyped] |
24 | 29 | RTC_TOPIC, |
25 | 30 | SPORT_CMD, |
26 | 31 | VUI_COLOR, |
27 | 32 | ) |
28 | | -from go2_webrtc_driver.webrtc_driver import ( # type: ignore[import-untyped] |
29 | | - Go2WebRTCConnection, |
| 33 | +from unitree_webrtc_connect.webrtc_driver import ( # type: ignore[import-untyped] # type: ignore[import-untyped] |
| 34 | + UnitreeWebRTCConnection as LegionConnection, |
30 | 35 | WebRTCConnectionMethod, |
31 | 36 | ) |
32 | | -import numpy as np |
33 | | -from numpy.typing import NDArray |
34 | | -from reactivex import operators as ops |
35 | | -from reactivex.observable import Observable |
36 | | -from reactivex.subject import Subject |
37 | 37 |
|
38 | 38 | from dimos.core import rpc |
39 | 39 | from dimos.core.resource import Resource |
@@ -82,7 +82,7 @@ def __init__(self, ip: str, mode: str = "ai") -> None: |
82 | 82 | self.mode = mode |
83 | 83 | self.stop_timer: threading.Timer | None = None |
84 | 84 | self.cmd_vel_timeout = 0.2 |
85 | | - self.conn = Go2WebRTCConnection(WebRTCConnectionMethod.LocalSTA, ip=self.ip) |
| 85 | + self.conn = LegionConnection(WebRTCConnectionMethod.LocalSTA, ip=self.ip) |
86 | 86 | self.connect() |
87 | 87 |
|
88 | 88 | def connect(self) -> None: |
|
0 commit comments