mit-aera / FlightGoggles

A framework for photorealistic hardware-in-the-loop agile flight simulation using Unity3D and ROS. Developed by MIT AERA group.
http://flightgoggles.mit.edu
Other
402 stars 99 forks source link

Collision Detection on python/pyFlightGoggles #171

Closed legemeton closed 3 years ago

legemeton commented 3 years ago

I am using pyFlightGoggles and I noticed that while you can check if the unity camera has collided in env.py, it is not clear whether there are other means of detecting future collision (for example, raycasting). Does FlightGoggles offer such functionality, or is the only way to somehow alter the renderer itself?

Thank you for your time.

varunmurali1 commented 3 years ago

Sadly no, currently we do not support any "future" collision detection. You could extract this from the depth image (it is raycasted) but you would be limited to the resolution of the camera and field of view.