pathplanner icon indicating copy to clipboard operation
pathplanner copied to clipboard

Make navgrid JSON parsing public

Open katzuv opened this issue 2 years ago • 1 comments

The navgrid manipulation GUI is very convenient for marking a list of points for any purpose, not just for marking obstacles (we want to use it to mark shooting positions the robot could choose to go to). However, it seems that the code that parses that JSON is internal to PathPlannerLib. While we can copy the code, it'll be nice to have a public function that can be used to parse that JSON file, preferably a function that gets a custom filename.

katzuv avatar Feb 02 '24 18:02 katzuv

The navgrid is just really not designed for that. It is specifically for obstacles, not really good for a simple list of positions. You're much better off just having your list of shooting positions in code over using a large, slow to parse JSON file for that.

mjansen4857 avatar Feb 05 '24 18:02 mjansen4857