Important Note for Other Users (Not a Critical Issue):
veins_inet cannot calculate intersections with concave buildings. This script will not work directly in such cases. Buildings exported from OpenStreetMap (OSM) are frequently represented as concave polygons.
After generating obstacles.xml, you must convert the concave buildings into convex shapes. A common approach is to use a convex hull algorithm, which can be implemented in a Python script, for example.