8 #include <gtest/gtest.h> 10 #define __STDC_FORMAT_MACROS 12 #include <boost/date_time/posix_time/time_formatters.hpp> 13 #include <boost/date_time/posix_time/posix_time.hpp> 17 mrpt::system::TTimeStamp mtime = mrpt::system::getCurrentLocalTime();
19 mrpt::system::TTimeStamp mtimeDes;
22 std::cout <<
"TimeNow: " 23 << boost::posix_time::to_simple_string(rtimeDes.
toBoost())
25 EXPECT_EQ(mtime, mtimeDes);
bool convert(const mrpt_msgs::ObservationRangeBeacon &_msg, const mrpt::poses::CPose3D &_pose, mrpt::obs::CObservationBeaconRanges &_obj)
boost::posix_time::ptime toBoost() const