duckietown / gym-duckietown

Self-driving car simulator for the Duckietown universe
http://duckietown.org
Other
51 stars 19 forks source link

Collision detection bug #27

Closed maximecb closed 6 years ago

maximecb commented 6 years ago

@bhairavmehta95 I was driving around Duckietown, and kept hitting obstacles in unexpected ways. I did some more testing, and I think there's still some issues with collision detection. For some reason, it intersects too eagerly.

I added a new command line option so we can see both the object and the duckiebot's bounding box. You can run it with: ./manual_control.py --map-name loop_obstacles --draw-bbox

And you can press backspace to restart in a random new location.

The video below illustrates what I'm talking about. When driving close to an object, the bounding boxes visually don't intersect, but a collision is still detected. I can't drive past even though there seems to be no intersection:

https://www.youtube.com/watch?v=lN9YC1DI-kc&feature=youtu.be