Skip to content

Commit

Permalink
fix eigen cross issue
Browse files Browse the repository at this point in the history
  • Loading branch information
linzha0 committed Jan 30, 2024
1 parent 769db8e commit 2d56c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mvp_control/mvp_control_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@ void MvpControlROS::f_generate_control_allocation_from_tf() {
return;
}

auto torque_rpy = ang_vel_tranform * trans_xyz.cross(Eigen::Vector3d{Fx, Fy, Fz});
auto torque_pqr = trans_xyz.cross(Eigen::Vector3d{Fx, Fy, Fz});
auto torque_rpy = ang_vel_tranform * torque_pqr;

//
contribution_vector(DOF::SURGE) = Fx;
Expand Down

0 comments on commit 2d56c73

Please sign in to comment.