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.
◆ Sign
◆ CommandTrend()
| dwb_critics::OscillationCritic::CommandTrend::CommandTrend |
( |
| ) |
|
◆ hasSignFlipped()
| 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.
◆ isOscillating()
| 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.
◆ reset()
| void dwb_critics::OscillationCritic::CommandTrend::reset |
( |
| ) |
|
◆ update()
| 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.
◆ negative_only_
| bool dwb_critics::OscillationCritic::CommandTrend::negative_only_ |
|
protected |
◆ positive_only_
| bool dwb_critics::OscillationCritic::CommandTrend::positive_only_ |
|
protected |
◆ sign_
| Sign dwb_critics::OscillationCritic::CommandTrend::sign_ |
|
protected |
The documentation for this class was generated from the following files: