.. _program_listing_file_src_LouLib_Paths_Trajectory.hpp: Program Listing for File Trajectory.hpp ======================================= |exhale_lsh| :ref:`Return to documentation for file ` (``src/LouLib/Paths/Trajectory.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef LOULIB_TRAJECTORY_HPP #define LOULIB_TRAJECTORY_HPP #include "BezierCurve.hpp" namespace LouLib { namespace Paths { class Trajectory { private: std::vector _x; std::vector _y; std::vector _theta; std::vector _v; std::vector _omega; std::vector _distFromStart; std::vector _curvature; public: Trajectory(std::vector waypoints, Units::Velocity maxVel, Units::Acceleration maxAccel, Units::Length maxFullSpeedTurnRadius, Units::Velocity finalVel = 0_mps); int size(); Units::Length getX(int i); Units::Length getY(int i); Units::Angle getTheta(int i); Units::Velocity getVelocity(int i); Units::AngularVelocity getAngularVelocity(int i); Units::Length getDistFromStart(int i); }; } // LouLib } // Paths #endif //LOULIB_TRAJECTORY_HPP