Skip to content

Commit

Permalink
trying to fix wrong direction right left
Browse files Browse the repository at this point in the history
  • Loading branch information
VincidaB committed Apr 30, 2024
1 parent 92daf12 commit 7da58f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/omnidirectional_controllers/src/kinematics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ std::vector<double> Kinematics::getWheelsAngularVelocities(RobotVelocity vel) {
double wl = vel.omega * robot_params_.robot_radius;

angular_vel_vec_[0] = (wl + vy) / robot_params_.wheel_radius;
angular_vel_vec_[1] = (wl - vx) / robot_params_.wheel_radius;
angular_vel_vec_[1] = -(wl - vx) / robot_params_.wheel_radius;
angular_vel_vec_[2] = (wl - vy) / robot_params_.wheel_radius;
angular_vel_vec_[3] = (wl + vx) / robot_params_.wheel_radius;
angular_vel_vec_[3] = -(wl + vx) / robot_params_.wheel_radius;

return angular_vel_vec_;
}
Expand Down

0 comments on commit 7da58f1

Please sign in to comment.