7#include <frc/geometry/Pose2d.h>
8#include <frc/trajectory/Trajectory.h>
9#include <frc/trajectory/TrapezoidProfile.h>
10#include <units/angle.h>
11#include <units/angular_velocity.h>
12#include <units/length.h>
13#include <units/time.h>
14#include <units/velocity.h>
22 const units::degree_t initialAngle,
23 const frc::Translation2d relativeTranslation,
24 const units::degree_t relativeRotation,
25 const frc::TrapezoidProfile<units::inches>::Constraints linearConstraints,
26 const units::feet_per_second_t initialVelocity = 0_fps,
27 const units::feet_per_second_t finalVelocity = 0_fps);
29 const units::degree_t initialAngle,
30 const frc::Pose2d finalPosition,
31 const units::degree_t finalAngle,
32 const frc::TrapezoidProfile<units::inches>::Constraints linearConstraints,
33 const units::feet_per_second_t initialVelocity = 0_fps,
34 const units::feet_per_second_t finalVelocity = 0_fps);
41 frc::Trajectory::State
Calculate(units::second_t time)
const;
46 units::feet_per_second_t
GetXVelocity(
const frc::Trajectory::State& state)
const;
47 units::feet_per_second_t
GetYVelocity(
const frc::Trajectory::State& state)
const;
Definition swerve_trapezoidal_profile.h:60
SwerveTrapezoidalProfile()
Definition swerve_trapezoidal_profile.h:18
bool IsFinished(units::second_t time) const
Definition swerve_trapezoidal_profile.cpp:89
frc::Trajectory::State Calculate(units::second_t time) const
Definition swerve_trapezoidal_profile.cpp:72
frc::Pose2d m_initialPosition
Definition swerve_trapezoidal_profile.h:50
const frc::Translation2d m_relativeTranslation
Definition swerve_trapezoidal_profile.h:52
units::degree_t GetEndAngle() const
Definition swerve_trapezoidal_profile.cpp:93
const units::degree_t m_motionAngle
Definition swerve_trapezoidal_profile.h:55
SwerveTrapezoidalProfileSegment & operator=(const SwerveTrapezoidalProfileSegment &)=delete
SwerveTrapezoidalProfileSegment(const SwerveTrapezoidalProfileSegment &other)=default
units::feet_per_second_t GetXVelocity(const frc::Trajectory::State &state) const
Definition swerve_trapezoidal_profile.cpp:101
SwerveTrapezoidalProfileSegment(SwerveTrapezoidalProfileSegment &&other)=default
units::degree_t m_initialAngle
Definition swerve_trapezoidal_profile.h:51
units::degree_t m_relativeRotation
Definition swerve_trapezoidal_profile.h:53
units::degree_t m_odometryOffsetAngle
Definition swerve_trapezoidal_profile.h:57
units::degree_t GetOdometryOffset() const
Definition swerve_trapezoidal_profile.cpp:97
units::feet_per_second_t GetYVelocity(const frc::Trajectory::State &state) const
Definition swerve_trapezoidal_profile.cpp:105
const frc::TrapezoidProfile< units::inches > m_linearProfile
Definition swerve_trapezoidal_profile.h:54
SwerveTrapezoidalProfileSegment & operator=(SwerveTrapezoidalProfileSegment &&)=delete
SwerveTrapezoidalProfileSegment()
Definition swerve_trapezoidal_profile.cpp:11
SegmentType
Definition swerve_trapezoidal_profile.h:16