From 5cd41066891b0a713eeacc04ed339ffdfe4a66e5 Mon Sep 17 00:00:00 2001 From: jieshoudaxue <1641395022@qq.com> Date: Thu, 14 Dec 2023 21:08:00 +0800 Subject: [PATCH] [fix] up it --- robot_hunt_maze/scripts/exploring_maze.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robot_hunt_maze/scripts/exploring_maze.py b/robot_hunt_maze/scripts/exploring_maze.py index 8bd5187..c002b50 100755 --- a/robot_hunt_maze/scripts/exploring_maze.py +++ b/robot_hunt_maze/scripts/exploring_maze.py @@ -53,7 +53,7 @@ def main(): while not rospy.is_shutdown(): start_time = rospy.Time.now() - i = random.randint(0,4) + i = random.SystemRandom().randint(0, 4) goal = MoveBaseGoal() goal.target_pose.pose = target_list[i]