42 #include <gtest/gtest.h> 46 #include <rosgraph_msgs/Clock.h> 48 #include <boost/thread.hpp> 49 #include <boost/bind.hpp> 59 rosgraph_msgs::Clock message;
85 ASSERT_TRUE(start.
isZero());
162 int main(
int argc,
char** argv)
164 testing::InitGoogleTest(&argc, argv);
169 return RUN_ALL_TESTS();
TEST(Clock, sleepFromZero)
void publish(const boost::shared_ptr< M > &message) const
const Time TIME_MIN(0, 1)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void sleepThread(bool *done)
int main(int argc, char **argv)
static void setNow(const Time &new_now)
void waitThread(bool *done)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
TEST_F(RosClockTest, SimClockTest)
uint32_t getNumSubscribers() const
void setTime(ros::Time t)
static bool waitForValid()