Skip to content

Commit

Permalink
Update test_mecanum_controllers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki authored Oct 25, 2023
1 parent 66c494f commit 665e53d
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions rosbot_controller/test/test_mecanum_controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,20 @@ def test_controllers_startup_fail():

node.start_node_thread()
msgs_received_flag = node.joint_state_msg_event.wait(timeout=10.0)
assert (
not msgs_received_flag
), "Expected JointStates message not received. Check joint_state_broadcaster!"
assert not msgs_received_flag, (
"Received JointStates message that should not have appeared. Check whether other"
" robots are connected to your network.!"
)
msgs_received_flag = node.odom_msg_event.wait(timeout=10.0)
assert (
not msgs_received_flag
), "Expected Odom message not received. Check rosbot_base_controller!"
assert not msgs_received_flag, (
"Received Odom message that should not have appeared. Check whether other robots are"
" connected to your network.!"
)
msgs_received_flag = node.imu_msg_event.wait(timeout=10.0)
assert not msgs_received_flag, "Expected Imu message not received. Check imu_broadcaster!"
assert not msgs_received_flag, (
"Received Imu message that should not have appeared. Check whether other robots are"
" connected to your network.!"
)
finally:
rclpy.shutdown()

Expand Down

0 comments on commit 665e53d

Please sign in to comment.