Open sash-a opened 3 years ago
Sounds like a reasonable fix for now. I think I will have to go through the code again at some point. I did not really find time and motivation as I was stuck with the missing observations anyway, making the project hard to use compared to mujoco. Maybe there will be a resolution to all this soon.
Noticed this when I was trying to find a fix for this issue. The bug seems to be with these two lines:
https://github.com/benelot/pybullet-gym/blob/bc68201c8101c4e30dde95f425647a0709ee2f29/pybulletgym/envs/mujoco/robots/locomotors/ant.py#L29
and
https://github.com/benelot/pybullet-gym/blob/bc68201c8101c4e30dde95f425647a0709ee2f29/pybulletgym/envs/mujoco/envs/locomotion/walker_base_env.py#L59-L60
I'm not sure if it should be changed in
Ant
or inWalkerBaseMuJoCoEnv
not sure if other envs could benefit from this too? I made the change in Ant so as not to affect other envs.Steps to reproduce the bug, simply run:
It should print 1000 indicating that the Ant run for the max number of steps, but its torso should have been touching the ground the whole time, which is undesired behavior.