Package-level declarations

The core robot architecture and command-based wrappers.

  • Robot Structure: NextRobot represents the root of your robot, containing multiple Mechanism instances. NextOpMode is the base class for your OpModes that seamlessly injects your NextRobot instance.

  • Scanning & Registration: RobotScanner and NextFTCOpModeScanner work alongside Sinister to automatically discover your robot implementations and register your custom OpModes to the FTC dashboard without manual @TeleOp or @Autonomous configuration clutter.

  • Event System: Trigger and EventLoop provide a WPILib-style API for binding commands to conditional states, allowing commands to run based on arbitrary boolean conditions.

Types

Link copied to clipboard
interface Mechanism

Represents a subsystem or mechanism on the robot (e.g., an arm, drivetrain, or intake).

Link copied to clipboard
open class NextFTCException(message: String, cause: Throwable? = null) : RuntimeException

Base class for all exceptions thrown by NextFTC.

Link copied to clipboard
interface NextRobot

The root container for your robot's hardware and mechanisms.

Link copied to clipboard
class RobotScanException(message: String, cause: Throwable? = null) : NextFTCException

Thrown when the NextRobot implementation in the user's project could not be found, instantiated, or unambiguously resolved by RobotScanner.

Link copied to clipboard
object RobotState

Holder for the NextFTC robot class and instance. The robot instance is created using the constructor found by RobotScanner.