JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
jsim.api.RobotState Class Reference

Public Member Functions

 RobotState (RobotID id, Pose2d robotPose, Translation2d[] frameVertices)

Public Attributes

Pose2d robotPose
final Translation2d[] frameVertices
ChassisSpeeds chassisSpeeds
final RobotID id

Detailed Description

Mutable robot snapshot shared between the simulation facade and state manager.

Constructor & Destructor Documentation

◆ RobotState()

jsim.api.RobotState.RobotState ( RobotID id,
Pose2d robotPose,
Translation2d[] frameVertices )
inline

Creates a robot state snapshot.

Parameters
idrobot identifier
robotPoseinitial pose
frameVerticesframe perimeter vertices

Member Data Documentation

◆ chassisSpeeds

ChassisSpeeds jsim.api.RobotState.chassisSpeeds

Current commanded or measured chassis speeds.

◆ frameVertices

final Translation2d [] jsim.api.RobotState.frameVertices

Robot frame perimeter vertices.

◆ id

final RobotID jsim.api.RobotState.id

Robot identifier.

◆ robotPose

Pose2d jsim.api.RobotState.robotPose

Current robot pose on the field.


The documentation for this class was generated from the following file: