diff --git a/rosbot_xl_gazebo/test/test_diff_drive_simulation.py b/rosbot_xl_gazebo/test/test_diff_drive_simulation.py index 83a6ada..bb3a5e0 100644 --- a/rosbot_xl_gazebo/test/test_diff_drive_simulation.py +++ b/rosbot_xl_gazebo/test/test_diff_drive_simulation.py @@ -62,7 +62,7 @@ def test_diff_drive_simulation(): # 0.9 m/s and 3.0 rad/s are controller's limits defined in # rosbot_controller/config/diff_drive_controller.yaml node.set_destination_speed(0.9, 0.0, 0.0) - time.sleep(3) # Wait 3 seconds for the velocity ​​to stabilize + time.sleep(5) # Wait 5 seconds for the velocity ​​to stabilize assert ( node.controller_odom_flag ), "ROSbot does not move properly in x direction. Check rosbot_xl_base_controller!" @@ -71,7 +71,7 @@ def test_diff_drive_simulation(): ), "ROSbot does not move properly in x direction. Check ekf_filter_node!" node.set_destination_speed(0.0, 0.0, 3.0) - time.sleep(3) # Wait 3 seconds for the velocity ​​to stabilize + time.sleep(5) # Wait 5 seconds for the velocity ​​to stabilize assert ( node.controller_odom_flag ), "ROSbot does not rotate properly. Check rosbot_xl_base_controller!" diff --git a/rosbot_xl_gazebo/test/test_mecanum_simulation.py b/rosbot_xl_gazebo/test/test_mecanum_simulation.py index a61a6e7..9821539 100644 --- a/rosbot_xl_gazebo/test/test_mecanum_simulation.py +++ b/rosbot_xl_gazebo/test/test_mecanum_simulation.py @@ -62,7 +62,7 @@ def test_mecanum_simulation(): # 0.9 m/s and 3.0 rad/s are controller's limits defined in # rosbot_controller/config/mecanum_drive_controller.yaml node.set_destination_speed(0.9, 0.0, 0.0) - time.sleep(3) # Wait 3 seconds for the velocity ​​to stabilize + time.sleep(5) # Wait 5 seconds for the velocity ​​to stabilize assert ( node.controller_odom_flag ), "ROSbot does not move properly in x direction. Check rosbot_xl_base_controller!" @@ -71,7 +71,7 @@ def test_mecanum_simulation(): ), "ROSbot does not move properly in x direction. Check ekf_filter_node!" node.set_destination_speed(0.0, 0.9, 0.0) - time.sleep(3) # Wait 3 seconds for the velocity ​​to stabilize + time.sleep(5) # Wait 5 seconds for the velocity ​​to stabilize assert ( node.controller_odom_flag ), "ROSbot does not move properly in y direction. Check rosbot_xl_base_controller!" @@ -80,7 +80,7 @@ def test_mecanum_simulation(): ), "ROSbot does not move properly in y direction. Check ekf_filter_node!" node.set_destination_speed(0.0, 0.0, 3.0) - time.sleep(3) # Wait 3 seconds for the velocity ​​to stabilize + time.sleep(5) # Wait 5 seconds for the velocity ​​to stabilize assert ( node.controller_odom_flag ), "ROSbot does not rotate properly. Check rosbot_xl_base_controller!"