Healthcare-Robotics / assistive-gym

Assistive Gym, a physics-based simulation framework for physical human-robot interaction and robotic assistance.
MIT License
301 stars 73 forks source link

Issue with creating a new environment #15

Closed deepakraina99 closed 3 years ago

deepakraina99 commented 3 years ago

I created a new environment by following the steps given in https://github.com/Healthcare-Robotics/assistive-gym/wiki/6.-Creating-a-New-Assistive-Environment.

I created an environment almost similar to BedBathingJacoEnv, but I get an error when I run it using the command python3 -m assistive_gym --env "TaskRobotEnv-v0":

gym.error.UnregisteredEnv: No registered env with id: TaskRobotEnv-v0
Zackory commented 3 years ago

Hi Deepak. You may have installed the recent v1.0 of Assistive Gym. I have yet to update the environment creation example for v1.0 (as mentioned in the note at the top of the Wiki page you linked). First, can you check if you have installed v0.1 from this branch?

The command python3 -m assistive_gym --env ... is new to v1.0. In the past it used to be python3 env_viewer.py --env .... See this page for more details: https://github.com/Healthcare-Robotics/assistive-gym/wiki/v0.1

deepakraina99 commented 3 years ago

Hi @Zackory Thanks. v0.1 solved the issue.