5050DIGIT_DICT = None
5151
5252
53- DATASET_PATH = "test_iris"
54- INSTRUCTION = "pick up cube"
53+ RECORD_FPS = 30
5554
5655robot2world = {
5756 "right" : rcs .common .Pose (
@@ -123,12 +122,15 @@ def get_env():
123122
124123 scene = EmptyWorldFR3Duo ()
125124 sim_cfg_data = scene .config ()
126- sim_cfg_data .sim_cfg = SimConfig (async_control = True , realtime = True , frequency = 30 , max_convergence_steps = 500 )
125+ sim_cfg_data .sim_cfg = SimConfig (
126+ async_control = True , realtime = True , frequency = RECORD_FPS , max_convergence_steps = 500
127+ )
127128 sim_cfg_data .relative_to = RelativeTo .CONFIGURED_ORIGIN
128129 if sim_cfg_data .root_frame_objects is None :
129130 sim_cfg_data .root_frame_objects = {}
130131 # cfg.root_frame_objects["green_cube"] = (rcs.OBJECT_PATHS["green_cube"], Pose(translation=[0.5, 0, 0.5], quaternion=[0, 0, 0, 1]))
131- sim_cfg_data .task_cfg = PickTaskConfig (robot_name = "left" )
132+ # sim_cfg_data.task_cfg = PickTaskConfig(robot_name="left")
133+ sim_cfg_data .task_cfg = ParallelPickTaskConfig ()
132134
133135 env_rel = scene .create_env (sim_cfg_data )
134136 env_rel = StorageWrapper (
@@ -144,7 +146,7 @@ def get_env():
144146def main ():
145147 env_rel , operator = get_env ()
146148 env_rel .reset ()
147- tele = TeleopLoop (env_rel , operator )
149+ tele = TeleopLoop (env_rel , operator , env_frequency = RECORD_FPS , robot_platform = ROBOT_INSTANCE )
148150 with env_rel , tele : # type: ignore
149151 tele .environment_step_loop ()
150152
0 commit comments