Skip to content

Commit

Permalink
Update test_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
delihus authored Jan 17, 2024
1 parent b8f23ed commit 03bc506
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rosbot_gazebo/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def publish_cmd_vel_messages(self):
def x_speed_test(node, v_x=0.0, v_y=0.0, v_yaw=0.0, robot_name="ROSbot"):
node.set_destination_speed(v_x, v_y, v_yaw)

assert node.vel_stabilization_time_event.wait(timeout=120.0), (
assert node.vel_stabilization_time_event.wait(timeout=240.0), (
f"{robot_name}: The simulation is running slowly or has crashed! The time elapsed"
" since setting the target speed is:"
f" {(node.current_time - node.goal_received_time):.1f}."
Expand All @@ -182,7 +182,7 @@ def x_speed_test(node, v_x=0.0, v_y=0.0, v_yaw=0.0, robot_name="ROSbot"):
def y_speed_test(node, v_x=0.0, v_y=0.0, v_yaw=0.0, robot_name="ROSbot"):
node.set_destination_speed(v_x, v_y, v_yaw)

assert node.vel_stabilization_time_event.wait(timeout=120.0), (
assert node.vel_stabilization_time_event.wait(timeout=240.0), (
f"{robot_name}: The simulation is running slowly or has crashed! The time elapsed"
" since setting the target speed is:"
f" {(node.current_time - node.goal_received_time):.1f}."
Expand All @@ -200,7 +200,7 @@ def y_speed_test(node, v_x=0.0, v_y=0.0, v_yaw=0.0, robot_name="ROSbot"):
def yaw_speed_test(node, v_x=0.0, v_y=0.0, v_yaw=0.0, robot_name="ROSbot"):
node.set_destination_speed(v_x, v_y, v_yaw)

assert node.vel_stabilization_time_event.wait(timeout=120.0), (
assert node.vel_stabilization_time_event.wait(timeout=240.0), (
f"{robot_name}: The simulation is running slowly or has crashed! The time elapsed"
" since setting the target speed is:"
f" {(node.current_time - node.goal_received_time):.1f}."
Expand Down

0 comments on commit 03bc506

Please sign in to comment.