Skip to content

Commit a829ab3

Browse files
authored
Merge pull request #681 from dimensionalOS/rename-fake-to-replay
Rename FakeRTC --> ReplayRTC Former-commit-id: 500edac
2 parents 231f345 + bc33bbc commit a829ab3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pytest -s dimos/
9999

100100
#### Test Dimensional with a replay UnitreeGo2 stream (no robot required)
101101
```bash
102-
CONNECTION_TYPE=fake python dimos/robot/unitree_webrtc/unitree_go2.py
102+
CONNECTION_TYPE=replay python dimos/robot/unitree_webrtc/unitree_go2.py
103103
```
104104

105105
#### Test Dimensional with a simulated UnitreeGo2 in MuJoCo (no robot required)

dimos/robot/unitree_webrtc/unitree_go2.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
warnings.filterwarnings("ignore", message="H264Decoder.*failed to decode")
8686

8787

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."""
9090

9191
def __init__(self, *args, **kwargs):
9292
get_data("unitree_office_walk") # Preload data for testing
@@ -193,8 +193,8 @@ def start(self) -> None:
193193
match self.connection_type:
194194
case "webrtc":
195195
self.connection = UnitreeWebRTCConnection(self.ip)
196-
case "fake":
197-
self.connection = FakeRTC(self.ip)
196+
case "replay":
197+
self.connection = ReplayRTC(self.ip)
198198
case "mujoco":
199199
from dimos.robot.unitree_webrtc.mujoco_connection import MujocoConnection
200200

@@ -342,18 +342,18 @@ def __init__(
342342
"""Initialize the robot system.
343343
344344
Args:
345-
ip: Robot IP address (or None for fake connection)
345+
ip: Robot IP address (or None for replay connection)
346346
output_dir: Directory for saving outputs (default: assets/output)
347347
websocket_port: Port for web visualization
348348
skill_library: Skill library instance
349-
connection_type: webrtc, fake, or mujoco
349+
connection_type: webrtc, replay, or mujoco
350350
"""
351351
super().__init__()
352352
self._dimos = Dimos(n=8, memory_limit="8GiB")
353353
self.ip = ip
354354
self.connection_type = connection_type or "webrtc"
355355
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
357357
self.output_dir = output_dir or os.path.join(os.getcwd(), "assets", "output")
358358
self.websocket_port = websocket_port
359359
self.lcm = LCM()

0 commit comments

Comments
 (0)