From 47229645a49e6cebe23c9f57d82516995657d14c Mon Sep 17 00:00:00 2001 From: Vincent Rousseau Date: Thu, 7 Dec 2017 18:19:56 +0100 Subject: [PATCH] [diff_drive] The test is also always true when evaluating cmd_vel_out --- diff_drive_controller/test/diff_drive_controller_nan.test | 6 ++++++ diff_drive_controller/test/diff_drive_nan_test.cpp | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/diff_drive_controller/test/diff_drive_controller_nan.test b/diff_drive_controller/test/diff_drive_controller_nan.test index 892e0bd59..a836a6551 100644 --- a/diff_drive_controller/test/diff_drive_controller_nan.test +++ b/diff_drive_controller/test/diff_drive_controller_nan.test @@ -2,6 +2,11 @@ + + diffbot_controller: + publish_cmd: True + + + diff --git a/diff_drive_controller/test/diff_drive_nan_test.cpp b/diff_drive_controller/test/diff_drive_nan_test.cpp index f622728f5..cca671184 100644 --- a/diff_drive_controller/test/diff_drive_nan_test.cpp +++ b/diff_drive_controller/test/diff_drive_nan_test.cpp @@ -99,8 +99,8 @@ TEST_F(DiffDriveControllerTest, testNaNCmd) cmd_vel.linear.x = NAN; cmd_vel.angular.z = 0.0; publish(cmd_vel); - nav_msgs::Odometry odom = getLastOdom(); - ROS_INFO_STREAM("odom.twist.twist.linear.x "<