Package org.ironmaple.simulation
Interface SimulatedArena.Simulatable
- Enclosing class:
- SimulatedArena
public static interface SimulatedArena.Simulatable
Represents a custom simulation to be updated during each simulation sub-tick.
This allows you to register custom actions that will be executed at a high frequency during each simulation sub-tick. This is useful for tasks that need to be updated multiple times per simulation cycle.
Examples of how this method is used:
- Pulling encoder values for high-frequency odometry updates.
- Adding custom simulation objects or handling events in the simulated arena.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
simulationSubTick
(int subTickNum) Called insimulationSubTick(int)
.
-
Method Details
-
simulationSubTick
void simulationSubTick(int subTickNum) Called insimulationSubTick(int)
.- Parameters:
subTickNum
- the number of this sub-tick (counting from 0 in each robot period)
-