semitable / robotic-warehouse

Multi-Robot Warehouse (RWARE): A multi-agent reinforcement learning environment
MIT License
292 stars 69 forks source link

AttributeError: `Warehouse` object has no attribute `shelfs` #18

Closed sym-lening closed 1 year ago

sym-lening commented 1 year ago

image I am getting this error.

aryu99 commented 1 year ago

@sym-lening were you able to fix this?

sym-lening commented 1 year ago

No

aryu99 commented 1 year ago

@sym-lening call env.reset() before rendering. The shelf attribute is initialized inside reset.

env = gym.make("rware-tiny-2ag-v1", sensor_range=9, request_queue_size=2, layout=layout)
env.reset()
env.render()
time.sleep(5)
sym-lening commented 1 year ago

it works.