Windows, MacOS, and Linux versions can be downloaded here, or they can be installed from the Microsoft Store and Snapcraft badges above.
PathPlanner is a motion profile generator for FRC robots created by team 3015. Every path allows for manual tuning of the robot position and the curve radius at every point. It allows you to create the perfect path for your robot quicker and easier than other generators. PathPlanner can handle more complex paths than other generators because it will slow down the robot as it heads into a turn instead of going through it as fast as possible. If the robot is still not slowing down enough or you would like the robot to go slow at a certain point in the path, the robot's max velocity can be overridden at each point.
Settings can be updated using the settings button in the top left corner of the window. Actions such as generation, path preview, and saving/loading path files can be done by hovering over the floating button in the bottom right corner and clicking on the desired action. The generate action will allow you to generate a path to be used on a robot. These generated paths can either be deployed directly to the RoboRIO, saved to a CSV file on your computer, or copied to your clipboard as an array. Paths can be saved to and loaded from a file so they can be easily updated. File associations are created, so you can double click on a path file to open it in PathPlanner. Previewing the path will give you an idea of what the robot will look like as it follows the path. This is not a guarantee of what your robot will do because the preview bot lives in a perfect world and does exactly what it is told like a good little bot. The preview bot won't do this but real robots can. Please preview responsibly.
Inspiration came from Vannaka's Generator which uses Jaci's PathFinder. The app is compatible with Windows, Mac OS, and Linux. It is also available on the Microsoft Store and Snapcraft Store.
Paths consist of two types of points: anchor and control points. Anchor points are points that anchor the path. They are points that the path will pass directly through. Control points are points that are attached to each anchor point. Control points can be used to fine-tune the curve of a path by pulling the path towards it. Anchor points, as well as their corresponding control points, can be added by right clicking anywhere on the field. They can be removed by by control/command + right clicking on the anchor point that you wish to remove. Any point on the path can be moved by dragging it around. While holding down the shift key and dragging a control point, its angle will be locked. You can right click on any anchor point to enter a position, change the angle, and override the maximum velocity at that point. Overriding the velocity lets you slow down your robot at certain points in the path, which will prevent issues where the generation algorithm does not slow the robot down enough to accurately follow a tight curve, or it can just allow the robot to go slow in some areas (e.g. the area between the scale and switch) while maintaining a high speed during the rest of the path. When you are done editing the path, it can be saved and other paths can be loaded to edit. The path can then be generated for use on the robot or previewed in real time.
- Team Number: Your team number. Used for uploading generated paths to the RoboRIO.
- RoboRIO Path Location: The folder on the RoboRIO that you would like the generated paths uploaded to.
- Units: The units to use for generation. (Imperial or Metric)
- Game Year: The game year to use for the field image.
- Max Velocity: Maximum velocity of the robot (units/second).
- Max Acceleration: Maximum acceleration of the robot (units/second2).
- Coefficient of Friction: The coeficcient of friction between the robot wheels and the floor. This is used to determine the max robot velocity in a curve. Andymark lists the coefficient of friction for most of their wheels on their website. Otherwise, you can try to calculate it yourself, or just tune this value until you find something that works.
- Time Step: The amount of time between each point in a profile in seconds.
- Wheelbase Width: The width of the robot's drive train, used for splitting the left and right paths.
- Robot Length: The length of the robot from bumper to bumper. This is used to draw the robot in the path preview and at the start/end points of the path.
-
Output Type: The output type. Options are CSV file, Java array, C++ array, or Python array. CSV files are saved to a chosen location and arrays are copied to the clipboard.
-
Path Name: The name of the path. Underscores are assumed for CSV files and Python arrays while camel case is assumed for Java and C++ arrays
-
Output Format: The format to use for the output of the generation. This should consist of one or more of the following, seperated by a comma: x (X coordinate), y (Y coordinate), p (Position), v (Velocity), a (Acceleration), h (Heading). For example, a CSV file with format of p,v,a will output files where each line in the files is:
{position},{velocity},{acceleration}
-
Reversed: Should the robot drive backwards
There are two different ways to generate paths. One is normal generation, where you can either save CSV files to your computer or arrays will be copied to your keyboard. The second option is deploying to the robot. This will generate CSV files and upload them to the RoboRIO (assuming you're connected to the robot) at the path chosen in the settings.
- Install Node.js
- Download and unzip this repository
- Run the following in the root directory of this project:
-
npm install
-
Windows:
npm run build-win
-
MacOS:
npm run build-mac
-
Linux:
npm run build-linux
-
- The built application will be located in the dist folder