plaza_preprocessing.optimizer.graphprocessor package

Submodules

plaza_preprocessing.optimizer.graphprocessor.graphprocessor module

class plaza_preprocessing.optimizer.graphprocessor.graphprocessor.GraphProcessor[source]

Bases: object

create_graph_edges(plaza_geometry, entry_points)[source]

create graph edges to connect all entry points

Return type:List[LineString]
optimize_lines(plaza_geometry, lines, tolerance_m)[source]

optimize or simplify a list of shortest paths

Parameters:
  • plaza_geometry (Polygon) – The geometry which the optimized lines must be inside of
  • lines (List[LineString]) – a list of lines to optimize
  • tolerance_m (float) – new line will be inside this distance (in meters) from the original line. Should be the same as obstacle buffer.
Return type:

List[LineString]

Returns:

List of optimized LineStrings

plaza_preprocessing.optimizer.graphprocessor.spiderwebgraph module

class plaza_preprocessing.optimizer.graphprocessor.spiderwebgraph.SpiderWebGraphProcessor(spacing_m, visibility_delta_m)[source]

Bases: plaza_preprocessing.optimizer.graphprocessor.graphprocessor.GraphProcessor

Process a plaza with a spider web graph

create_graph_edges(plaza_geometry, entry_points)[source]

create a spiderwebgraph and connect edges to entry points

Return type:List[LineString]
optimize_lines(plaza_geometry, lines, tolerance_m)[source]

simplify lines to reduce amount of line points. Optimizations that fall outside of the plaza will be discarded

Return type:List[LineString]

plaza_preprocessing.optimizer.graphprocessor.visibilitygraph module

class plaza_preprocessing.optimizer.graphprocessor.visibilitygraph.VisibilityGraphProcessor(visibility_delta_m)[source]

Bases: plaza_preprocessing.optimizer.graphprocessor.graphprocessor.GraphProcessor

process a plaza using a visibility graph

create_graph_edges(plaza_geometry, entry_points)[source]

create a visibility graph with all plaza and entry points

Module contents