]> rtime.felk.cvut.cz Git - hubacji1/path-to-traj.git/commitdiff
Remove code solved in the original palanner
authorJiri Vlasak <jiri.vlasak.2@cvut.cz>
Sun, 19 Mar 2023 21:54:46 +0000 (22:54 +0100)
committerJiri Vlasak <jiri.vlasak.2@cvut.cz>
Sun, 19 Mar 2023 22:01:03 +0000 (23:01 +0100)
path-to-traj.py

index 1e9331a3b3571e4fe658f635b08d9f02640f8c91..c9ef49f7fba64d830d64c15d764d68300a32e387 100755 (executable)
@@ -409,10 +409,6 @@ if __name__ == "__main__":
     plan["path"] = normalize_path(plan["path"])
     path = list(plan["path"])
     cusps = find_cusps_in(path)
-    path[0][3] = path[1][3]  # initial point is part of the first segment
-    path[0][4] = path[1][4]
-    path[-1][3] = path[-2][3]  # goal point is part of the last segment
-    path[-1][4] = path[-2][4]
     path_segments = find_segments_of(path)
     print(f"path segments ({len(path_segments)}):")
     for s in path_segments: