|
85 | 85 | warnings.filterwarnings("ignore", message="H264Decoder.*failed to decode") |
86 | 86 |
|
87 | 87 |
|
88 | | -class FakeRTC(Resource): |
89 | | - """Fake WebRTC connection for testing with recorded data.""" |
| 88 | +class ReplayRTC(Resource): |
| 89 | + """Replay WebRTC connection for testing with recorded data.""" |
90 | 90 |
|
91 | 91 | def __init__(self, *args, **kwargs): |
92 | 92 | get_data("unitree_office_walk") # Preload data for testing |
@@ -193,8 +193,8 @@ def start(self) -> None: |
193 | 193 | match self.connection_type: |
194 | 194 | case "webrtc": |
195 | 195 | self.connection = UnitreeWebRTCConnection(self.ip) |
196 | | - case "fake": |
197 | | - self.connection = FakeRTC(self.ip) |
| 196 | + case "replay": |
| 197 | + self.connection = ReplayRTC(self.ip) |
198 | 198 | case "mujoco": |
199 | 199 | from dimos.robot.unitree_webrtc.mujoco_connection import MujocoConnection |
200 | 200 |
|
@@ -342,18 +342,18 @@ def __init__( |
342 | 342 | """Initialize the robot system. |
343 | 343 |
|
344 | 344 | Args: |
345 | | - ip: Robot IP address (or None for fake connection) |
| 345 | + ip: Robot IP address (or None for replay connection) |
346 | 346 | output_dir: Directory for saving outputs (default: assets/output) |
347 | 347 | websocket_port: Port for web visualization |
348 | 348 | skill_library: Skill library instance |
349 | | - connection_type: webrtc, fake, or mujoco |
| 349 | + connection_type: webrtc, replay, or mujoco |
350 | 350 | """ |
351 | 351 | super().__init__() |
352 | 352 | self._dimos = Dimos(n=8, memory_limit="8GiB") |
353 | 353 | self.ip = ip |
354 | 354 | self.connection_type = connection_type or "webrtc" |
355 | 355 | if ip is None and self.connection_type == "webrtc": |
356 | | - self.connection_type = "fake" # Auto-enable playback if no IP provided |
| 356 | + self.connection_type = "replay" # Auto-enable playback if no IP provided |
357 | 357 | self.output_dir = output_dir or os.path.join(os.getcwd(), "assets", "output") |
358 | 358 | self.websocket_port = websocket_port |
359 | 359 | self.lcm = LCM() |
|
0 commit comments