Skip to content

LemonCameraSim

Simulated version of a LemonCamera. This class functions exactly the same in code except for the following:

  1. Must be initialized with a robotpy_fields.Field and an FOV
  2. Must be registered with a shared LemonVisionSim instance
  3. LemonVisionSim.update() must be called once per tick to update all cameras together with the robot pose

Args: field_layout (Field): layout of the tags on the field, such as get_field(FieldId.FRC_2026_REBUILT_WELDED) fov (float): diagonal range of vision (degrees)