harvitronix / reinforcement-learning-car

Using reinforcement learning to teach a car to avoid obstacles.
MIT License
488 stars 202 forks source link

Chipmunk abort #21

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi, whilst running the code on Python 3.6.3 (Mac) whilst running python3 learning.py I was met with Aborting due to Chipmunk error: Mass must be positive and finite. Failed condition: 0.0f <= mass && mass < INFINITY Source:chipmunk_src/src/cpBody.c:257

Do you know how this might be fixed?

Thanks

sarkararpan710 commented 6 years ago

No idea actually, I have been having the same problem myself. Please let me know once fixed. Thank You.

ghost commented 6 years ago

Running using UBUNTU fixed the problem for me.

sajeevan16 commented 5 years ago

c_body = pymunk.Body(pymunk.inf, pymunk.inf) c_body = pymunk.Body(body_type=pymunk.Body.STATIC) In previous versions of Pymunk, you used inf to create static bodies. This has changed. See Body for details.