perezjln / gym-lowcostrobot

Other
16 stars 3 forks source link

Missing cameras and object_qpos in ReachCubeEnv enviroment #30

Open rj-maniro opened 1 month ago

rj-maniro commented 1 month ago

I am trying to run examples/lerobotdataset_save.py but encountered a few issues:

1) I am getting an error here: https://github.com/perezjln/gym-lowcostrobot/blob/main/examples/lerobotdataset_save.py#L123

AttributeError:` 'ReachCubeEnv' object has no attribute 'cameras' because there's no camera attribute in the Env object

2) Similarly, object_qpos appears to be missing in the ReachCubeEnv environment, causing an error in https://github.com/perezjln/gym-lowcostrobot/blob/main/examples/lerobotdataset_save.py#L136

3) ReachCubeEnv also couldn't find the assets files. Changing https://github.com/perezjln/gym-lowcostrobot/blob/main/gym_lowcostrobot/envs/reach_cube_env.py#L79 to

self.model = mujoco.MjModel.from_xml_path("gym_lowcostrobot/assets/low_cost_robot_6dof/reach_cube.xml")

fixed the issue though

perezjln commented 1 month ago

thanks very much @rj-maniro , could you maybe make a pull request wrt your fix-suggestion.

I'll check later this week for the other points.

perezjln commented 1 month ago

1 and 2 should be fixed - @rj-maniro are you still experiencing issues with 3. ? https://github.com/perezjln/gym-lowcostrobot/commit/8095dbcfab9714b77cb7831b2a1c7f863c1ba87d https://github.com/perezjln/gym-lowcostrobot/commit/cc8cc0dfc00767fd1e2ae668167c78595c4ed9c9