Helper class for performing the same logic on the x,y and theta dimensions. More...
#include <oscillation.h>
| Public Member Functions | |
| CommandTrend () | |
| bool | hasSignFlipped () | 
| Check whether we are currently tracking a flipped sign. | |
| bool | isOscillating (double velocity) | 
| Check to see whether the proposed velocity would be considered oscillating. | |
| void | reset () | 
| bool | update (double velocity) | 
| update internal flags based on the commanded velocity | |
| Protected Types | |
| enum | Sign { ZERO, POSITIVE, NEGATIVE } | 
| Protected Attributes | |
| bool | negative_only_ | 
| bool | positive_only_ | 
| Sign | sign_ | 
Helper class for performing the same logic on the x,y and theta dimensions.
Definition at line 94 of file oscillation.h.
| enum dwb_critics::OscillationCritic::CommandTrend::Sign  [protected] | 
Definition at line 122 of file oscillation.h.
Definition at line 48 of file oscillation.cpp.
Check whether we are currently tracking a flipped sign.
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.
| velocity | the velocity to evaluate | 
Definition at line 84 of file oscillation.cpp.
Definition at line 53 of file oscillation.cpp.
| bool dwb_critics::OscillationCritic::CommandTrend::update | ( | double | velocity | ) | 
update internal flags based on the commanded velocity
| velocity | commanded velocity for the dimension this trend is tracking | 
Definition at line 60 of file oscillation.cpp.
| bool dwb_critics::OscillationCritic::CommandTrend::negative_only_  [protected] | 
Definition at line 125 of file oscillation.h.
| bool dwb_critics::OscillationCritic::CommandTrend::positive_only_  [protected] | 
Definition at line 125 of file oscillation.h.
Definition at line 124 of file oscillation.h.