Skip to content

Commit 2ac1b47

Browse files
authored
Merge pull request #689 from dimensionalOS/dev-g1-changes
Fix spatial memory bug in g1 Former-commit-id: be94cb6
1 parent 83eac37 commit 2ac1b47

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dimos/robot/unitree_webrtc/unitree_g1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,6 @@ def start(self):
263263

264264
self._deploy_visualization()
265265

266-
if self.enable_perception:
267-
self._deploy_perception()
268-
269266
if self.enable_joystick:
270267
self._deploy_joystick()
271268

@@ -282,6 +279,9 @@ def start(self):
282279
self._deploy_camera()
283280
self._deploy_detection(self.nav.go_to)
284281

282+
if self.enable_perception:
283+
self._deploy_perception()
284+
285285
self.lcm.start()
286286

287287
# Setup agent with G1 skills
@@ -386,7 +386,7 @@ def _deploy_perception(self):
386386
output_dir=self.spatial_memory_dir,
387387
)
388388

389-
self.spatial_memory_module.video.transport = core.LCMTransport("/image", Image)
389+
self.spatial_memory_module.color_image.connect(self.camera.image)
390390
self.spatial_memory_module.odom.transport = core.LCMTransport("/odom", PoseStamped)
391391

392392
logger.info("Spatial memory module deployed and connected")

0 commit comments

Comments
 (0)