Skip to content

Commit d2e35b7

Browse files
committed
fix: printing and sim sleep
1 parent 1c7a9cb commit d2e35b7

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

examples/inference/franka.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
PORT = 20000
7979
CONFIG_PATH = Path(__file__).with_suffix(".json")
8080

81+
logging.basicConfig(
82+
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
83+
level=logging.INFO,
84+
)
85+
8186

8287
robot2world = {
8388
"right": rcs.common.Pose(
@@ -249,7 +254,9 @@ def loop(self):
249254
# print(obs["left"]["joints"], obs["left"]["gripper"], obs["right"]["joints"], obs["right"]["gripper"])
250255

251256
obs_dict = self.obs_rcs2agents(obs)
252-
self.frame_rate()
257+
258+
if ROBOT_INSTANCE == RobotPlatform.HARDWARE:
259+
self.frame_rate()
253260

254261

255262
def get_env(cfg: InferenceConfig) -> gym.Env:

0 commit comments

Comments
 (0)