Skip to content

Commit 9000798

Browse files
committed
style: python linting
1 parent e06c68c commit 9000798

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

python/rcs/operator/quest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import threading
44
from dataclasses import dataclass, field
55
from time import sleep
6+
from typing import Any
67

78
import numpy as np
89
from rcs._core.common import Pose
@@ -93,11 +94,10 @@ def __init__(self, config: "QuestConfig", sim: Sim | None = None):
9394
self._step_env = False
9495
self._set_frame = {key: Pose() for key in self.controller_names}
9596
self._video_stream_manager = None
96-
self._video_streamers: dict[str, object] = {}
97-
# if self.config.simulation:
98-
# self._publisher = MujocoPublisher(self.sim.model, self.sim.data, self.config.mq3_addr, visible_geoms_groups=list(range(1, 3)))
97+
self._video_streamers: dict[str, Any] = {}
9998
if not self.config.simulation:
10099
self._publisher = FakeSimPublisher(FakeSimScene(), self.config.mq3_addr)
100+
# Not working code for digital twin:
101101
# robot_cfg = default_sim_robot_cfg("fr3_empty_world")
102102
# sim_cfg = SimConfig()
103103
# sim_cfg.async_control = True
@@ -200,9 +200,11 @@ def set_camera(self, observation: dict) -> None:
200200
if camera_name not in self._video_streamers:
201201
height, width = frame.shape[:2]
202202
stream_topic = self._get_stream_topic_name(camera_name)
203+
assert self._video_stream_manager is not None
203204
self._video_streamers[camera_name] = self._video_stream_manager.create_streamer(
204205
stream_topic, width, height
205206
)
207+
assert self._video_streamers[camera_name] is not None
206208
self._video_streamers[camera_name].update_cv_image(frame[:, :, ::-1])
207209

208210
@staticmethod

0 commit comments

Comments
 (0)