|
JSim 2026.06.01-p(1)
|
Classes | |
| enum | Mode |
Public Member Functions | |
| GamepieceZone (Object ignored) | |
| SimRobot | getRobot () |
| String | getName () |
| Transform3d[] | getZoneDimensions () |
| Rotation3d | getRobotRotation () |
| void | setMode (Mode mode) |
| void | disable () |
| void | setExitParameters (LinearVelocity velocity, Rotation3d rotation) |
| void | setExitParameters (LinearVelocity velocity) |
| void | intake (LinearVelocity velocity, Rotation3d rotation) |
| void | outtake (LinearVelocity velocity, Rotation3d rotation) |
| void | shoot (LinearVelocity velocity, Rotation3d rotation) |
| void | configure (Supplier< Mode > modeSupplier, Supplier< LinearVelocity > exitVelocitySupplier, Supplier< Rotation3d > exitRotationSupplier) |
| LinearVelocity | getExitRate () |
| LinearVelocity | getExitVelocity () |
| Rotation3d | getExitRotation () |
| Translation3d | getExitTranslation () |
| void | refresh () |
| void | update () |
| void | configure (Mode mode, Supplier< Boolean > enter, Supplier< Boolean > exit, Supplier< Double > exitRateMetersPerSecondSupplier, Supplier< Rotation3d > rot, Supplier< Translation3d > trans) |
| void | evaluate () |
| Mode | getMode () |
Static Public Member Functions | |
| static Transform3d[] | createZoneDimensions (Rotation3d rotation, Translation3d... translations) |
Simulation-side gamepiece interaction zone.
|
inline |
Compatibility constructor for example code that passes null.
| ignored | compatibility placeholder |
|
inline |
Configures a rule-driven zone state.
| mode | the mode to activate while the enter condition is true |
| enter | supplies whether the zone should activate |
| exit | supplies whether the zone should disable |
| exitRateMetersPerSecondSupplier | supplies the exit rate in meters per second |
| rot | supplies the exit rotation |
| trans | supplies the exit translation |
|
inline |
Installs suppliers used to refresh the zone state each simulation step.
| modeSupplier | supplies the active mode |
| exitVelocitySupplier | supplies the exit velocity |
| exitRotationSupplier | supplies the exit rotation |
|
inlinestatic |
Helper to build an array of transform dimensions from a shared rotation and a list of translations. This is a small convenience for example code and users constructing zones.
| rotation | the rotation to apply to every translation |
| translations | the vertex translations defining the zone polygon |
|
inline |
Disables gamepiece interaction for this zone.
|
inline |
Evaluates rule-driven zone updates.
If a rule's enter condition is true, the zone is set to the rule's mode and its exit parameters are refreshed from the configured suppliers. If the exit condition is true, the zone is disabled.
|
inline |
Returns the cached exit rate.
|
inline |
Returns the configured or supplier-provided exit rotation.
|
inline |
Returns the configured exit translation.
|
inline |
Returns the configured or supplier-provided exit velocity.
|
inline |
Returns the currently active zone mode.
|
inline |
Returns the configured zone name.
null if unnamed
|
inline |
Returns the robot that owns this zone.
null for compatibility instances
|
inline |
Returns the zone rotation relative to the robot frame.
|
inline |
Returns a copy of the zone polygon transforms.
|
inline |
Enables intake mode with the provided exit settings.
| velocity | exit speed |
| rotation | exit orientation |
|
inline |
Enables outtake mode with the provided exit settings.
| velocity | exit speed |
| rotation | exit orientation |
|
inline |
Refreshes the zone mode from the configured supplier, if present.
|
inline |
Sets exit parameters using a velocity and zero rotation.
| velocity | exit speed |
|
inline |
Sets exit parameters using a velocity and explicit rotation.
| velocity | exit speed |
| rotation | exit orientation |
|
inline |
Sets the zone mode directly.
| mode | the new zone mode |
|
inline |
Enables shoot mode with the provided exit settings.
| velocity | exit speed |
| rotation | exit orientation |
|
inline |
Advances the zone state for one simulation tick.