Skip to content

Commit

Permalink
Update steering_controllers_library/src/steering_odometry.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Sai Kishor Kothakota <[email protected]>
  • Loading branch information
reinzor and saikishor committed Sep 11, 2024
1 parent fdcfe1e commit 7eda2e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions steering_controllers_library/src/steering_odometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ double SteeringOdometry::get_linear_velocity_double_traction_axle(
}

// overdetermined, we take the average
double vel_r = vel_wheel_r * turning_radius / (turning_radius + wheel_track_ * 0.5);
double vel_l = vel_wheel_l * turning_radius / (turning_radius - wheel_track_ * 0.5);
const double vel_r = vel_wheel_r * turning_radius / (turning_radius + wheel_track_ * 0.5);
const double vel_l = vel_wheel_l * turning_radius / (turning_radius - wheel_track_ * 0.5);
return (vel_r + vel_l) * 0.5;
}

Expand Down

0 comments on commit 7eda2e7

Please sign in to comment.