|
libstp
Robotics library for Botball
|
#include <spline_motion.hpp>
Public Member Functions | |
| SplineMotion (MotionContext ctx, SplineMotionConfig config) | |
| void | start () override |
| void | update (double dt) override |
| bool | isFinished () const override |
| const std::vector< SplineMotionTelemetry > & | getTelemetry () const |
| Public Member Functions inherited from libstp::motion::Motion | |
| Motion (MotionContext ctx) | |
| virtual | ~Motion ()=default |
Additional Inherited Members | |
| Protected Member Functions inherited from libstp::motion::Motion | |
| drive::Drive & | drive () |
| const drive::Drive & | drive () const |
| odometry::IOdometry & | odometry () |
| const odometry::IOdometry & | odometry () const |
| Protected Attributes inherited from libstp::motion::Motion | |
| MotionContext | ctx_ |
| bool | started_ {false} |
Closed-loop controller for following a Catmull-Rom spline path.
Uses a trapezoidal velocity profile on arc-length for smooth acceleration/deceleration along the path. Heading either tracks the spline tangent (differential and omni) or is independently interpolated between per-waypoint values (omni only).
Definition at line 88 of file spline_motion.hpp.
| libstp::motion::SplineMotion::SplineMotion | ( | MotionContext | ctx, |
| SplineMotionConfig | config ) |
|
inlinenodiscard |
Definition at line 97 of file spline_motion.hpp.
|
nodiscardoverridevirtual |
Return true once the primitive has met its completion criteria.
Implements libstp::motion::Motion.
|
overridevirtual |
Capture initial state and prepare controller internals.
Implements libstp::motion::Motion.
|
overridevirtual |
Advance the controller by one iteration using the loop delta in seconds.
Implements libstp::motion::Motion.