You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importsimpler_envfromsimpler_env.utils.env.observation_utilsimportget_image_from_maniskill2_obs_dictimportmediapyimportsapien.coreassapienimportnumpyasnpfrommbodied.types.motion.controlimportHandControlfrommbodied.robotsimportRobotfrommbodied.types.sense.visionimportImageclassSimplerENVRobot(Robot):
def__init__(self):
self.task_name="google_robot_pick_coke_can"# @param ["google_robot_pick_coke_can", "google_robot_move_near", "google_robot_open_drawer", "google_robot_close_drawer", "widowx_spoon_on_towel", "widowx_carrot_on_plate", "widowx_stack_cube", "widowx_put_eggplant_in_basket"]self.env=simpler_env.make(self.task_name)
# Note: we turned off the denoiser as the colab kernel will crash if it's turned on# To use the denoiser, please git clone our SIMPLER environments# and perform evaluations locally.sapien.render_config.rt_use_denoiser=Falseself.obs, self.reset_info=self.env.reset()
print("Reset info", self.reset_info)
defdo(self, action: HandControl):
# Map the motion to the robot.print("[ROBOT ACTION]:", action)
obs, reward, done, truncated, info=self.env.step(np.array(action.flatten('list')))
self.obs=obsdefcapture(self) ->Image:
# Capture observation from the robot.returnImage(get_image_from_maniskill2_obs_dict(self.env, self.obs))
robot=SimplerENVRobot()
robot.capture()
The following error occurs.
TypeError: array_validator() got an unexpected keyword argument 'labels'
How can I solve it?
The text was updated successfully, but these errors were encountered:
I executed the code as below.
The following error occurs.
How can I solve it?
The text was updated successfully, but these errors were encountered: