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 TypeMethodDescriptionvoid
Removes AllGamePieceOnFieldSimulation
Objects from the Simulation.getGamePiecesByType
(String type) Obtains the 3D Poses of a Specific Type of Game Piece.void
Places 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:SimulatedArena
Places 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
SimulatedArena
to reflect the unique game piece placements for that season's game.- Specified by:
placeGamePiecesOnField
in classSimulatedArena
-
getGamePiecesByType
Description copied from class:SimulatedArena
Obtains 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
GamePieceOnFieldSimulation
andGamePieceProjectile
of the specified type will be included.- The type is determined in the constructor of
GamePieceOnFieldSimulation
. - For example,
CrescendoNoteOnField
has the type "Note".
- Overrides:
getGamePiecesByType
in classSimulatedArena
- Parameters:
type
- the type of game piece, as determined by the constructor ofGamePieceOnFieldSimulation
- Returns:
- a
List
ofPose3d
objects representing the 3D positions of the game pieces
- The type is determined in the constructor of
-
clearGamePieces
public void clearGamePieces()Description copied from class:SimulatedArena
Removes All
GamePieceOnFieldSimulation
Objects from the Simulation.This method clears all game pieces from the physics world and the simulation's game piece collection.
- Overrides:
clearGamePieces
in classSimulatedArena
-