libstp
Robotics library for Botball
Loading...
Searching...
No Matches
libstp::motion::TrapezoidalProfile::Constraints Struct Reference

#include <trapezoidal_profile.hpp>

Public Member Functions

double effectiveDeceleration () const
void validate () const

Public Attributes

double max_velocity {1.0}
double max_acceleration {2.0}
double max_deceleration {0.0}

Detailed Description

Definition at line 23 of file trapezoidal_profile.hpp.

Member Function Documentation

◆ effectiveDeceleration()

double libstp::motion::TrapezoidalProfile::Constraints::effectiveDeceleration ( ) const
inline

Definition at line 29 of file trapezoidal_profile.hpp.

◆ validate()

void libstp::motion::TrapezoidalProfile::Constraints::validate ( ) const
inline

Throws std::invalid_argument when the profile would divide by zero or produce NaN. Call this from any factory that builds a profile from user-facing config so the error surfaces at config time, not during a 100 Hz motion update.

Definition at line 38 of file trapezoidal_profile.hpp.

Member Data Documentation

◆ max_acceleration

double libstp::motion::TrapezoidalProfile::Constraints::max_acceleration {2.0}

Definition at line 26 of file trapezoidal_profile.hpp.

◆ max_deceleration

double libstp::motion::TrapezoidalProfile::Constraints::max_deceleration {0.0}

Definition at line 27 of file trapezoidal_profile.hpp.

◆ max_velocity

double libstp::motion::TrapezoidalProfile::Constraints::max_velocity {1.0}

Definition at line 25 of file trapezoidal_profile.hpp.


The documentation for this struct was generated from the following file: