diff --git a/rosbot_gazebo/test/test_diff_drive_simulation.py b/rosbot_gazebo/test/test_diff_drive_simulation.py index 0dddc49b..11f769f9 100644 --- a/rosbot_gazebo/test/test_diff_drive_simulation.py +++ b/rosbot_gazebo/test/test_diff_drive_simulation.py @@ -67,12 +67,16 @@ def test_diff_drive_simulation(): node.set_destination_speed(0.9, 0.0, 0.0) controller_flag = node.controller_odom_event.wait(timeout=20.0) ekf_flag = node.ekf_odom_event.wait(timeout=20.0) - assert controller_flag and ekf_flag, "ROSbot does not move properly in x direction!" + assert ( + controller_flag + ), "ROSbot does not move properly in x direction. Check rosbot_base_controller!" + assert ekf_flag, "ROSbot does not move properly in x direction. Check ekf_filter_node!" node.set_destination_speed(0.0, 0.0, 3.0) controller_flag = node.controller_odom_event.wait(timeout=20.0) ekf_flag = node.ekf_odom_event.wait(timeout=20.0) - assert controller_flag and ekf_flag, "ROSbot does not rotate properly!" + assert controller_flag, "ROSbot does not rotate properly. Check rosbot_base_controller!" + assert ekf_flag, "ROSbot does not rotate properly. Check ekf_filter_node!" flag = node.scan_event.wait(timeout=20.0) assert flag, "ROSbot's lidar does not work properly!" diff --git a/rosbot_gazebo/test/test_mecanum_simulation.py b/rosbot_gazebo/test/test_mecanum_simulation.py index 40930555..c6b7f9be 100644 --- a/rosbot_gazebo/test/test_mecanum_simulation.py +++ b/rosbot_gazebo/test/test_mecanum_simulation.py @@ -68,17 +68,24 @@ def test_mecanum_simulation(): node.set_destination_speed(0.9, 0.0, 0.0) controller_flag = node.controller_odom_event.wait(timeout=20.0) ekf_flag = node.ekf_odom_event.wait(timeout=20.0) - assert controller_flag and ekf_flag, "ROSbot does not move properly in x direction!" + assert ( + controller_flag + ), "ROSbot does not move properly in x direction. Check rosbot_base_controller!" + assert ekf_flag, "ROSbot does not move properly in x direction. Check ekf_filter_node!" node.set_destination_speed(0.0, 0.9, 0.0) controller_flag = node.controller_odom_event.wait(timeout=20.0) ekf_flag = node.ekf_odom_event.wait(timeout=20.0) - assert controller_flag and ekf_flag, "ROSbot does not move properly in y direction!" + assert ( + controller_flag + ), "ROSbot does not move properly in y direction. Check rosbot_base_controller!" + assert ekf_flag, "ROSbot does not move properly in y direction. Check ekf_filter_node!" node.set_destination_speed(0.0, 0.0, 3.0) controller_flag = node.controller_odom_event.wait(timeout=20.0) ekf_flag = node.ekf_odom_event.wait(timeout=20.0) - assert controller_flag and ekf_flag, "ROSbot does not rotate properly!" + assert controller_flag, "ROSbot does not rotate properly. Check rosbot_base_controller!" + assert ekf_flag, "ROSbot does not rotate properly. Check ekf_filter_node!" flag = node.scan_event.wait(timeout=20.0) assert flag, "ROSbot's lidar does not work properly!"