36 while(!isControllerAlive())
41 geometry_msgs::Twist cmd_vel;
42 cmd_vel.linear.x = 0.0;
43 cmd_vel.angular.z = 0.0;
48 nav_msgs::Odometry old_odom = getLastOdom();
50 cmd_vel.linear.x = 1.0;
55 nav_msgs::Odometry new_odom = getLastOdom();
58 EXPECT_LT(fabs(new_odom.pose.pose.position.x - old_odom.pose.pose.position.x), 0.8);
61 int main(
int argc,
char** argv)
63 testing::InitGoogleTest(&argc, argv);
68 int ret = RUN_ALL_TESTS();
TEST_F(DiffDriveControllerTest, testTimeout)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
ROSCPP_DECL void shutdown()