[wpilib] FieldObject2d: Add setTrajectory() method (#3277)

This commit is contained in:
Prateek Machiraju
2021-04-02 01:08:07 -04:00
committed by GitHub
parent c97acd18e7
commit 8471c4fb26
3 changed files with 34 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
namespace frc {
class Field2d;
class Trajectory;
/**
* Game field object on a Field2d.
@@ -76,6 +77,13 @@ class FieldObject2d {
*/
void SetPoses(std::initializer_list<Pose2d> poses);
/**
* Sets poses from a trajectory.
*
* @param trajectory The trajectory from which poses should be added.
*/
void SetTrajectory(const Trajectory& trajectory);
/**
* Get multiple poses.
*