Add default values for b and zeta in RamseteController (#2145)

Values b=2.0 and zeta=0.7 have been well-tested to produce desirable results.
This commit is contained in:
Prateek Machiraju
2019-11-30 00:16:01 -05:00
committed by Peter Johnson
parent f66ae59992
commit 2622c6c291
2 changed files with 16 additions and 0 deletions

View File

@@ -54,6 +54,13 @@ class RamseteController {
*/
RamseteController(double b, double zeta);
/**
* Construct a Ramsete unicycle controller. The default arguments for
* b and zeta of 2.0 and 0.7 have been well-tested to produce desireable
* results.
*/
RamseteController() : RamseteController(2.0, 0.7) {}
/**
* Returns true if the pose error is within tolerance of the reference.
*/