openai / roboschool

DEPRECATED: Open-source software for robot simulation, integrated with OpenAI Gym.
Other
2.13k stars 488 forks source link

RoboschoolInvertedPendulumSwingup starts RoboschoolInvertedPendulum without Swingup #192

Closed schneimo closed 1 year ago

schneimo commented 5 years ago

When we start a RoboschoolInvertedPendulumSwingup-v1 environment, Gym starts a RoboschoolInvertedPendulum-v1 environment instead. This is because the swingup parameter in the class RoboschoolInvertedPendulumSwingup is set incorrectly.

A new constructor has been added so that RoboschoolInvertedPendulum is called with the correct parameters.

schneimo commented 5 years ago

If someone else wants to use this environment, even it is not maintained anymore, you can also pass 'swingup=True' as an argument to gym:

gym.make('RoboschoolInvertedPendulumSwingup-v1', swingup=True)

This solves the problem also, but I think this is not the clear way to create this environment, since even without 'swingup=True', we pass the explicit Swingup-Environment name as an argument, so it is clear that Gym should not create the similar balancing task.