We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b245155 commit b505bc6Copy full SHA for b505bc6
steering_controllers_library/src/steering_odometry.cpp
@@ -148,7 +148,7 @@ bool SteeringOdometry::update_from_velocity(
148
steer_pos_ = (right_steer_pos + left_steer_pos) * 0.5;
149
double linear_velocity =
150
(right_traction_wheel_vel + left_traction_wheel_vel) * wheel_radius_ * 0.5;
151
- const double angular_velocity = steer_pos_ * linear_velocity / wheelbase_;
+ const double angular_velocity = tan(steer_pos_) * linear_velocity / wheelbase_;
152
153
return update_odometry(linear_velocity, angular_velocity, dt);
154
}
0 commit comments