-
Notifications
You must be signed in to change notification settings - Fork 15
PolygonObstacle
ORCA has always used polygon obstacles by default. Best place to start might be here. This is how a polygon obstacle is created in the kdtree spatial database. Currently only ORCA understands the polygon-based obstacles. All that really needs to be done is to input a polygon obstacle into the environment is to provide a list of vertices. They don't really need to be convex and connected either.
To create a polygon obstacle a list of vertices needs to be given to the constructor. This list should specify the vertices in counter clockwise order.
Polygon obstacle can also be created using a testcase file. Here is the syntax to define a polygon obstacle in the testcase:
<polygonObstacle>
<vertex> <x></x> <y></y> <z></z> </vertex>
<vertex> <x></x> <y></y> <z></z> </vertex>
<vertex> <x></x> <y></y> <z></z> </vertex>
...
...
...
</polygonObstacle>
In the code, it is used in here .
Best of luck.