Helper class for performing the same logic on the x,y and theta dimensions.
More...
#include <oscillation.h>
Helper class for performing the same logic on the x,y and theta dimensions.
Definition at line 94 of file oscillation.h.
dwb_critics::OscillationCritic::CommandTrend::CommandTrend |
( |
| ) |
|
bool dwb_critics::OscillationCritic::CommandTrend::hasSignFlipped |
( |
| ) |
|
Check whether we are currently tracking a flipped sign.
- Returns
- True if the sign has flipped
Definition at line 89 of file oscillation.cpp.
bool dwb_critics::OscillationCritic::CommandTrend::isOscillating |
( |
double |
velocity | ) |
|
Check to see whether the proposed velocity would be considered oscillating.
- Parameters
-
velocity | the velocity to evaluate |
- Returns
- true if the sign has flipped more than once
Definition at line 84 of file oscillation.cpp.
void dwb_critics::OscillationCritic::CommandTrend::reset |
( |
| ) |
|
bool dwb_critics::OscillationCritic::CommandTrend::update |
( |
double |
velocity | ) |
|
update internal flags based on the commanded velocity
- Parameters
-
velocity | commanded velocity for the dimension this trend is tracking |
- Returns
- true if the sign has flipped
Definition at line 60 of file oscillation.cpp.
bool dwb_critics::OscillationCritic::CommandTrend::negative_only_ |
|
protected |
bool dwb_critics::OscillationCritic::CommandTrend::positive_only_ |
|
protected |
Sign dwb_critics::OscillationCritic::CommandTrend::sign_ |
|
protected |
The documentation for this class was generated from the following files: