OSE Simulator

From Open Source Ecology
Revision as of 17:30, 21 October 2025 by Wneal (talk | contribs) (→‎Background)
Jump to navigation Jump to search

Background

A simulator was written for FIRST Robotics Competition robots allowing teams to understand the performance characteristics of their robots before building them. The simulator models the robots using a collection of physical parameters stored in a .yaml file and allows users to control the robots using the same game controller used in the competition.

Source Code

Here is the link to the GitLab Repository hosting the code for this project: https://gitlab.com/wjaneal/frc-simulator

Simulator Toolchain

  • Robot is designed in a CAD Package such as FreeCAD or OnShape
  • Export the model of the robot in a .obj format
  • Import the model to Blender
  • Pare down the file size by removing highly detailed parts such as nuts and bolts. The intent is to maintain the physical appearance of the robot with the smallest file size possible - this allows the simulator to work without appreciable lag even on less capable computers.
  • Export the Blender file to a .glb format - this may require installing an add-on in the Blender environment
  • Import the .glb file into the simulator which is written in Python / Panda3D