Class FieldObject2d
java.lang.Object
org.wpilib.smartdashboard.FieldObject2d
- All Implemented Interfaces:
AutoCloseable
Game field object on a Field2d.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getPose()Get the pose.getPoses()Get multiple poses.voidsetPose(double x, double y, Rotation2d rotation) Set the pose from x, y, and rotation.voidSet the pose from a Pose object.voidsetPose(Distance x, Distance y, Rotation2d rotation) Set the pose from x, y, and rotation.voidSet multiple poses from a list of Pose objects.voidSet multiple poses from a list of Pose objects.voidsetTrajectory(Trajectory trajectory) Sets poses from a trajectory.
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable
-
setPose
-
setPose
Set the pose from x, y, and rotation.- Parameters:
x- X location, in metersy- Y location, in metersrotation- rotation
-
setPose
Set the pose from x, y, and rotation.- Parameters:
x- X locationy- Y locationrotation- rotation
-
getPose
-
setPoses
-
setPoses
-
setTrajectory
Sets poses from a trajectory.- Parameters:
trajectory- The trajectory from which the poses should be added.
-
getPoses
-