Skip to content

Use Choreo generated classes to access metadata about Choreo autos #6

Description

@nlaverdure

We currently use the AutoMode wrapper class to store data about our Choreo auto, including:

  • the name of the auto mode
  • the trajectory that the robot will run first (from which we can get the initial pose that the robot should be set up in)

Choreo 2026 introduced generated Java constants classes containing information about the trajectories and variables in your Choreo project.

Choreo can output a Java file listing the name, total time, and blue-alliance start and end poses of each trajectory. Each trajectory is represented as a static constant of the ChoreoTraj record. The file is rewritten when the project is loaded, and when paths are generated, renamed, or deleted.

Let's consider eliminating the wrapper class and using this new feature

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions