Skip to content

frc604/robot-sim-example

Repository files navigation

Robot Simulation Example

A barebones robot simulation example that utilizes:

  • CTRE swerve & simuation
  • WPILib arm and flywheel physics simulation
  • PhotonVision simulation
  • AdvantageScope

Note that this is meant to be used as reference, not as a base template for your robot.

simviz.mov

Key Elements

Additional Resources

Controls

  • Left stick X/Y: Swerve translate
  • Right stick X: Swerve rotate
  • Right bumper: Deploy intake when held

Setup

With just WPILib simulation GUI

  • Ensure the Arm Viz and Sim Field are displayed

WPILib simgui

With AdvantageScope

  • In AdvantageScope, click File > Import Layout and select advantagescope_layout.json.
  • Connect to the local simulator File > Connect to Simulator

AdvantageScope viz

PhotonVision

PhotonVision viz

About

A barebones robot simulation example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages