PathBench
PathBench copied to clipboard
Working with external (3D) maps
Hi, I am interested in working with PathBench for 3D pathfinding visualisation.
In your paper (https://doi.org/10.48550/arXiv.2105.01777) you mention that maps from MovingAI's Warframe voxel benchmarks are able to be easily integrated. However, I am struggling to understand the expected workflow for loading the external maps. I have had trouble attempting a direct conversion of the grid to a pickle file also .
I would appreciate any pointers in the right direction. Perhaps there is an old script laying around for parsing the Warframe benchmarks into a compatible format?
Cheers, Thomas
@uncobruce Please take a look at this when you get a chance
Hi @ThomasNobesMonash,
For external maps, you can write scripts to parse them into .json format. The json file will have a dictionary that contains a nested list that specify the composition of the map ( 0.0 = free space, 1.0 = obstacle, 2.0 = agent start location, 3.0 = goal location) , and the agent start location/goal location for the map. Please see the screenshot below for a 2D map example. You would need to add another dimension in the nested grid list for 3D maps. The start/goal positions would then become [1, 23, 12] etc. Please try it out and let us know if it works.
Thanks, Bruce