Installation #
Quickstart #
Download the quickstart1
branch of the quickstart
project and treat it
like any other FTC project.
Core (FTC) #
- Open
build.dependencies.gradle
and addmaven { url = 'https://maven.brott.dev/' }
to the end of therepositories
block. - Open
TeamCode/build.gradle
and addimplementation 'com.acmerobotics.roadrunner:core:0.5.6'
to the end of thedependencies
block. - Sync the project (Android Studio should prompt you to do this).
Adding Road Runner and its dependencies may put your install package over the method reference limit imposed by some versions of Android. This restriction can be circumvented by one of the following methods:
- If you do not need to target API level 19 (i.e., you don’t need to use ZTE Speeds), add
multiDexEnabled true
to thedefaultConfig
closure inbuild.common.gradle
.- Otherwise, the next best solution is to enable Proguard which culls unnecessary methods. Begin by downloading the
proguard-rules.pro
file from the quickstart and save it to theTeamCode
directory. Then add following lines to thedebug
andrelease
closures insidebuildTypes
inbuild.common.gradle
:minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
For more information, see this article.
GUI #
Road Runner includes a simple GUI for generating trajectories from pose waypoints and constraints. You can download the latest version from the Releases tab (or build it with ./gradlew shadowJar
).
Plugin #
Road Runner also includes a simple IDEA/Android Studio plugin based upon the GUI. Here are some instructions for building and loading the plugin:
- Download the latest plugin zip from the Release assets or build it with
./gradlew buildPlugin
. - In Android Studio, navigate to Settings > Plugins.
- Click the gear icon and select
Install Plugin from Disk...
. - Select the zip archive from your downloads or
plugin/build/distributions
. - Restart Android Studio to activate plugin changes.
- Click on “Road Runner” on the right side of the editor and the tool window should appear.