Class ThreeSensorOdom

Inheritance Relationships

Base Type

Class Documentation

class ThreeSensorOdom : public LouLib::Odometry::AbstractOdometry

Class used as an odometry tracker with three sensors.

Public Functions

ThreeSensorOdom(AbstractOdomSensor &leftSensor, AbstractOdomSensor &rightSensor, const Units::Length &trackWidth, AbstractOdomSensor &backSensor, const Units::Length &backDist)

Constructor

Parameters
  • leftSensor

  • rightSensor

  • trackWidth

  • backSensor

  • backDist

virtual void setPose(Math::Pose2D newPose) override

Sets the current pose of the robot

virtual void update() override

Computes the new position of the robot