52 std::function<bool()> m_condition;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:26
A command that does nothing but ends after a specified match time or condition.
Definition: WaitUntilCommand.h:21
bool RunsWhenDisabled() const override
Whether the given command should run when the robot is disabled.
WaitUntilCommand(units::second_t time)
Creates a new WaitUntilCommand that ends after a given match time.
WaitUntilCommand(WaitUntilCommand &&other)=default
WaitUntilCommand(std::function< bool()> condition)
Creates a new WaitUntilCommand that ends after a given condition becomes true.
WaitUntilCommand(const WaitUntilCommand &other)=default
bool IsFinished() override
Whether the command has finished.
Definition: InstantCommand.h:14