FieldObject2d

class FieldObject2d(var name: String, initialPosition: Pose2d = Pose2d()) : AutoCloseable

Game field object on a Field2d.

Constructors

Link copied to clipboard
constructor(name: String, initialPosition: Pose2d = Pose2d())

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun setPose(xMeters: Double, yMeters: Double, rotation: Rotation2d?)

Set the pose from x, y, and rotation.

Link copied to clipboard
fun setPoses(vararg poses: Pose2d)

Set multiple poses from a list of Pose objects. The total number of poses is limited to 85.

Link copied to clipboard
fun setTrajectory(trajectory: Trajectory)

Sets poses from a trajectory.

Link copied to clipboard

Properties

Link copied to clipboard
var entry: DoubleArrayEntry?
Link copied to clipboard
Link copied to clipboard
var pose: Pose2d
Link copied to clipboard
var poses: List<Pose2d>