◆ RotationTarget()
constexpr pathplanner::RotationTarget::RotationTarget |
( |
double |
waypointRelativePosition, |
|
|
frc::Rotation2d |
target |
|
) |
| |
|
inlineconstexpr |
Create a new rotation target
- Parameters
-
waypointRelativePosition | Waypoint relative position of this target |
target | Target rotation |
◆ fromJson()
Create a rotation target from json
- Parameters
-
json | json reference representing a rotation target |
- Returns
- Rotation target defined by the given json
◆ getPosition()
constexpr double pathplanner::RotationTarget::getPosition |
( |
| ) |
const |
|
inlineconstexpr |
Get the waypoint relative position of this target
- Returns
- Waypoint relative position
◆ getTarget()
constexpr const frc::Rotation2d & pathplanner::RotationTarget::getTarget |
( |
| ) |
const |
|
inlineconstexpr |
Get the target rotation
- Returns
- Target rotation
The documentation for this class was generated from the following files:
- src/main/native/include/pathplanner/lib/path/RotationTarget.h
- src/main/native/cpp/pathplanner/lib/path/RotationTarget.cpp