|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
Bundle of all sensors used by the LightLib pose estimator. More...
#include <odometry.hpp>
Public Member Functions | |
| OdomSensors (TrackingWheel *v1, TrackingWheel *v2, TrackingWheel *h1, TrackingWheel *h2, pros::Imu *imu, pros::Imu *imu2=nullptr) | |
| Wheel + IMU only constructor. | |
| OdomSensors (TrackingWheel *v1, TrackingWheel *v2, TrackingWheel *h1, TrackingWheel *h2, pros::Imu *imu, pros::Imu *imu2, pros::Gps *gps, float gpsOffsetX, float gpsOffsetY, std::vector< DistanceSensorSpec > distanceSensors) | |
| Full constructor with GPS and distance sensors. | |
Public Attributes | |
| TrackingWheel * | vertical1 |
| Primary vertical (forward-axis) tracking wheel. | |
| TrackingWheel * | vertical2 |
| Secondary vertical tracking wheel (or nullptr). | |
| TrackingWheel * | horizontal1 |
| Primary horizontal (lateral) tracking wheel. | |
| TrackingWheel * | horizontal2 |
| Secondary horizontal tracking wheel (or nullptr). | |
| pros::Imu * | imu |
| Primary IMU. | |
| pros::Imu * | imu2 |
| Optional second IMU; nullptr if not used. | |
| pros::Gps * | gps |
| nullptr → EKF skips the GPS update step. | |
| float | gpsOffsetX |
| meters, robot frame | |
| float | gpsOffsetY |
| meters, robot frame | |
| std::vector< DistanceSensorSpec > | distanceSensors |
| Empty → LightCast inactive; EKF-only mode. | |
Bundle of all sensors used by the LightLib pose estimator.
Definition at line 110 of file odometry.hpp.
|
inline |
Wheel + IMU only constructor.
Definition at line 127 of file odometry.hpp.
|
inline |
Full constructor with GPS and distance sensors.
Definition at line 133 of file odometry.hpp.
| std::vector<DistanceSensorSpec> OdomSensors::distanceSensors |
Empty → LightCast inactive; EKF-only mode.
Definition at line 124 of file odometry.hpp.
| pros::Gps* OdomSensors::gps |
nullptr → EKF skips the GPS update step.
Definition at line 119 of file odometry.hpp.
| float OdomSensors::gpsOffsetX |
meters, robot frame
Definition at line 120 of file odometry.hpp.
| float OdomSensors::gpsOffsetY |
meters, robot frame
Definition at line 121 of file odometry.hpp.
| TrackingWheel* OdomSensors::horizontal1 |
Primary horizontal (lateral) tracking wheel.
Definition at line 113 of file odometry.hpp.
| TrackingWheel* OdomSensors::horizontal2 |
Secondary horizontal tracking wheel (or nullptr).
Definition at line 114 of file odometry.hpp.
| pros::Imu* OdomSensors::imu |
Primary IMU.
Definition at line 115 of file odometry.hpp.
| pros::Imu* OdomSensors::imu2 |
Optional second IMU; nullptr if not used.
Definition at line 116 of file odometry.hpp.
| TrackingWheel* OdomSensors::vertical1 |
Primary vertical (forward-axis) tracking wheel.
Definition at line 111 of file odometry.hpp.
| TrackingWheel* OdomSensors::vertical2 |
Secondary vertical tracking wheel (or nullptr).
Definition at line 112 of file odometry.hpp.