diff --git a/src/test/gtest_odom_2D.cpp b/src/test/gtest_odom_2D.cpp index 0ee5206e8c9e6e5a3bd06505b9de777b23a1bbd5..da1e5ca48bf5fd9f0e96217426cbb31f73be5772 100644 --- a/src/test/gtest_odom_2D.cpp +++ b/src/test/gtest_odom_2D.cpp @@ -364,6 +364,7 @@ TEST(Odom2D, KF_callback) std::cout << "capture ts: " << capture->getTimeStamp() << " - " << capture->getTimeStamp().get(); 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 << std::setfill(' '); // Processor sensor_odom2d->process(capture); diff --git a/src/time_stamp.cpp b/src/time_stamp.cpp index 3ec68441b044a87ea38725708ed3f5b424b0f326..543ceb2cad3007420c84d62f8e4eb3df9d1497cd 100644 --- a/src/time_stamp.cpp +++ b/src/time_stamp.cpp @@ -6,6 +6,7 @@ namespace wolf { std::ostream& operator<<(std::ostream& os, const TimeStamp& _ts) { os << _ts.getSeconds() << "." << std::setfill('0') << std::setw(9) << std::right <<_ts.getNanoSeconds(); // write obj to stream + os << std::setfill(' '); return os; }