Skip to content

Commit

Permalink
MAINT: make logging terser.
Browse files Browse the repository at this point in the history
  • Loading branch information
Odd Kiva committed May 20, 2024
1 parent 79dfa60 commit d448784
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions cpp/src/DO/Sara/SfM/BuildingBlocks/PointCloudGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,10 @@ auto PointCloudGenerator::grow_point_cloud(
++scene_point_index;
}

SARA_LOGD(logger, "Check vertex -> scene point index");
SARA_LOGT(logger, "Check mapping: vertex -> scene point index");
for (const auto& [v, i] : _from_vertex_to_scene_point_index)
{
SARA_LOGD(logger, "v:{} -> i:{}", v, i);
SARA_LOGT(logger, "v:{} -> i:{}", v, i);
if (i >= _point_cloud.size())
throw std::runtime_error{fmt::format(
"Error: scene point index {} is out of the range: [{}, {}[", //
Expand Down Expand Up @@ -455,8 +455,6 @@ auto PointCloudGenerator::write_point_cloud(
const Eigen::Vector3d p = _point_cloud[pi].coords();
out << fmt::format("{},{},{},{},{}\n", i, pi, p.x(), p.y(), p.z());

// fmt::print("{},{},{},{},{}\n", i, pi, p.x(), p.y(), p.z());

++i;
}
}
2 changes: 1 addition & 1 deletion cpp/src/DO/Sara/SfM/Odometry/OdometryPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ auto OdometryPipeline::grow_geometry() -> bool
_tracks_alive_without_scene_point) =
_point_cloud_generator->split_by_scene_point_knowledge(_tracks_alive);

#define USE_ABSOLUTE_ROTATION
// #define USE_ABSOLUTE_ROTATION
#if defined(USE_ABSOLUTE_ROTATION)
const auto [abs_pose_mat, abs_pose_est_successful] =
_abs_pose_estimator.estimate_pose(
Expand Down

0 comments on commit d448784

Please sign in to comment.