BipedalWalker error


#1

Hello,
I’m trying to run BipedalWalker v2, and from time to time I get this error:

self.world.RayCast(self.lidar[i], self.lidar[i].p1, self.lidar[i].p2)
AssertionError: r.LengthSquared() > 0.0f

Has it happend to anyone ? Any tips on this ?

Thanks !


#2

Check if:

  1. The actions from your policy are not NaNs

  2. The actions fall within the env.action_space (use: env.step(np.clip(action, -a_bound, a_bound))