路径编译器的介绍

自动阶段是比赛的重要部分。当机器人自主完成令人印象深刻的事情时,大家都会十分兴奋。为了得分,机器人通常需要去某个地方。机器人到达该位置的速度越快,得到分数的速度也就越快。传统的自动驾驶方法是沿直线行驶,转至一定角度,然后再次沿直线行驶。这种方法效果很好,但是机器人在每次直行和转弯之后都要花费大量的时间来停止和重新启动。

A more advanced approach to autonomous is called “path planning”. Instead of driving in a straight line and turning once the line is complete, the robot continuously moves, driving with a curve-like motion. This can reduce turning stoppage time.

WPILib包含一个轨迹生成套件,团队可以使用它来生成和跟踪轨迹。本系列文章将探讨如何使用路径编辑器生成路径并使其可视化。有关以下轨迹的全面教程,请访问: ref:end-to-end trajectory tutorial <docs/software/examples-tutorials/trajectory-tutorial/index:Trajectory Tutorial>.

注解

Trajectory following code is required to use PathWeaver. We recommend that you start with Trajectory following and get that working with simple paths. From there you can continue on to testing more complicated paths generated by PathWeaver.