Skip to content

Commit

Permalink
Fix for lgmath orthonormal bug when plotting edges.
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-congram committed May 19, 2021
1 parent 4cc8466 commit 86c7522
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,8 @@ void WindowOptimizationModule::updateGraph(QueryCache &qdata, MapCache &mdata,
pose_a_itr->second.tf_state_var->getValue();
lgmath::se3::Transformation T_b_0 =
pose_b_itr->second.tf_state_var->getValue();
T_a_0.reproject(true); // quick fix for lgmath orthonormal issue
T_b_0.reproject(true);
if (pose_b_itr->second.isLocked() == false) {
if (pose_a_itr->first.majorId() != qdata.live_id->majorId()) {
continue;
Expand Down
2 changes: 2 additions & 0 deletions ros2/src/vtr_testing/include/vtr_testing/module_offline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ class ModuleOffline {

for (; path_itr != graph_->end(); ++path_itr) {
T_curr = T_curr * path_itr->T();
T_curr.reproject(true);

if (path_itr->from().isValid()) {
LOG(INFO) << path_itr->e()->id();
}
Expand Down

0 comments on commit 86c7522

Please sign in to comment.