]> rtime.felk.cvut.cz Git - hubacji1/path-to-traj.git/commitdiff
Remove unused code
authorJiri Vlasak <jiri.vlasak.2@cvut.cz>
Mon, 27 Feb 2023 23:34:53 +0000 (00:34 +0100)
committerJiri Vlasak <jiri.vlasak.2@cvut.cz>
Mon, 27 Feb 2023 23:34:54 +0000 (00:34 +0100)
path-to-traj.py

index dee417830c82dd610bf82b28aae54a518566446c..3c2f0be64d720c939c045327d534611b8f6e3361 100644 (file)
@@ -5,7 +5,6 @@ import json
 
 PLAN_FILE = "pa1"
 DT = 0.02  # seconds
-WPD = 0.5  # distance between waypoints, meters
 
 
 def sgn(x):
@@ -199,7 +198,7 @@ if __name__ == "__main__":
     nnpath = list(plan["path"])
     path = normalize_path(nnpath)
     if PLAN_FILE in ["pa1", "pa3", "pe1"]:
-        del path[0]  # needed for pa1, pa3, pe1
+        del path[0]
     npath = list(path)
     if PLAN_FILE == "pa2":
         path = path[:30] + path[32:]