Skip to content

Add triggers to PathPlannerAuto #788

@mjansen4857

Description

@mjansen4857

Add the ability to create triggers directly tied to a PathPlannerAuto. Each auto should have its own event loop for polling these triggers. A few of these triggers would require some more logic to get the information required. This should also include the ability to make a pathplanner auto from an arbitrary command, allowing use of these triggers for command compositions not made with AutoBuilder.

Trigger options should include:

  • PathPlannerAuto is running
  • PathPlannerAuto is not running
  • PathPlannerAuto finished normally
  • One shot at timestamp
  • Timestamp range
  • Event name (would allow doing EventTriggers on a per-auto basis instead of a global EventTrigger)
  • Point towards zone name (would allow doing PointTowardsZoneTriggers on a per-auto basis instead of a global PointTowardsZoneTrigger)
  • Current path name
  • Within distance of position
  • Within field area
  • Custom condition (normal trigger that will run on the auto's event loop, preventing it from being polled if the auto is not running)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions