|
23 | 23 | ) |
24 | 24 | from rcs.envs.hw import FR3HW |
25 | 25 | from rcs.envs.sim import ( |
26 | | - CamRobot, |
27 | 26 | CollisionGuard, |
28 | 27 | GripperWrapperSim, |
29 | 28 | PickCubeSuccessWrapper, |
30 | 29 | RandomCubePos, |
31 | 30 | RobotSimWrapper, |
32 | 31 | SimWrapper, |
33 | 32 | ) |
34 | | -from rcs.envs.space_utils import VecType |
35 | 33 | from rcs.envs.utils import ( |
36 | 34 | default_fr3_hw_gripper_cfg, |
37 | 35 | default_fr3_hw_robot_cfg, |
@@ -352,68 +350,3 @@ def __call__( # type: ignore |
352 | 350 | } |
353 | 351 |
|
354 | 352 | return SimTaskEnvCreator()("fr3_simple_pick_up", render_mode, control_mode, delta_actions, cameras) |
355 | | - |
356 | | - |
357 | | -class FR3SimplePickUpSimDigitHandEnvCreator(EnvCreator): |
358 | | - def __call__( # type: ignore |
359 | | - self, |
360 | | - render_mode: str = "human", |
361 | | - control_mode: ControlMode = ControlMode.CARTESIAN_TRPY, |
362 | | - resolution: tuple[int, int] | None = None, |
363 | | - frame_rate: int = 0, |
364 | | - delta_actions: bool = True, |
365 | | - ) -> gym.Env: |
366 | | - if resolution is None: |
367 | | - resolution = (256, 256) |
368 | | - |
369 | | - cameras = { |
370 | | - "wrist": SimCameraConfig( |
371 | | - identifier="wrist_0", |
372 | | - type=CameraType.fixed, |
373 | | - resolution_height=resolution[1], |
374 | | - resolution_width=resolution[0], |
375 | | - frame_rate=frame_rate, |
376 | | - ) |
377 | | - } |
378 | | - |
379 | | - return SimTaskEnvCreator()("fr3_simple_pick_up_digit_hand", render_mode, control_mode, delta_actions, cameras) |
380 | | - |
381 | | - |
382 | | -class FR3LabPickUpSimDigitHandEnvCreator(EnvCreator): |
383 | | - def __call__( # type: ignore |
384 | | - self, |
385 | | - cam_robot_joints: VecType, |
386 | | - render_mode: str = "human", |
387 | | - control_mode: ControlMode = ControlMode.CARTESIAN_TRPY, |
388 | | - resolution: tuple[int, int] | None = None, |
389 | | - frame_rate: int = 0, |
390 | | - delta_actions: bool = True, |
391 | | - ) -> gym.Env: |
392 | | - if resolution is None: |
393 | | - resolution = (256, 256) |
394 | | - |
395 | | - cameras = { |
396 | | - "wrist": SimCameraConfig( |
397 | | - identifier="wrist_0", |
398 | | - type=CameraType.fixed, |
399 | | - resolution_height=resolution[1], |
400 | | - resolution_width=resolution[0], |
401 | | - frame_rate=frame_rate, |
402 | | - ), |
403 | | - "side": SimCameraConfig( |
404 | | - identifier="wrist_1", |
405 | | - type=CameraType.fixed, |
406 | | - resolution_height=resolution[1], |
407 | | - resolution_width=resolution[0], |
408 | | - frame_rate=frame_rate, |
409 | | - ), |
410 | | - } |
411 | | - |
412 | | - env_rel = SimTaskEnvCreator()( |
413 | | - "lab_simple_pick_up_digit_hand", |
414 | | - render_mode, |
415 | | - control_mode, |
416 | | - delta_actions, |
417 | | - cameras, |
418 | | - ) |
419 | | - return CamRobot(env_rel, cam_robot_joints, "lab_simple_pick_up_digit_hand") |
0 commit comments