Class TwoSensorOdom

Inheritance Relationships

Base Type

Class Documentation

class TwoSensorOdom : public LouLib::Odometry::AbstractOdometry

Class used as an odometry tracker with two sensors.

Public Functions

TwoSensorOdom(AbstractOdomSensor &leftSensor, AbstractOdomSensor &rightSensor, Units::Length trackWidth)

Constructor

Parameters
  • leftSensor

  • rightSensor

  • trackWidth

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