#include <twoEncoderOdometry.hpp>
|
| virtual OdomState | odomMathStep (const std::valarray< std::int32_t > &itickDiff, const QTime &ideltaT) |
| | Does the math, side-effect free, for one odom step.
|
| |
Definition at line 18 of file twoEncoderOdometry.hpp.
◆ TwoEncoderOdometry()
TwoEncoderOdometry.
Tracks the movement of the robot and estimates its position in coordinates relative to the start (assumed to be (0, 0, 0)).
- Parameters
-
| itimeUtil | The TimeUtil. |
| imodel | The chassis model for reading sensors. |
| ichassisScales | The chassis dimensions. |
| ilogger | The logger this instance will log to. |
◆ ~TwoEncoderOdometry()
| virtual okapi::TwoEncoderOdometry::~TwoEncoderOdometry |
( |
| ) |
|
|
virtualdefault |
◆ getModel()
◆ getScales()
◆ getState()
Returns the current state.
- Parameters
-
| imode | The mode to return the state in. |
- Returns
- The current state in the given format.
Implements okapi::Odometry.
◆ odomMathStep()
| virtual OdomState okapi::TwoEncoderOdometry::odomMathStep |
( |
const std::valarray< std::int32_t > & |
itickDiff, |
|
|
const QTime & |
ideltaT |
|
) |
| |
|
protectedvirtual |
Does the math, side-effect free, for one odom step.
- Parameters
-
| itickDiff | The tick difference from the previous step to this step. |
| ideltaT | The time difference from the previous step to this step. |
- Returns
- The newly computed OdomState.
Reimplemented in okapi::ThreeEncoderOdometry.
◆ setScales()
| void okapi::TwoEncoderOdometry::setScales |
( |
const ChassisScales & |
ichassisScales | ) |
|
|
overridevirtual |
◆ setState()
Sets a new state to be the current state.
- Parameters
-
| istate | The new state in the given format. |
| imode | The mode to treat the input state as. |
Implements okapi::Odometry.
◆ step()
| void okapi::TwoEncoderOdometry::step |
( |
| ) |
|
|
overridevirtual |
◆ chassisScales
◆ lastTicks
| std::valarray<std::int32_t> okapi::TwoEncoderOdometry::lastTicks {0, 0, 0} |
|
protected |
◆ logger
| std::shared_ptr<Logger> okapi::TwoEncoderOdometry::logger |
|
protected |
◆ maximumTickDiff
| const std::int32_t okapi::TwoEncoderOdometry::maximumTickDiff {1000} |
|
protected |
◆ model
◆ newTicks
| std::valarray<std::int32_t> okapi::TwoEncoderOdometry::newTicks {0, 0, 0} |
|
protected |
◆ rate
| std::unique_ptr<AbstractRate> okapi::TwoEncoderOdometry::rate |
|
protected |
◆ state
◆ tickDiff
| std::valarray<std::int32_t> okapi::TwoEncoderOdometry::tickDiff {0, 0, 0} |
|
protected |
◆ timer
The documentation for this class was generated from the following file: