Search lessons

Suggested searches

Browse

Following a trajectory

Prerequisites: swerve and localization, motion profiles. A path describes geometry; a trajectory adds time, velocity and acceleration. A follower compares a time-indexed target with an estimated pose and requests chassis motion. Its output is constrained by the drivetrain, available voltage, traction and the quality of its pose estimate; feedback does not guarantee exact tracking.

Team 1257's former historical differential-drive example repository is no longer publicly available. Study the 2026 drivetrain and autonomous case study instead, then trace the pinned 2026 Drive implementation. The two projects use different drivetrains and APIs. Follow the guided swerve project for the simulation exercise and its limitations.

Exercise: in a configured simulator, start from a known pose and run a short, version-matched trajectory. Compare the target and measured pose over time; then repeat with an intentionally wrong starting heading. Explain the difference and verify cancellation stops the command. A growing error can have several causes, including a frame mismatch, incorrect module calibration, saturation or model error. Inspect those signals before drawing a conclusion. If no suitable simulation is available, trace the code and state that the trajectory has not been run.