Skip to content

Commit 95d2d0e

Browse files
authored
Merge pull request AustinDeric#21 from mpowelson/feature/misc_enhancements
Disable print statements that spam the terminal
2 parents 45b89b6 + 30b4f9a commit 95d2d0e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

yak/src/kfusion/kinfu.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ bool kfusion::KinFu::operator()(const Affine3f& inputCameraMotion,
281281
float rnorm = (float)cv::norm(cameraMotion.rvec());
282282
float tnorm = (float)cv::norm(cameraMotion.translation());
283283

284-
cout << "Rnorm " << rnorm << " Tnorm " << tnorm << endl;
284+
// TODO: Switch this to console_bridge. Disabling for now
285+
// cout << "Rnorm " << rnorm << " Tnorm " << tnorm << endl;
285286

286287
bool integrate = (rnorm + tnorm) / 2 >= p.tsdf_min_camera_movement;
287288
if (integrate)

yak/src/kfusion/tsdf_volume.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ void kfusion::cuda::TsdfVolume::integrate(const Dists& dists, const Affine3f& ca
9292
// actual transform from the camera to the center of the volume What does this even do, exactly? As written it's
9393
// calculating the new transform from the frame of the volume to the frame of the camera after applying the motion of
9494
// the most recent measurement.
95-
std::cout << "CAMERA MOTION TFORM:\n" << camera_motion_tform.inv().matrix << "\n";
95+
// std::cout << "CAMERA MOTION TFORM:\n" << camera_motion_tform.inv().matrix << "\n";
9696
// std::cout << "POSE_\n" << pose_.matrix << "\n";
9797
Affine3f vol2cam = camera_motion_tform.inv() * pose_;
98-
std::cout << "vol2cam:\n" << vol2cam.matrix << "\n";
98+
// std::cout << "vol2cam:\n" << vol2cam.matrix << "\n";
9999
device::Projector proj(intr.fx, intr.fy, intr.cx, intr.cy);
100100
// printf("Intr: %f %f %f %f\n", intr.fx, intr.fy, intr.cx, intr.cy);
101101

yak/src/yak_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ bool yak::FusionServer::fuse(const cv::Mat& depth_data, const Eigen::Affine3f& w
1717
// we want volume to camera
1818
const Eigen::Affine3f current_camera_in_volume = volume_to_world_ * world_to_camera;
1919

20-
std::cout << "Offline camera pose:\n" << current_camera_in_volume.matrix() << "\n";
20+
// std::cout << "Offline camera pose:\n" << current_camera_in_volume.matrix() << "\n";
2121

2222
// Compute the 'motion' from the last_pose to the current pose
2323
Eigen::Affine3f motion = current_camera_in_volume * last_camera_pose_.inverse();

0 commit comments

Comments
 (0)