Valkyrie 2026
Loading...
Searching...
No Matches
valor::CommandGraph Class Reference

Classes

struct  Edge
struct  CommandNode
class  Builder

Public Types

enum class  EdgeType {
  SEQUENTIAL , PARALLEL , DEADLINE , RACE ,
  DELAYED , CONDITIONAL , BRANCH , INTERRUPT
}

Public Member Functions

CommandNodeCreateNode (frc2::CommandPtr cmd)
void AddSequential (CommandNode *from, CommandNode *to)
void AddParallel (CommandNode *from, CommandNode *to)
void AddDeadline (CommandNode *from, CommandNode *to)
void AddRace (CommandNode *from, CommandNode *to)
void AddDelayed (CommandNode *from, CommandNode *to, units::second_t delay)
void AddConditional (CommandNode *from, CommandNode *to, std::function< bool()> condition)
void AddBranch (CommandNode *from, CommandNode *ifTrue, CommandNode *ifFalse, std::function< bool()> condition)
void AddInterrupt (CommandNode *from, std::function< bool()> interruptCondition)
frc2::CommandPtr Build (CommandNode *root)
Builder Start (frc2::CommandPtr rootCommand)

The documentation for this class was generated from the following file: