Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include <gtest/gtest.h>
00020 #include <ros/time.h>
00021 #include <QCoreApplication>
00022 #include <QTimer>
00023 #include <boost/thread/thread.hpp>
00024 #include <ros/console.h>
00025
00026 void qtWorker(int argc, char *argv[])
00027 {
00028 QCoreApplication a(argc, argv);
00029 a.exec();
00030 }
00031
00032 int main(int argc, char **argv)
00033 {
00034 boost::thread* thr = new boost::thread(&qtWorker, argc, argv);
00035 ros::Time::init();
00036 while(NULL == QCoreApplication::instance())
00037 {
00038 ROS_INFO_STREAM_THROTTLE(0.1, "Waiting for QCore application to start");
00039 }
00040 testing::InitGoogleTest(&argc, argv);
00041 return RUN_ALL_TESTS();
00042 }