ackermann_wrong_config.cpp
Go to the documentation of this file.
00001 
00002 #include "test_common.h"
00003 
00004 // TEST CASES
00005 TEST_F(AckermannControllerTest, testWrongConfig)
00006 {
00007   // The controller should be never alive
00008   int secs = 0;
00009   while(!isControllerAlive() && secs < 5)
00010   {
00011     ros::Duration(1.0).sleep();
00012     secs++;
00013   }
00014   // Give up and assume controller load failure after 5 seconds
00015   EXPECT_GE(secs,5);
00016 }
00017 
00018 
00019 int main(int argc, char** argv)
00020 {
00021   testing::InitGoogleTest(&argc, argv);
00022   ros::init(argc, argv, "ackermann_wrong_config_test");
00023 
00024   ros::AsyncSpinner spinner(1);
00025   spinner.start();
00026   int ret = RUN_ALL_TESTS();
00027   spinner.stop();
00028   ros::shutdown();
00029   return ret;
00030 }


ackermann_controller
Author(s): Vincent Rousseau
autogenerated on Sat Jun 8 2019 20:06:19