Game field object on a Field2d.
More...
#include <wpi/smartdashboard/FieldObject2d.hpp>
Game field object on a Field2d.
◆ FieldObject2d() [1/2]
| wpi::FieldObject2d::FieldObject2d |
( |
std::string_view | name, |
|
|
const private_init & | ) |
|
inline |
◆ FieldObject2d() [2/2]
| wpi::FieldObject2d::FieldObject2d |
( |
FieldObject2d && | rhs | ) |
|
◆ GetPose()
Get the pose.
- Returns
- 2D pose, or 0,0,0 if unknown / does not exist
◆ GetPoses() [1/2]
Get multiple poses.
- Returns
- vector of 2D poses
◆ GetPoses() [2/2]
Get multiple poses.
- Parameters
-
| out | output wpi::util::SmallVector to hold 2D poses |
- Returns
- span referring to output wpi::util::SmallVector
◆ operator=()
◆ SetPose() [1/2]
Set the pose from a Pose object.
- Parameters
-
◆ SetPose() [2/2]
| void wpi::FieldObject2d::SetPose |
( |
wpi::units::meter_t | x, |
|
|
wpi::units::meter_t | y, |
|
|
wpi::math::Rotation2d | rotation ) |
Set the pose from x, y, and rotation.
- Parameters
-
| x | X location |
| y | Y location |
| rotation | rotation |
◆ SetPoses() [1/2]
| void wpi::FieldObject2d::SetPoses |
( |
std::initializer_list< wpi::math::Pose2d > | poses | ) |
|
Set multiple poses from an array of Pose objects.
The total number of poses is limited to 85.
- Parameters
-
◆ SetPoses() [2/2]
Set multiple poses from an array of Pose objects.
The total number of poses is limited to 85.
- Parameters
-
◆ SetTrajectory()
Sets poses from a trajectory.
- Parameters
-
| trajectory | The trajectory from which poses should be added. |
◆ Field2d
The documentation for this class was generated from the following file: