ros2_control - rolling
Public Member Functions | List of all members
tricycle_controller::Odometry Class Reference

Public Member Functions

 Odometry (size_t velocity_rolling_window_size=10)
 
bool update (double left_vel, double right_vel, const rclcpp::Duration &dt)
 
void updateOpenLoop (double linear, double angular, const rclcpp::Duration &dt)
 
void resetOdometry ()
 
double getX () const
 
double getY () const
 
double getHeading () const
 
double getLinear () const
 
double getAngular () const
 
void setWheelParams (double wheel_separation, double wheel_radius)
 
void setVelocityRollingWindowSize (size_t velocity_rolling_window_size)
 

Member Function Documentation

◆ updateOpenLoop()

void tricycle_controller::Odometry::updateOpenLoop ( double  linear,
double  angular,
const rclcpp::Duration &  dt 
)

Save last linear and angular velocity:

Integrate odometry:


The documentation for this class was generated from the following files: