Folders and files Name Name Last commit message
Last commit date
parent directory
View all files
Adding new field to AprilTagFields
Add a field layout CSV file to src/main/native/resources/edu/wpi/first/apriltag
See docstring in convert_apriltag_layouts.py
for more
Run convert_apriltag_layouts.py
in the same directory as this readme to generate the JSON
That script overwrites all generated JSONs, so undo undesired changes if necessary
Update the field dimensions at the bottom of the JSON
Length should be in meters from alliance wall to alliance wall
Width should be in meters from inside guardrail plastic to plastic
Update src/main/java/edu/wpi/first/apriltag/AprilTagFields.java
Add enum value for new field to AprilTagFields
Update AprilTagFields.kDefaultField
if necessary
Update src/main/native/include/frc/apriltag/AprilTagFields.h
Add enum value for new field to AprilTagFields
Update AprilTagFields::kDefaultField
if necessary
Update src/main/native/cpp/AprilTagFields.cpp
Add resource getter prototype like std::string_view GetResource_2024_crescendo_json()
Add case for new field to switch in LoadAprilTagLayoutField()
You can’t perform that action at this time.