Skip to content

Commit

Permalink
Make No Sense -YoungBoy Never Broke again
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrhm committed Mar 7, 2024
1 parent 2596de1 commit 6f3446d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/teleoperation/lander_align/lander_align.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,21 @@ namespace mrover {
rot << n.x(),0,0,
n.y(),0,1,
n.z(),1,0;
std::cout << "rot matrix " << rot << std::endl;
std::cout << "rot matrix 2 s" << std::endl << rot << std::endl;


Eigen::HouseholderQR<Eigen::Matrix3d> qr{rot};
Eigen::Matrix3d q = qr.householderQ();
rot.col(0) = q.col(0);
rot.col(1) = q.col(2);
rot.col(2) = q.col(1);
std::cout << "rot matrix " << std::endl << rot << std::endl;
rot << 1,0,0,
0,-1,0,
0,0,1;

}
//Calculate the plane location in the world frame`
//Calculate the plane location in the world frame
manif::SE3d plane_loc_in_world = {{mBestLocationInZED.value().x(), mBestLocationInZED.value().y(), mBestLocationInZED.value().z()}, manif::SO3d{Eigen::Quaterniond{rot}.normalized()}};
plane_loc_in_world = zedToMap * plane_loc_in_world;
manif::SE3d plane_loc_in_world_final = {{plane_loc_in_world.translation().x(),plane_loc_in_world.translation().y(),plane_loc_in_world.translation().z()}, manif::SO3d{Eigen::Quaterniond{rot}.normalized()}};
Expand Down

0 comments on commit 6f3446d

Please sign in to comment.