Package tools.PathplannerFlip.PathFlip
Class PathplannerPathFlip
Pathplanner Path Flipper
Flips paths of your choice across the y coordinate axis
This class extends VarArgumentedTool and takes in a list of path names as arguments.
It reads each .path file, flips the coordinates, and saves a new .path file with " Flipped" appended to the original name.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final com.fasterxml.jackson.databind.ObjectMapperstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic booleanstatic String[]static voidflipWaypoint(com.fasterxml.jackson.databind.node.ObjectNode parent, String fieldName) static voidlogPath(PathplannerPathFlip.FLIP_STATUS status, String pathName) Methods inherited from class tools.ToolClasses.VarArgumentedTool
run
-
Field Details
-
FIELD_HEIGHT
- See Also:
-
PATH_DIR
- See Also:
-
mapper
-
-
Constructor Details
-
PathplannerPathFlip
public PathplannerPathFlip()
-
-
Method Details
-
execute
- Specified by:
executein classVarArgumentedTool<String>
-
fileValid
-
flipPaths
- Throws:
IOException
-
flipWaypoint
public static void flipWaypoint(com.fasterxml.jackson.databind.node.ObjectNode parent, String fieldName) -
logPath
-