zhm-real il y a 5 ans
Parent
commit
3adfe1febf

BIN
Sampling_based_Planning/rrt_2D/__pycache__/env.cpython-37.pyc


BIN
Sampling_based_Planning/rrt_2D/__pycache__/plotting.cpython-37.pyc


BIN
Sampling_based_Planning/rrt_2D/__pycache__/rrt.cpython-37.pyc


BIN
Sampling_based_Planning/rrt_2D/__pycache__/utils.cpython-37.pyc


+ 3 - 3
Sampling_based_Planning/rrt_2D/rrt_connect.py

@@ -72,9 +72,9 @@ class RrtConnect:
                     return self.extract_path(node_new, node_new_prim)
 
             if len(self.V2) < len(self.V1):
-                list_mid = copy.deepcopy(self.V1)
-                self.V1 = copy.deepcopy(self.V2)
-                self.V2 = copy.deepcopy(list_mid)
+                list_mid = self.V2
+                self.V2 = self.V1
+                self.V1 = list_mid
 
         return None