Public Member Functions | Protected Types | Protected Attributes
dwb_critics::OscillationCritic::CommandTrend Class Reference

Helper class for performing the same logic on the x,y and theta dimensions. More...

#include <oscillation.h>

List of all members.

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_

Detailed Description

Helper class for performing the same logic on the x,y and theta dimensions.

Definition at line 94 of file oscillation.h.


Member Enumeration Documentation

Enumerator:
ZERO 
POSITIVE 
NEGATIVE 

Definition at line 122 of file oscillation.h.


Constructor & Destructor Documentation

Definition at line 48 of file oscillation.cpp.


Member Function Documentation

Check whether we are currently tracking a flipped sign.

Returns:
True if the sign has flipped

Definition at line 89 of file oscillation.cpp.

Check to see whether the proposed velocity would be considered oscillating.

Parameters:
velocitythe velocity to evaluate
Returns:
true if the sign has flipped more than once

Definition at line 84 of file oscillation.cpp.

Definition at line 53 of file oscillation.cpp.

update internal flags based on the commanded velocity

Parameters:
velocitycommanded velocity for the dimension this trend is tracking
Returns:
true if the sign has flipped

Definition at line 60 of file oscillation.cpp.


Member Data Documentation

Definition at line 125 of file oscillation.h.

Definition at line 125 of file oscillation.h.

Definition at line 124 of file oscillation.h.


The documentation for this class was generated from the following files:


dwb_critics
Author(s): David V. Lu!!
autogenerated on Wed Jun 26 2019 20:09:47