|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <odometry_2d_tracker.hpp>
Public Member Functions | |
| Odometry2DTracker (ChassisWorldYawObserverInterface *chassisYawObserver, ChassisDisplacementObserverInterface *chassisDisplacementObserver) | |
| void | update () |
| modm::Location2D< float > | getCurrentLocation2D () const final |
| modm::Vector2f | getCurrentVelocity2D () const final |
| float | getYaw () const final |
| uint32_t | getLastComputedOdometryTime () const final |
| void | overrideOdometryPosition (const float positionX, const float positionY) |
Class for tracking the 2D position of an object over time.
The faster update() is called the better.
|
inline |
| [in] | chassisYawObserver | pointer to an object which implements the ChassisWorldYawObserverInterface. Should return the angle of the chassis forward vector relative to the x-axis of the field. |
| [in] | chassisDisplacementObserver | pointer to an object which implements the ChassisDisplacementObserverInterface. Used for getting the chassis displacement |
|
inlinefinalvirtual |
Implements tap::algorithms::odometry::Odometry2DInterface.
|
inlinefinalvirtual |
Implements tap::algorithms::odometry::Odometry2DInterface.
|
inlinefinalvirtual |
Implements tap::algorithms::odometry::Odometry2DInterface.
|
inlinefinalvirtual |
Implements tap::algorithms::odometry::Odometry2DInterface.
|
virtual |
Implements tap::algorithms::odometry::Odometry2DInterface.
| void tap::algorithms::odometry::Odometry2DTracker::update | ( | ) |
Run logic and update tracked chassis position. Call frequently for better results.
< Rotational velocity doesn't matter