Solved problem with Grid Generation. Static obstacles are now properly detected.