7#include <initializer_list>
32 struct private_init {};
77 void SetPoses(std::initializer_list<Pose2d> poses);
103 void UpdateEntry(
bool setDefault =
false);
104 void UpdateFromEntry()
const;
This file defines the SmallVector class.
2D representation of game field for dashboards.
Definition: Field2d.h:42
Game field object on a Field2d.
Definition: FieldObject2d.h:30
void SetTrajectory(const Trajectory &trajectory)
Sets poses from a trajectory.
std::span< const Pose2d > GetPoses(wpi::SmallVectorImpl< Pose2d > &out) const
Get multiple poses.
FieldObject2d(FieldObject2d &&rhs)
void SetPose(const Pose2d &pose)
Set the pose from a Pose object.
std::vector< Pose2d > GetPoses() const
Get multiple poses.
void SetPose(units::meter_t x, units::meter_t y, Rotation2d rotation)
Set the pose from x, y, and rotation.
FieldObject2d & operator=(FieldObject2d &&rhs)
void SetPoses(std::initializer_list< Pose2d > poses)
Set multiple poses from an array of Pose objects.
void SetPoses(std::span< const Pose2d > poses)
Set multiple poses from an array of Pose objects.
FieldObject2d(std::string_view name, const private_init &)
Definition: FieldObject2d.h:35
Pose2d GetPose() const
Get the pose.
Represents a 2D pose containing translational and rotational elements.
Definition: Pose2d.h:25
A rotation in a 2D coordinate frame represented by a point on the unit circle (cosine and sine).
Definition: Rotation2d.h:26
Represents a time-parameterized trajectory.
Definition: Trajectory.h:28
NetworkTables DoubleArray entry.
Definition: DoubleArrayTopic.h:209
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Definition: SmallVector.h:1186
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: SmallVector.h:557
basic_string_view< char > string_view
Definition: core.h:520
const Scalar & y
Definition: MathFunctions.h:821
Definition: AprilTagPoseEstimator.h:15
::std::mutex mutex
Definition: mutex.h:17