mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilib] FieldObject2d: Add setTrajectory() method (#3277)
This commit is contained in:
committed by
GitHub
parent
c97acd18e7
commit
8471c4fb26
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user