Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Nov 30, 2023
1 parent 383e3c5 commit efff68a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions rosbot_xl_gazebo/test/test_diff_drive_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(5) # Wait 5 seconds for the velocity ​​to stabilize
time.sleep(3) # Wait 3 seconds for the velocity ​​to stabilize
assert (
node.controller_odom_flag
), "ROSbot does not move properly in x direction. Check rosbot_xl_base_controller!"
Expand All @@ -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(5) # Wait 5 seconds for the velocity ​​to stabilize
time.sleep(3) # Wait 3 seconds for the velocity ​​to stabilize
assert (
node.controller_odom_flag
), "ROSbot does not rotate properly. Check rosbot_xl_base_controller!"
Expand Down
6 changes: 3 additions & 3 deletions rosbot_xl_gazebo/test/test_mecanum_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(5) # Wait 5 seconds for the velocity ​​to stabilize
time.sleep(3) # Wait 3 seconds for the velocity ​​to stabilize
assert (
node.controller_odom_flag
), "ROSbot does not move properly in x direction. Check rosbot_xl_base_controller!"
Expand All @@ -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(5) # Wait 5 seconds for the velocity ​​to stabilize
time.sleep(3) # Wait 3 seconds for the velocity ​​to stabilize
assert (
node.controller_odom_flag
), "ROSbot does not move properly in y direction. Check rosbot_xl_base_controller!"
Expand All @@ -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(5) # Wait 5 seconds for the velocity ​​to stabilize
time.sleep(3) # Wait 3 seconds for the velocity ​​to stabilize
assert (
node.controller_odom_flag
), "ROSbot does not rotate properly. Check rosbot_xl_base_controller!"
Expand Down
2 changes: 1 addition & 1 deletion rosbot_xl_gazebo/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SimulationTestNode(Node):
__test__ = False
# The inaccuracies in measurement uncertainties and wheel slippage
# cause the rosbot_xl_base_controller to determine inaccurate odometry.
ACCURACY = 0.10 # 10% accuracy
ACCURACY = 0.15 # 15% accuracy

def __init__(self, name="test_node"):
super().__init__(name)
Expand Down

0 comments on commit efff68a

Please sign in to comment.