Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Delicat <[email protected]>
  • Loading branch information
rafal-gorecki and delihus authored Nov 30, 2023
1 parent fc17ae6 commit b9199ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rosbot_gazebo/test/test_diff_drive_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_diff_drive_simulation():
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!"
), "ROSbot does not move properly in x direction. Check rosbot_base_controller!"
assert (
node.ekf_odom_flag
), "ROSbot does not move properly in x direction. Check ekf_filter_node!"
Expand All @@ -76,7 +76,7 @@ def test_diff_drive_simulation():
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!"
), "ROSbot does not rotate properly. Check rosbot_base_controller!"
assert node.ekf_odom_flag, "ROSbot does not rotate properly. Check ekf_filter_node!"

flag = node.scan_event.wait(timeout=20.0)
Expand Down
4 changes: 2 additions & 2 deletions rosbot_gazebo/test/test_mecanum_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_mecanum_simulation():
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!"
), "ROSbot does not move properly in x direction. Check rosbot_base_controller!"
assert (
node.ekf_odom_flag
), "ROSbot does not move properly in x direction. Check ekf_filter_node!"
Expand All @@ -76,7 +76,7 @@ def test_mecanum_simulation():
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!"
), "ROSbot does not move properly in y direction. Check rosbot_base_controller!"
assert (
node.ekf_odom_flag
), "ROSbot does not move properly in y direction. Check ekf_filter_node!"
Expand Down
2 changes: 1 addition & 1 deletion rosbot_gazebo/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def ekf_callback(self, data: Odometry):
if self.is_twist_ok(data.twist.twist):
self.ekf_odom_flag = True
else:
self.controller_odom_flag = False
self.ekf_odom_flag = False

def lookup_transform_odom(self):
try:
Expand Down

0 comments on commit b9199ad

Please sign in to comment.