Skip to content

Commit

Permalink
fix model_matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Jun 26, 2024
1 parent 8a03c73 commit f0b9a48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/initial_guess_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class InitialGuessManual {
if (ImGui::Button("Estimate")) {
const auto T_camera_lidar = picking->estimate();
if (T_camera_lidar) {
T_lidar_camera_gizmo.set_model_matrix(T_camera_lidar->inverse().matrix().cast<float>());
T_lidar_camera_gizmo.set_model_matrix(T_camera_lidar->inverse().cast<float>().matrix());
}
}

Expand All @@ -203,8 +203,7 @@ class InitialGuessManual {

std::ofstream ofs(data_path + "/calib.json");
if (!ofs) {
std::cerr << vlcal::console::bold_red << "error: failed to open " << data_path + "/calib.json"
<< " for writing" << vlcal::console::reset << std::endl;
std::cerr << vlcal::console::bold_red << "error: failed to open " << data_path + "/calib.json" << " for writing" << vlcal::console::reset << std::endl;
} else {
ofs << config.dump(2) << std::endl;
}
Expand Down

0 comments on commit f0b9a48

Please sign in to comment.