Skip to content

Commit

Permalink
[Control] modified sr inverse gain
Browse files Browse the repository at this point in the history
  • Loading branch information
itahara-shotaro committed Nov 24, 2023
1 parent b4c9252 commit ac36cd9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ namespace aerial_robot_control

// Step2: calculate SR-inverse of the new Q

double sr_inverse_sigma = 1;
double sr_inverse_sigma = 10;
Eigen::MatrixXd q = Q_new_test;
Eigen::MatrixXd q_q_t = q * q.transpose();
Eigen::MatrixXd sr_inv = q.transpose() * (q_q_t + sr_inverse_sigma* Eigen::MatrixXd::Identity(q_q_t.cols(), q_q_t.rows())).inverse();
Expand All @@ -237,7 +237,7 @@ namespace aerial_robot_control
sr_inv.block(0,5,4,1) = Eigen::Vector4d::Zero(4);
sr_inv.block(4,6,4,1) = Eigen::Vector4d::Zero(4);
sr_inv.block(0,7,4,1) = Eigen::Vector4d::Zero(4);
q_mat_inv_=sr_inv;
q_mat_inv_ = 10*sr_inv;
//x y z r y1 y2 p1 p2
//step3: calculate thrust accounting for softness & linear acc

Expand Down

0 comments on commit ac36cd9

Please sign in to comment.