maxspahn / gym_envs_planar

Planar gym environments
7 stars 4 forks source link

Ground_robot_arm not running due to error in reset() function #6

Closed alxschwrz closed 2 years ago

alxschwrz commented 2 years ago

When executing examples/ground_robot_arm.py, an error is thrown, due to wrong amount of arguments passed to the function reset()

Error message: ob = env.reset(np.array([0.0, 0.0, 0.0, 0.0]), np.array([1.0, 0.0]), np.array([0.0])) TypeError: reset() takes 1 positional argument but 4 were given

similar issue as in #5

maxspahn commented 2 years ago

Similar error as #5

maxspahn commented 2 years ago

Related error in groundRobot:continuous_dynamics.

The continuous dynamics do not reflect the implementation of differential drive in the other examples. This needs major revision.

alxschwrz commented 2 years ago

similar problem occurs when trying to run the ground_robot.py in the acceleration environments groundRobots/env/acc.py and groundRobots/env/acc_dd.py

To reproduce: I changed line 7 in the ground_robot.py example to either env = gym.make('ground-robot-acc-v0', dt=0.01) or env = gym.make('ground-robot-acc-v0', dt=0.01)

Error message for both environments: return self.env.reset(**kwargs) TypeError: reset() got an unexpected keyword argument 'pos'

The arguments, which are passed to the reset function differ between acceleration and velocity environments.