From 9019ff3af66ca1742bf3cc770856589d48890dc2 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Wed, 29 Nov 2023 21:58:34 +0100 Subject: [PATCH] Fixed len Signed-off-by: Jakub Delicat --- rosbot_bringup/test/test_multirobot_ekf.py | 2 +- rosbot_controller/test/test_multirobot_controllers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rosbot_bringup/test/test_multirobot_ekf.py b/rosbot_bringup/test/test_multirobot_ekf.py index 883082b8..ca3d5685 100644 --- a/rosbot_bringup/test/test_multirobot_ekf.py +++ b/rosbot_bringup/test/test_multirobot_ekf.py @@ -32,7 +32,7 @@ def generate_test_description(): rosbot_bringup = get_package_share_directory("rosbot_bringup") actions = [] - for i in range(robot_names): + for i in range(len(robot_names)): bringup_launch = IncludeLaunchDescription( PythonLaunchDescriptionSource( PathJoinSubstitution( diff --git a/rosbot_controller/test/test_multirobot_controllers.py b/rosbot_controller/test/test_multirobot_controllers.py index fedc096e..e6117a2f 100644 --- a/rosbot_controller/test/test_multirobot_controllers.py +++ b/rosbot_controller/test/test_multirobot_controllers.py @@ -32,7 +32,7 @@ def generate_test_description(): rosbot_controller = get_package_share_directory("rosbot_controller") actions = [] - for i in range(robot_names): + for i in range(len(robot_names)): controller_launch = IncludeLaunchDescription( PythonLaunchDescriptionSource( PathJoinSubstitution(