Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Make a Custom Environment

Mason Vogt edited this page Nov 3, 2022 · 2 revisions

At the start of every FRC season, Team 2129 Ultraviolet will publish an environment.json file containing the locations of all AprilTags on the field. If you want to create your own tag layout, the formatting is listed below

{
    "tag_family" : "36h11", -> Sets which type of tag to look for, in most cases this is 36h11

    "tags" : [
        {
            "size" : 1.0, -> Width of the tag in meters
            "id" : 1, -> ID of the printed tag, this should be different for every tag
            "transform" : [ -> Transform matrix, leave the values below the same, all units in meters relative to environment origin
                [1, 0, 0, 0]
                [0, -1, 0, 0]
                [0, 0, -1, 0]
                [0, 0, 0, 1]
        } -> Repeat this block for every tag
    ]
}

Clone this wiki locally