|
libstp
Robotics library for Botball
|
#include <diagonal_motion.hpp>
Public Member Functions | |
| DiagonalMotion (MotionContext ctx, DiagonalMotionConfig config) | |
| void | start () override |
| void | update (double dt) override |
| bool | isFinished () const override |
| const std::vector< DiagonalMotionTelemetry > & | 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 travel at an arbitrary body-frame angle.
This controller uses the same profile and saturation logic as LinearMotion, but resolves the commanded velocity into forward and lateral components derived from angle_rad.
Definition at line 79 of file diagonal_motion.hpp.
| libstp::motion::DiagonalMotion::DiagonalMotion | ( | MotionContext | ctx, |
| DiagonalMotionConfig | config ) |
|
inlinenodiscard |
Telemetry samples appended on each update cycle.
Definition at line 89 of file diagonal_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.