Walk Area and Obstacles#
After intrinsic and extrinsic calibration, you can define a walkable area and obstacle polygons directly in the calibrated view. This allows you to model walkable regions and export them as a wkt-string in world coordinates (meters). The string may be directly imported in PedPy.
All walk area data is stored in your .pet file.
Important
If you calculate a new intrinsic calibration, you must draw the polygons again.
The resulting polygons are 2D polygons on the ground plane. If desired, polygons can be drawn on a non-zero height (e.g. for tracing the upper edge of a fence). If you draw on an object which is not on the ground plane, remember to set the height correctly for the polygon. The vertices of such polygons are projected onto the ground plane on export.
Requirements#
Before setting up walk area polygons, check that:
intrinsic calibration is active
extrinsic calibration is available and usable
The walk area feature is available in the calibration tab in the walk area section.
PeTrack Workflow#
1. Open the walk area controls#
First, enable:
show/hide completelyto display polygons in the calibrated viewenable editing-modeto start drawing
You can switch between drawing modes using:
add walkareaadd obstacles
Note
Only one walkable polygon can exist at a time. After creating it, the drawing mode automatically switches to obstacles.
2. Draw polygons in the calibrated view#
Double click the left mouse button in the video view to add polygon vertices. To close a polygon, double click close to the first point.
While editing:
Backspaceremoves the last placed pointEscapecancels the polygon currently being drawn
3. Manage polygons in the table#
Each polygon is listed with:
id
type (
walkableorobstacle)height
enabled status
You can adjust the height of each polygon and temporarily disable polygons without deleting them.
Use the delete button to remove a polygon.
4. Validate geometry#
PeTrack validates enabled polygons automatically. Invalid obstacle rows are highlighted in red.
Typical validation errors are:
obstacle outside the walkable area
overlapping enabled obstacles
walkable area completely inside an obstacle
Export is only possible while validation is successful.
5. Import/Export WKT#
Use the walkarea input/output section for exchanging polygons:
export wkt-stringexports walkable area and all enabled obstacles as world-coordinate WKTimport wkt-stringimports WKT and overwrites all current polygons
It is possible to import both POLYGON and POLYGON Z wkt-strings. If a z-value is parsed, it will be set as the height for the respective polygon. Make sure to always use meters as the unit here.
Important
Import replaces the complete current walk area setup (walkable polygon and all obstacles).