-
Notifications
You must be signed in to change notification settings - Fork 0
treeplot.py
This script generates a plot using matplotlib visualizing all of the original waypoints, the safe_waypoints, the restricted region, and all valid paths.
matplotlib is used to make the plot for visualization.
tree is required to call all necessary functions for getting/generating data.
None.
Two parameters are set after the imports for easy access to changing those values:
DATA_SOURCE and INTERSECT_SAFE:
-
DATA_SOURCEis used to specify the file that should be passed totree.parse_data(). -
INTERSECT_SAFEis a boolean value that changes whether the valid paths are allowed to pass within the safety margin. IfTrue, paths are allowed to be closer to the restricted region than the safe waypoints are. IfFalse, The valid paths must also respect the safety margin. This is a parameter in thetree.find_valid_connections()function.