7#include <initializer_list>
16#include "wpi/units/length.hpp"
17#include "wpi/util/SmallVector.hpp"
33 struct private_init {};
55 void SetPose(wpi::units::meter_t x, wpi::units::meter_t y,
71 void SetPoses(std::span<const wpi::math::Pose2d> poses);
79 void SetPoses(std::initializer_list<wpi::math::Pose2d> poses);
93 std::vector<wpi::math::Pose2d>
GetPoses()
const;
105 void UpdateEntry(
bool setDefault =
false);
106 void UpdateFromEntry()
const;
111 mutable wpi::util::SmallVector<wpi::math::Pose2d, 1> m_poses;
@ name
Definition base.h:690
2D representation of game field for dashboards.
Definition Field2d.hpp:42
void SetPoses(std::initializer_list< wpi::math::Pose2d > poses)
Set multiple poses from an array of Pose objects.
void SetPose(const wpi::math::Pose2d &pose)
Set the pose from a Pose object.
wpi::math::Pose2d GetPose() const
Get the pose.
FieldObject2d & operator=(FieldObject2d &&rhs)
friend class Field2d
Definition FieldObject2d.hpp:32
FieldObject2d(std::string_view name, const private_init &)
Definition FieldObject2d.hpp:36
std::span< const wpi::math::Pose2d > GetPoses(wpi::util::SmallVectorImpl< wpi::math::Pose2d > &out) const
Get multiple poses.
void SetPoses(std::span< const wpi::math::Pose2d > poses)
Set multiple poses from an array of Pose objects.
std::vector< wpi::math::Pose2d > GetPoses() const
Get multiple poses.
FieldObject2d(FieldObject2d &&rhs)
void SetPose(wpi::units::meter_t x, wpi::units::meter_t y, wpi::math::Rotation2d rotation)
Set the pose from x, y, and rotation.
void SetTrajectory(const wpi::math::Trajectory &trajectory)
Sets poses from a trajectory.
Represents a 2D pose containing translational and rotational elements.
Definition Pose2d.hpp:27
A rotation in a 2D coordinate frame represented by a point on the unit circle (cosine and sine).
Definition Rotation2d.hpp:26
Represents a time-parameterized trajectory.
Definition Trajectory.hpp:28
NetworkTables DoubleArray entry.
Definition DoubleArrayTopic.hpp:238
Definition BooleanTopic.hpp:24
Definition LinearSystem.hpp:20
::std::mutex mutex
Definition mutex.hpp:17
Definition CvSource.hpp:15