Skip to content
Snippets Groups Projects

Fix std::setfill so that we always leave the ctout state with a space fill

Merged Joan Solà Ortega requested to merge fix_setfill into master
2 files
+ 2
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -364,6 +364,7 @@ TEST(Odom2D, KF_callback)
@@ -364,6 +364,7 @@ TEST(Odom2D, KF_callback)
std::cout << "capture ts: " << capture->getTimeStamp() << " - " << capture->getTimeStamp().get();
std::cout << "capture ts: " << capture->getTimeStamp() << " - " << capture->getTimeStamp().get();
std::cout << "nsec: " << capture->getTimeStamp().getNanoSeconds() << std::endl;
std::cout << "nsec: " << capture->getTimeStamp().getNanoSeconds() << std::endl;
std::cout << "filled nsec: " << std::setfill('0') << std::setw(9) << std::right << capture->getTimeStamp().getNanoSeconds() << std::endl;
std::cout << "filled nsec: " << std::setfill('0') << std::setw(9) << std::right << capture->getTimeStamp().getNanoSeconds() << std::endl;
 
std::cout << std::setfill(' ');
// Processor
// Processor
sensor_odom2d->process(capture);
sensor_odom2d->process(capture);
Loading