42 #include <gtest/gtest.h> 46 #include <rosgraph_msgs/Clock.h> 57 rosgraph_msgs::Clock message;
80 ASSERT_TRUE(start.
toSec() > 1000.0);
88 ASSERT_LT(d.
toSec(), 1.1);
89 ASSERT_GT(d.
toSec(), 0.9);
106 int main(
int argc,
char** argv)
108 testing::InitGoogleTest(&argc, argv);
112 return RUN_ALL_TESTS();
int main(int argc, char **argv)
void publish(const boost::shared_ptr< M > &message) const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void setTime(ros::Time t)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
ROSCPP_DECL void spinOnce()
TEST_F(RosTimeTest, RealTimeTest)