Replaying Robot Simulations

This topic is useful for users who are participating in First Robotics Competition. Students need to use a dedicated tenant for the competition.

You can use FRC Playback command on the action bar to play back the recorded motions of different components of your robot to analyze its performance and to fix any issues.

  • A WPILog file associated with the robot consists of the odometry (motion-related) and encoder (mechanism-related) data of the robot.
  • The log file with odometry data contains details such as rotation and translation values.


Before you begin: Open the 3D model of your robot machine for analysis.
See Also
Deploying Kit of Parts inside xDesign
  1. From the FRC section of the action bar, click FRC Playback.
  2. On the Playback Simulation dialog box, click Choose File to load the motion logs of the robot.
    The Open dialog box appears.
  3. Browse through your local files and select the WPILog file associated with your robot.
  4. On the left-hand side, from the All fields panel, select fields consisting of odometry (motion) data or encoder data.
  5. If you select odometry data, perform the following steps:    
    1. Click Start New Robot Path to specify a component as an input for playback simulation.

      Note: If you want to replace the already selected component, click Replace Path.

    2. From the Design Manager Tree, select the component.
      The selected component appears in the Chassis field.
    3. In the work area, use the options on the simulation player to view recorded motions.



    4. Observe how the data log value changes along the X and Y directions and a rotation angle.
  6. To add a new mechanism in your robot, perform the following steps:    
    1. On the Playback Simulation dialog box, from the All fields section, select the encoder data.
    2. Click Start New Mechanism.
    3. Under the Mechanism section, from the Calculation Method section, select from the following options:

      • Mate-based: If you select this option, you must specify a joint to create a mate-based mechanism.
        1. From the Design Manager Tree, under the Mates folder, select the joint.
        2. Click to flip the rotation of the component around the selected joint.
      • Ratio-calculation: If you select this option, you must specify the Rotation to Translation ratio for a part.
        1. From the work area, select a vertex, edge, or planar or cylindrical face as a Moving Part.
        2. Select a line or an axis to specify the Movement Direction for the selected part.
      • Click to flip the direction of movement.

  7. Click to end the simulations.