Class Arena2025Reefscape
The playing field for the 2025 FRC Game: Reefscape
This class represents the playing field for the 2025 FRC game, Reefscape.
It extends SimulatedArena and includes specific details of the Reefscape game environment.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.ironmaple.simulation.SimulatedArena
SimulatedArena.FieldMap, SimulatedArena.Simulatable -
Field Summary
FieldsFields inherited from class org.ironmaple.simulation.SimulatedArena
ALLOW_CREATION_ON_REAL_ROBOT, customSimulations, driveTrainSimulations, gamePiecesLaunched, gamePiecesOnField, physicsWorld -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves AllGamePieceOnFieldSimulationObjects from the Simulation.getGamePiecesByType(String type) Obtains the 3D Poses of a Specific Type of Game Piece.voidPlaces Game Pieces on the Field for Autonomous Mode.Methods inherited from class org.ironmaple.simulation.SimulatedArena
addCustomSimulation, addDriveTrainSimulation, addGamePiece, addGamePieceProjectile, addIntakeSimulation, gamePieceLaunched, gamePiecesOnField, getGamePiecesArrayByType, getInstance, getSimulationDt, getSimulationSubTicksIn1Period, overrideInstance, overrideSimulationTimings, removeGamePiece, removeProjectile, resetFieldForAuto, simulationPeriodic
-
Field Details
-
reefSimulation
-
-
Constructor Details
-
Arena2025Reefscape
public Arena2025Reefscape()
-
-
Method Details
-
placeGamePiecesOnField
public void placeGamePiecesOnField()Description copied from class:SimulatedArenaPlaces Game Pieces on the Field for Autonomous Mode.
This method sets up the game pieces on the field, typically in their starting positions for autonomous mode.
It should be implemented differently for each season-specific subclass of
SimulatedArenato reflect the unique game piece placements for that season's game.- Specified by:
placeGamePiecesOnFieldin classSimulatedArena
-
getGamePiecesByType
Description copied from class:SimulatedArenaObtains the 3D Poses of a Specific Type of Game Piece.
This method is used to visualize the positions of game pieces
Also, if you have a game-piece detection vision system (wow!), this is the how you can simulate it.
Both
GamePieceOnFieldSimulationandGamePieceProjectileof the specified type will be included.- The type is determined in the constructor of
GamePieceOnFieldSimulation. - For example,
CrescendoNoteOnFieldhas the type "Note".
- Overrides:
getGamePiecesByTypein classSimulatedArena- Parameters:
type- the type of game piece, as determined by the constructor ofGamePieceOnFieldSimulation- Returns:
- a
ListofPose3dobjects representing the 3D positions of the game pieces
- The type is determined in the constructor of
-
clearGamePieces
public void clearGamePieces()Description copied from class:SimulatedArenaRemoves All
GamePieceOnFieldSimulationObjects from the Simulation.This method clears all game pieces from the physics world and the simulation's game piece collection.
- Overrides:
clearGamePiecesin classSimulatedArena
-