diff --git a/src/main/deploy/choreo/Paths.chor b/src/main/deploy/choreo/Paths.chor new file mode 100644 index 00000000..6f18015b --- /dev/null +++ b/src/main/deploy/choreo/Paths.chor @@ -0,0 +1,339 @@ +{ + "name":"Paths", + "version":1, + "type":"Swerve", + "variables":{ + "expressions":{ + "offset":{ + "dimension":"Length", + "var":{ + "exp":"0.2 m", + "val":0.2 + } + } + }, + "poses":{ + "A":{ + "x":{ + "exp":"3.2076 m", + "val":3.2076 + }, + "y":{ + "exp":"4.061430505 m", + "val":4.061430505 + }, + "heading":{ + "exp":"0 rad", + "val":0.0 + } + }, + "B":{ + "x":{ + "exp":"3.2076 m", + "val":3.2076 + }, + "y":{ + "exp":"3.732813495 m", + "val":3.732813495 + }, + "heading":{ + "exp":"0 rad", + "val":0.0 + } + }, + "C":{ + "x":{ + "exp":"3.8176981000607 m", + "val":3.8176981000607 + }, + "y":{ + "exp":"2.9336485880936 m", + "val":2.9336485880936 + }, + "heading":{ + "exp":"1 / 3 * pi rad", + "val":1.0471975511965976 + } + }, + "D":{ + "x":{ + "exp":"4.1022887788364 m", + "val":4.1022887788364 + }, + "y":{ + "exp":"2.7693400830936 m", + "val":2.7693400830936 + }, + "heading":{ + "exp":"1 / 3 * pi rad", + "val":1.0471975511965976 + } + }, + "E":{ + "x":{ + "exp":"5.0994349400607 m", + "val":5.0994349400607 + }, + "y":{ + "exp":"2.8981180830936 m", + "val":2.8981180830936 + }, + "heading":{ + "exp":"2 / 3 * pi rad", + "val":2.0943951023931953 + } + }, + "F":{ + "x":{ + "exp":"5.3840256188364 m", + "val":5.3840256188364 + }, + "y":{ + "exp":"3.0624265880936 m", + "val":3.0624265880936 + }, + "heading":{ + "exp":"2 / 3 * pi rad", + "val":2.0943951023931953 + } + }, + "G":{ + "x":{ + "exp":"5.77107368 m", + "val":5.77107368 + }, + "y":{ + "exp":"3.990369495 m", + "val":3.990369495 + }, + "heading":{ + "exp":"pi rad", + "val":3.141592653589793 + } + }, + "H":{ + "x":{ + "exp":"5.77107368 m", + "val":5.77107368 + }, + "y":{ + "exp":"4.318986505 m", + "val":4.318986505 + }, + "heading":{ + "exp":"pi rad", + "val":3.141592653589793 + } + }, + "I":{ + "x":{ + "exp":"5.1609755799393 m", + "val":5.1609755799393 + }, + "y":{ + "exp":"5.1181514119064 m", + "val":5.1181514119064 + }, + "heading":{ + "exp":"4 / 3 * pi rad", + "val":4.1887902047863905 + } + }, + "J":{ + "x":{ + "exp":"4.8763849011636 m", + "val":4.8763849011636 + }, + "y":{ + "exp":"5.2824599169064 m", + "val":5.2824599169064 + }, + "heading":{ + "exp":"4 / 3 * pi rad", + "val":4.1887902047863905 + } + }, + "K":{ + "x":{ + "exp":"3.8792387399393 m", + "val":3.8792387399393 + }, + "y":{ + "exp":"5.1536819169064 m", + "val":5.1536819169064 + }, + "heading":{ + "exp":"5 / 3 * pi rad", + "val":5.235987755982989 + } + }, + "L":{ + "x":{ + "exp":"3.5946480611636 m", + "val":3.5946480611636 + }, + "y":{ + "exp":"4.9893734119064 m", + "val":4.9893734119064 + }, + "heading":{ + "exp":"5 / 3 * pi rad", + "val":5.235987755982989 + } + }, + "R1":{ + "x":{ + "exp":"7.142991913746631 m", + "val":7.142991913746631 + }, + "y":{ + "exp":"6.0518 m", + "val":6.0518 + }, + "heading":{ + "exp":"pi rad", + "val":3.141592653589793 + } + }, + "R2":{ + "x":{ + "exp":"7.15 m", + "val":7.15 + }, + "y":{ + "exp":"4.5 m", + "val":4.5 + }, + "heading":{ + "exp":"pi rad", + "val":3.141592653589793 + } + }, + "R3":{ + "x":{ + "exp":"7.15 m", + "val":7.15 + }, + "y":{ + "exp":"3.5518 m", + "val":3.5518 + }, + "heading":{ + "exp":"pi rad", + "val":3.141592653589793 + } + }, + "R4":{ + "x":{ + "exp":"7.142991913746631 m", + "val":7.142991913746631 + }, + "y":{ + "exp":"2 m", + "val":2.0 + }, + "heading":{ + "exp":"pi rad", + "val":3.141592653589793 + } + }, + "S1":{ + "x":{ + "exp":"0.8796831418724709 m", + "val":0.8796831418724709 + }, + "y":{ + "exp":"1.0444864371099356 m", + "val":1.0444864371099356 + }, + "heading":{ + "exp":"0.9426766270029469 rad", + "val":0.9426766270029469 + } + }, + "S2":{ + "x":{ + "exp":"0.8796831418724709 m", + "val":0.8796831418724709 + }, + "y":{ + "exp":"7.007313562890064 m", + "val":7.007313562890064 + }, + "heading":{ + "exp":"-0.9426766270029469 rad", + "val":-0.9426766270029469 + } + } + } + }, + "config":{ + "frontLeft":{ + "x":{ + "exp":"12.25 in", + "val":0.31115 + }, + "y":{ + "exp":"12.25 in", + "val":0.31115 + } + }, + "backLeft":{ + "x":{ + "exp":"-12.25 in", + "val":-0.31115 + }, + "y":{ + "exp":"12.25 in", + "val":0.31115 + } + }, + "mass":{ + "exp":"129 lbs", + "val":58.513415730000006 + }, + "inertia":{ + "exp":"4.342 kg m ^ 2", + "val":4.342 + }, + "gearing":{ + "exp":"8.143", + "val":8.143 + }, + "radius":{ + "exp":"2 in", + "val":0.0508 + }, + "vmax":{ + "exp":"5676 RPM", + "val":594.3893300591889 + }, + "tmax":{ + "exp":"0.94095238095 N * m", + "val":0.94095238095 + }, + "cof":{ + "exp":"1.542", + "val":1.542 + }, + "bumper":{ + "front":{ + "exp":"18 in", + "val":0.4572 + }, + "side":{ + "exp":"18 in", + "val":0.4572 + }, + "back":{ + "exp":"18 in", + "val":0.4572 + } + }, + "differentialTrackWidth":{ + "exp":"22 in", + "val":0.5588 + } + }, + "generationFeatures":[] +} diff --git a/src/main/deploy/choreo/Post C to S1.traj b/src/main/deploy/choreo/Post C to S1.traj new file mode 100644 index 00000000..b599efaa --- /dev/null +++ b/src/main/deploy/choreo/Post C to S1.traj @@ -0,0 +1,71 @@ +{ + "name":"Post C to S1", + "version":1, + "snapshot":{ + "waypoints":[ + {"x":3.8176981000607, "y":2.9336485880936, "heading":1.0471975511965976, "intervals":34, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":0.8796831418724709, "y":1.0444864371099356, "heading":0.9426766270029469, "intervals":40, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":0.0, "y":0.0, "w":17.548, "h":8.052}}, "enabled":false}, + {"from":0, "to":1, "data":{"type":"MaxAcceleration", "props":{"max":6.0}}, "enabled":true}], + "targetDt":0.05 + }, + "params":{ + "waypoints":[ + {"x":{"exp":"C.x", "val":3.8176981000607}, "y":{"exp":"C.y", "val":2.9336485880936}, "heading":{"exp":"C.heading", "val":1.0471975511965976}, "intervals":34, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"S1.x", "val":0.8796831418724709}, "y":{"exp":"S1.y", "val":1.0444864371099356}, "heading":{"exp":"S1.heading", "val":0.9426766270029469}, "intervals":40, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":{"exp":"0 m", "val":0.0}, "y":{"exp":"0 m", "val":0.0}, "w":{"exp":"17.548 m", "val":17.548}, "h":{"exp":"8.052 m", "val":8.052}}}, "enabled":false}, + {"from":0, "to":1, "data":{"type":"MaxAcceleration", "props":{"max":{"exp":"6 m / s ^ 2", "val":6.0}}}, "enabled":true}], + "targetDt":{ + "exp":"0.05 s", + "val":0.05 + } + }, + "trajectory":{ + "sampleType":"Swerve", + "waypoints":[0.0,1.5614], + "samples":[ + {"t":0.0, "x":3.8177, "y":2.93365, "heading":1.0472, "vx":0.0, "vy":0.0, "omega":0.0, "ax":-5.04382, "ay":-3.24459, "alpha":-1.20174, "fx":[-71.5048,-75.39836,-75.9745,-72.25336], "fy":[-47.47192,-43.96492,-47.49139,-50.92376]}, + {"t":0.04592, "x":3.81238, "y":2.93023, "heading":1.0472, "vx":-0.23163, "vy":-0.149, "omega":-0.05519, "ax":-5.04481, "ay":-3.24534, "alpha":-0.85617, "fx":[-72.18167,-74.94076,-75.36363,-72.70312], "fy":[-47.47909,-44.98375,-47.48671,-49.94642]}, + {"t":0.09185, "x":3.79642, "y":2.91996, "heading":1.04466, "vx":-0.46331, "vy":-0.29804, "omega":-0.09451, "ax":-5.04466, "ay":-3.24533, "alpha":-0.56663, "fx":[-72.73303,-74.5181,-74.84816,-73.08085], "fy":[-47.47654,-45.82713,-47.47651,-49.11531]}, + {"t":0.13777, "x":3.76983, "y":2.90285, "heading":1.04032, "vx":-0.69497, "vy":-0.44708, "omega":-0.12053, "ax":-5.04435, "ay":-3.24551, "alpha":-0.32181, "fx":[-73.17053,-74.24769,-74.37206,-73.37215], "fy":[-47.47961,-46.54954,-47.47351,-48.40294]}, + {"t":0.18369, "x":3.73259, "y":2.8789, "heading":1.03479, "vx":-0.92663, "vy":-0.59612, "omega":-0.13531, "ax":-5.04421, "ay":-3.24537, "alpha":-0.10736, "fx":[-73.58176,-73.92484,-73.99306,-73.65408], "fy":[-47.47173,-47.17144,-47.46971,-47.78492]}, + {"t":0.22962, "x":3.68472, "y":2.8481, "heading":1.02857, "vx":-1.15828, "vy":-0.74516, "omega":-0.14024, "ax":-5.04368, "ay":-3.24573, "alpha":0.07091, "fx":[-73.89174,-73.76055,-73.6219,-73.84878], "fy":[-47.47258,-47.69735,-47.48366,-47.26536]}, + {"t":0.27554, "x":3.62621, "y":2.81046, "heading":1.02213, "vx":-1.3899, "vy":-0.89422, "omega":-0.13698, "ax":-5.04311, "ay":-3.24603, "alpha":0.22469, "fx":[-74.19435,-73.50022,-73.34642,-74.04869], "fy":[-47.46799,-48.13766,-47.5016,-46.82911]}, + {"t":0.32147, "x":3.55706, "y":2.76597, "heading":1.01584, "vx":-1.6215, "vy":-1.04329, "omega":-0.12666, "ax":-5.04229, "ay":-3.24652, "alpha":0.34659, "fx":[-74.38937,-73.43335,-73.06515,-74.15389], "fy":[-47.46084,-48.50824,-47.52144,-46.47446]}, + {"t":0.36739, "x":3.47728, "y":2.71463, "heading":1.01003, "vx":-1.85306, "vy":-1.19238, "omega":-0.11075, "ax":-5.04164, "ay":-3.24643, "alpha":0.44318, "fx":[-74.59013,-73.22847,-72.90294,-74.28214], "fy":[-47.4459,-48.77888,-47.53425,-46.20086]}, + {"t":0.41331, "x":3.38686, "y":2.65645, "heading":1.00494, "vx":-2.08459, "vy":-1.34147, "omega":-0.09039, "ax":-5.03945, "ay":-3.24819, "alpha":0.49816, "fx":[-74.6278,-73.27909,-72.70243,-74.26593], "fy":[-47.46232,-48.97192,-47.57188,-46.05656]}, + {"t":0.45924, "x":3.28582, "y":2.59142, "heading":1.00079, "vx":-2.31602, "vy":-1.49064, "omega":-0.06752, "ax":-5.03823, "ay":-3.24732, "alpha":0.52941, "fx":[-74.69513,-73.10379,-72.69492,-74.31], "fy":[-47.42093,-49.08013,-47.54043,-45.97055]}, + {"t":0.50516, "x":3.17414, "y":2.51954, "heading":0.99769, "vx":-2.54739, "vy":-1.63976, "omega":-0.0432, "ax":-5.03017, "ay":-3.25426, "alpha":0.47271, "fx":[-74.40632,-73.3619,-72.53454,-74.0296], "fy":[-47.55421,-48.99192,-47.65812,-46.21363]}, + {"t":0.55108, "x":3.05185, "y":2.44081, "heading":0.9957, "vx":-2.7784, "vy":-1.78921, "omega":-0.02149, "ax":-5.03242, "ay":-3.23393, "alpha":0.3859, "fx":[-74.31719,-73.25122,-72.88437,-74.01151], "fy":[-47.22904,-48.51289,-47.28335,-46.20276]}, + {"t":0.59701, "x":2.91895, "y":2.35523, "heading":0.99472, "vx":-3.0095, "vy":-1.93773, "omega":-0.00377, "ax":-2.31499, "ay":-1.45141, "alpha":0.08214, "fx":[-34.08221,-33.71747,-33.71278,-33.94523], "fy":[-21.26254,-21.4321,-21.19676,-21.03529]}, + {"t":0.64293, "x":2.77831, "y":2.26471, "heading":0.99454, "vx":-3.11582, "vy":-2.00438, "omega":0.0, "ax":-0.01679, "ay":0.02502, "alpha":-0.00001, "fx":[-0.02486,-0.29258,-0.46642,-0.19873], "fy":[0.65346,-0.11294,0.55384,0.36963]}, + {"t":0.68885, "x":2.6352, "y":2.17269, "heading":0.99454, "vx":-3.11659, "vy":-2.00323, "omega":0.0, "ax":-0.0037, "ay":0.00593, "alpha":-0.00001, "fx":[-0.01377,-0.20388,0.00664,-0.00573], "fy":[0.08454,0.0764,0.08891,0.09704]}, + {"t":0.73478, "x":2.49207, "y":2.0807, "heading":0.99454, "vx":-3.11676, "vy":-2.00296, "omega":0.0, "ax":0.01752, "ay":-0.0274, "alpha":0.0, "fx":[0.22936,0.26201,0.28322,0.25056], "fy":[-0.43664,-0.34185,-0.42406,-0.40076]}, + {"t":0.7807, "x":2.34896, "y":1.98869, "heading":0.99454, "vx":-3.11595, "vy":-2.00422, "omega":0.0, "ax":0.00859, "ay":-0.01321, "alpha":-0.00001, "fx":[0.13105,0.10511,0.13434,0.13234], "fy":[-0.19342,-0.19434,-0.19292,-0.19201]}, + {"t":0.82662, "x":2.20587, "y":1.89663, "heading":0.99454, "vx":-3.11556, "vy":-2.00482, "omega":0.0, "ax":-0.00113, "ay":0.00158, "alpha":0.00001, "fx":[-0.08807,-0.00129,0.05505,-0.03172], "fy":[-0.06736,0.17629,-0.03662,0.02024]}, + {"t":0.87255, "x":2.06279, "y":1.80457, "heading":0.99454, "vx":-3.11561, "vy":-2.00475, "omega":0.0, "ax":-0.00406, "ay":0.00741, "alpha":-0.00001, "fx":[-0.22554,0.564,-0.3152,-0.26081], "fy":[0.11693,0.1493,0.09963,0.06744]}, + {"t":0.91847, "x":1.91971, "y":1.71251, "heading":0.99454, "vx":-3.1158, "vy":-2.00441, "omega":0.0, "ax":2.26267, "ay":1.53032, "alpha":-0.05426, "fx":[33.29833,33.05053,32.89732,33.15052], "fy":[22.50578,22.35817,22.43167,22.24884]}, + {"t":0.9644, "x":1.779, "y":1.62207, "heading":0.99454, "vx":-3.01189, "vy":-1.93413, "omega":-0.00249, "ax":5.02375, "ay":3.24738, "alpha":-0.34849, "fx":[74.08338,73.43944,72.67145,73.76247], "fy":[47.47561,48.53395,47.51498,46.49081]}, + {"t":1.01032, "x":1.64598, "y":1.53668, "heading":0.99443, "vx":-2.78118, "vy":-1.785, "omega":-0.0185, "ax":5.05022, "ay":3.22305, "alpha":-0.50155, "fx":[74.80509,73.33744,72.93726,74.42588], "fy":[47.04113,48.69094,47.153,45.70678]}, + {"t":1.05624, "x":1.52359, "y":1.4581, "heading":0.99358, "vx":-2.54925, "vy":-1.63699, "omega":-0.04153, "ax":5.04508, "ay":3.23667, "alpha":-0.51456, "fx":[74.73814,73.4068,72.72297,74.33666], "fy":[47.28014,48.84871,47.41823,45.84174]}, + {"t":1.10217, "x":1.41184, "y":1.38634, "heading":0.99167, "vx":-2.31756, "vy":-1.48835, "omega":-0.06516, "ax":5.04703, "ay":3.23639, "alpha":-0.51554, "fx":[74.79392,73.25731,72.85532,74.41249], "fy":[47.23716,48.89901,47.38514,45.85107]}, + {"t":1.14809, "x":1.31073, "y":1.3214, "heading":0.98868, "vx":-2.08579, "vy":-1.33972, "omega":-0.08884, "ax":5.04593, "ay":3.23977, "alpha":-0.44124, "fx":[74.63894,73.39136,72.92487,74.29936], "fy":[47.32205,48.67845,47.46437,46.10488]}, + {"t":1.19401, "x":1.22026, "y":1.26329, "heading":0.9846, "vx":-1.85406, "vy":-1.19094, "omega":-0.1091, "ax":5.0467, "ay":3.23966, "alpha":-0.35794, "fx":[74.49645,73.42807,73.14762,74.22769], "fy":[47.30742,48.47158,47.43085,46.35372]}, + {"t":1.23994, "x":1.14044, "y":1.21202, "heading":0.97959, "vx":-1.6223, "vy":-1.04216, "omega":-0.12554, "ax":5.04648, "ay":3.2408, "alpha":-0.22431, "fx":[74.23564,73.63008,73.36191,74.05892], "fy":[47.36217,48.06621,47.45059,46.75117]}, + {"t":1.28586, "x":1.07126, "y":1.16757, "heading":0.97383, "vx":-1.39054, "vy":-0.89333, "omega":-0.13584, "ax":5.04667, "ay":3.24108, "alpha":-0.07822, "fx":[73.96313,73.7433,73.68388,73.90761], "fy":[47.38005,47.66712,47.41418,47.18548]}, + {"t":1.33178, "x":1.01272, "y":1.12997, "heading":0.96759, "vx":-1.15878, "vy":-0.74449, "omega":-0.13943, "ax":5.04653, "ay":3.24176, "alpha":0.10899, "fx":[73.59272,73.99075,74.01932,73.687], "fy":[47.44278,47.11317,47.39776,47.73246]}, + {"t":1.37771, "x":0.96483, "y":1.0992, "heading":0.96118, "vx":-0.92703, "vy":-0.59562, "omega":-0.13442, "ax":5.04665, "ay":3.24194, "alpha":0.3156, "fx":[73.19158,74.18041,74.45272,73.47179], "fy":[47.48965,46.5337,47.33697,48.33674]}, + {"t":1.42363, "x":0.92758, "y":1.07526, "heading":0.95501, "vx":-0.69527, "vy":-0.44674, "omega":-0.11993, "ax":5.04655, "ay":3.24239, "alpha":0.56734, "fx":[72.68891,74.48197,74.92426,73.19577], "fy":[47.58294,45.78909,47.28735,49.06382]}, + {"t":1.46955, "x":0.90097, "y":1.05816, "heading":0.9495, "vx":-0.46351, "vy":-0.29783, "omega":-0.09388, "ax":5.04661, "ay":3.24255, "alpha":0.85141, "fx":[72.1236,74.76212,75.50196,72.90643], "fy":[47.67461,44.97529,47.19881,49.88406]}, + {"t":1.51548, "x":0.885, "y":1.04791, "heading":0.94519, "vx":-0.23176, "vy":-0.14892, "omega":-0.05478, "ax":5.04654, "ay":3.24287, "alpha":1.19279, "fx":[71.4297,75.11852,76.15592,72.58598], "fy":[47.85027,43.94673,47.09917,50.85508]}, + {"t":1.5614, "x":0.87968, "y":1.04449, "heading":0.94268, "vx":0.0, "vy":0.0, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.0,0.0,0.0,0.0], "fy":[0.0,0.0,0.0,0.0]}], + "splits":[0] + }, + "events":[] +} diff --git a/src/main/deploy/choreo/Post D to S1.traj b/src/main/deploy/choreo/Post D to S1.traj new file mode 100644 index 00000000..828d5391 --- /dev/null +++ b/src/main/deploy/choreo/Post D to S1.traj @@ -0,0 +1,72 @@ +{ + "name":"Post D to S1", + "version":1, + "snapshot":{ + "waypoints":[ + {"x":4.1022887788364, "y":2.7693400830936, "heading":1.0471975511965976, "intervals":35, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":0.8796831418724709, "y":1.0444864371099356, "heading":0.9426766270029469, "intervals":40, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":0.0, "y":0.0, "w":17.548, "h":8.052}}, "enabled":false}, + {"from":0, "to":1, "data":{"type":"MaxAcceleration", "props":{"max":6.0}}, "enabled":true}], + "targetDt":0.05 + }, + "params":{ + "waypoints":[ + {"x":{"exp":"D.x", "val":4.1022887788364}, "y":{"exp":"D.y", "val":2.7693400830936}, "heading":{"exp":"D.heading", "val":1.0471975511965976}, "intervals":35, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"S1.x", "val":0.8796831418724709}, "y":{"exp":"S1.y", "val":1.0444864371099356}, "heading":{"exp":"S1.heading", "val":0.9426766270029469}, "intervals":40, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":{"exp":"0 m", "val":0.0}, "y":{"exp":"0 m", "val":0.0}, "w":{"exp":"17.548 m", "val":17.548}, "h":{"exp":"8.052 m", "val":8.052}}}, "enabled":false}, + {"from":0, "to":1, "data":{"type":"MaxAcceleration", "props":{"max":{"exp":"6 m / s ^ 2", "val":6.0}}}, "enabled":true}], + "targetDt":{ + "exp":"0.05 s", + "val":0.05 + } + }, + "trajectory":{ + "sampleType":"Swerve", + "waypoints":[0.0,1.60519], + "samples":[ + {"t":0.0, "x":4.10229, "y":2.76934, "heading":1.0472, "vx":0.0, "vy":0.0, "omega":0.0, "ax":-5.28593, "ay":-2.83308, "alpha":-1.19562, "fx":[-75.18797,-78.78404,-79.41057,-75.91535], "fy":[-41.34151,-37.85021,-41.56959,-45.01176]}, + {"t":0.04586, "x":4.09673, "y":2.76636, "heading":1.0472, "vx":-0.24243, "vy":-0.12993, "omega":-0.05483, "ax":-5.28689, "ay":-2.83393, "alpha":-0.85136, "fx":[-75.82167,-78.38285,-78.82132,-76.32789], "fy":[-41.38261,-38.89783,-41.54019,-44.00247]}, + {"t":0.09172, "x":4.08005, "y":2.75742, "heading":1.04468, "vx":-0.4849, "vy":-0.2599, "omega":-0.09388, "ax":-5.28661, "ay":-2.83416, "alpha":-0.5697, "fx":[-76.33493,-78.00502,-78.32604,-76.67172], "fy":[-41.42924,-39.7178,-41.52601,-43.16329]}, + {"t":0.13759, "x":4.05225, "y":2.74252, "heading":1.04038, "vx":-0.72735, "vy":-0.38988, "omega":-0.12001, "ax":-5.28624, "ay":-2.83451, "alpha":-0.31745, "fx":[-76.75579,-77.73161,-77.88026,-76.94849], "fy":[-41.43929,-40.5175,-41.48593,-42.41386]}, + {"t":0.18345, "x":4.01334, "y":2.72166, "heading":1.03487, "vx":-0.96979, "vy":-0.51988, "omega":-0.13457, "ax":-5.28588, "ay":-2.83477, "alpha":-0.1102, "fx":[-77.13368,-77.4512,-77.51072,-77.19929], "fy":[-41.4725,-41.11843,-41.48456,-41.79629]}, + {"t":0.22931, "x":3.9633, "y":2.69483, "heading":1.0287, "vx":-1.21222, "vy":-0.64989, "omega":-0.13962, "ax":-5.28528, "ay":-2.83535, "alpha":0.07507, "fx":[-77.43696,-77.2656,-77.16859,-77.38887], "fy":[-41.47647,-41.71114,-41.47016,-41.24846]}, + {"t":0.27517, "x":3.90215, "y":2.66205, "heading":1.0223, "vx":-1.45461, "vy":-0.77993, "omega":-0.13618, "ax":-5.28459, "ay":-2.83598, "alpha":0.22202, "fx":[-77.71008,-77.05435,-76.89399,-77.56086], "fy":[-41.50418,-42.12887,-41.49363,-40.81612]}, + {"t":0.32104, "x":3.82988, "y":2.62329, "heading":1.01605, "vx":-1.69698, "vy":-0.90999, "omega":-0.126, "ax":-5.28365, "ay":-2.83682, "alpha":0.35092, "fx":[-77.90734,-76.94663,-76.64073,-77.66993], "fy":[-41.49741,-42.56041,-41.49338,-40.44091]}, + {"t":0.3669, "x":3.74649, "y":2.57858, "heading":1.01027, "vx":-1.9393, "vy":-1.0401, "omega":-0.1099, "ax":-5.28234, "ay":-2.83801, "alpha":0.44024, "fx":[-78.07292,-76.79032,-76.46033,-77.76405], "fy":[-41.52399,-42.81416,-41.53237,-40.19138]}, + {"t":0.41276, "x":3.65199, "y":2.52789, "heading":1.00523, "vx":-2.18156, "vy":-1.17025, "omega":-0.08971, "ax":-5.28053, "ay":-2.8395, "alpha":0.50287, "fx":[-78.13281,-76.78156,-76.29567,-77.77151], "fy":[-41.52556,-43.05367,-41.54658,-40.02285]}, + {"t":0.45862, "x":3.54639, "y":2.47123, "heading":1.00112, "vx":-2.42374, "vy":-1.30048, "omega":-0.06665, "ax":-5.27626, "ay":-2.84425, "alpha":0.52105, "fx":[-78.13331,-76.63225,-76.21854,-77.74815], "fy":[-41.59802,-43.15616,-41.62718,-40.04567]}, + {"t":0.50449, "x":3.42968, "y":2.4086, "heading":0.99806, "vx":-2.66572, "vy":-1.43093, "omega":-0.04275, "ax":-5.27394, "ay":-2.84222, "alpha":0.47995, "fx":[-77.9621,-76.87629,-76.17167,-77.58619], "fy":[-41.56155,-43.03476,-41.58313,-40.12882]}, + {"t":0.55035, "x":3.30188, "y":2.33998, "heading":0.9961, "vx":-2.9076, "vy":-1.56128, "omega":-0.02074, "ax":-5.25677, "ay":-2.85478, "alpha":0.33363, "fx":[-77.58335,-76.5668,-76.17009,-77.27159], "fy":[-41.87454,-42.54973,-41.87051,-40.74801]}, + {"t":0.59621, "x":3.163, "y":2.26538, "heading":0.99515, "vx":-3.14868, "vy":-1.6922, "omega":-0.00544, "ax":-2.57801, "ay":-1.20141, "alpha":0.11859, "fx":[-38.42934,-35.99342,-38.11221,-38.31293], "fy":[-17.59951,-17.76585,-17.54046,-17.39298]}, + {"t":0.64207, "x":3.01588, "y":2.18651, "heading":0.9949, "vx":-3.26692, "vy":-1.7473, "omega":0.0, "ax":-0.08951, "ay":0.16661, "alpha":0.0, "fx":[-0.77029,-1.42406,-1.8486,-1.19486], "fy":[3.14662,1.26168,2.89918,2.44132]}, + {"t":0.68794, "x":2.86596, "y":2.10655, "heading":0.9949, "vx":-3.27102, "vy":-1.73966, "omega":0.0, "ax":0.01259, "ay":-0.02355, "alpha":-0.00001, "fx":[0.31689,-0.30891,0.38508,0.34372], "fy":[-0.35171,-0.37827,-0.3374,-0.3109]}, + {"t":0.7338, "x":2.71596, "y":2.02674, "heading":0.9949, "vx":-3.27045, "vy":-1.74074, "omega":0.0, "ax":0.0116, "ay":-0.02184, "alpha":0.0, "fx":[0.18125,0.16718,0.15804,0.17211], "fy":[-0.30384,-0.34522,-0.30942,-0.31973]}, + {"t":0.77966, "x":2.56598, "y":1.94688, "heading":0.9949, "vx":-3.26991, "vy":-1.74175, "omega":0.0, "ax":-0.00041, "ay":0.00077, "alpha":0.0, "fx":[-0.007,-0.00256,-0.00746,-0.00718], "fy":[0.01138,0.01158,0.01128,0.01108]}, + {"t":0.82552, "x":2.41601, "y":1.867, "heading":0.9949, "vx":-3.26993, "vy":-1.74171, "omega":0.0, "ax":-0.01222, "ay":0.02302, "alpha":-0.00001, "fx":[-0.19347,-0.17563,-0.16404,-0.18189], "fy":[0.31696,0.36923,0.32396,0.33692]}, + {"t":0.87139, "x":2.26603, "y":1.78714, "heading":0.9949, "vx":-3.27049, "vy":-1.74065, "omega":0.0, "ax":-0.01399, "ay":0.02618, "alpha":0.00002, "fx":[-0.34001,0.29818,-0.40947,-0.36735], "fy":[0.39028,0.41741,0.37568,0.34861]}, + {"t":0.91725, "x":2.11602, "y":1.70734, "heading":0.9949, "vx":-3.27114, "vy":-1.73945, "omega":0.0, "ax":0.09209, "ay":-0.17144, "alpha":0.0, "fx":[0.79603,1.46423,1.8981,1.22993], "fy":[-3.23323,-1.30625,-2.98012,-2.51194]}, + {"t":0.96311, "x":1.9661, "y":1.62738, "heading":0.9949, "vx":-3.26691, "vy":-1.74732, "omega":0.0, "ax":2.57926, "ay":1.19622, "alpha":-0.11952, "fx":[38.4705,35.93567,38.15922,38.35598], "fy":[17.52284,17.68747,17.46477,17.31995]}, + {"t":1.00897, "x":1.81898, "y":1.54851, "heading":0.9949, "vx":-3.14862, "vy":-1.69245, "omega":-0.00548, "ax":5.25632, "ay":2.85562, "alpha":-0.33382, "fx":[77.57692,76.56208,76.16255,77.26344], "fy":[41.88517,42.56366,41.88339,40.75994]}, + {"t":1.05484, "x":1.68011, "y":1.47389, "heading":0.99465, "vx":-2.90755, "vy":-1.56149, "omega":-0.02079, "ax":5.2734, "ay":2.84322, "alpha":-0.48009, "fx":[77.95466,76.87604,76.16058,77.57353], "fy":[41.5711,43.05057,41.60154,40.14337]}, + {"t":1.1007, "x":1.5523, "y":1.40526, "heading":0.9937, "vx":-2.6657, "vy":-1.43109, "omega":-0.04281, "ax":5.27588, "ay":2.84497, "alpha":-0.51895, "fx":[78.13211,76.6345,76.2076,77.73531], "fy":[41.60349,43.14904,41.65515,40.0615]}, + {"t":1.14656, "x":1.4356, "y":1.34262, "heading":0.99173, "vx":-2.42374, "vy":-1.30061, "omega":-0.06661, "ax":5.28031, "ay":2.8399, "alpha":-0.50319, "fx":[78.1372,76.7914,76.28416,77.75599], "fy":[41.51179,43.05915,41.57308,40.02845]}, + {"t":1.19242, "x":1.32999, "y":1.28596, "heading":0.98868, "vx":-2.18157, "vy":-1.17037, "omega":-0.08969, "ax":5.28213, "ay":2.8384, "alpha":-0.43861, "fx":[78.08084,76.8047,76.44604,77.74389], "fy":[41.50633,42.80525,41.57172,40.20124]}, + {"t":1.23829, "x":1.23549, "y":1.23527, "heading":0.98456, "vx":-1.93932, "vy":-1.04019, "omega":-0.1098, "ax":5.28351, "ay":2.83708, "alpha":-0.35129, "fx":[77.91791,76.96376,76.6264,77.64833], "fy":[41.46863,42.56371,41.53043,40.44468]}, + {"t":1.28415, "x":1.15211, "y":1.19055, "heading":0.97953, "vx":-1.697, "vy":-0.91008, "omega":-0.12591, "ax":5.28445, "ay":2.83623, "alpha":-0.21825, "fx":[77.71919,77.07009,76.88062,77.54138], "fy":[41.48927,42.10237,41.53657,40.82951]}, + {"t":1.33001, "x":1.07984, "y":1.15179, "heading":0.97375, "vx":-1.45464, "vy":-0.78, "omega":-0.13592, "ax":5.28518, "ay":2.83554, "alpha":-0.07544, "fx":[77.44055,77.27017,77.16306,77.38039], "fy":[41.4668,41.71408,41.485,41.25127]}, + {"t":1.37587, "x":1.01868, "y":1.119, "heading":0.96752, "vx":-1.21225, "vy":-0.64996, "omega":-0.13938, "ax":5.28573, "ay":2.83505, "alpha":0.11037, "fx":[77.12339,77.43618,77.51645,77.20984], "fy":[41.49826,41.12229,41.4675,41.80055]}, + {"t":1.42174, "x":0.96864, "y":1.09217, "heading":0.96113, "vx":-0.96984, "vy":-0.51993, "omega":-0.13432, "ax":5.28617, "ay":2.83465, "alpha":0.31737, "fx":[76.72664,77.68456,77.90726,76.99313], "fy":[41.51736,40.51949,41.41295,42.41529]}, + {"t":1.4676, "x":0.92972, "y":1.07131, "heading":0.95497, "vx":-0.7274, "vy":-0.38993, "omega":-0.11977, "ax":5.28655, "ay":2.83427, "alpha":0.56967, "fx":[76.27695,77.91377,78.38085,76.76273], "fy":[41.58258,39.72348,41.37576,43.16088]}, + {"t":1.51346, "x":0.90192, "y":1.05641, "heading":0.94947, "vx":-0.48495, "vy":-0.25994, "omega":-0.09364, "ax":5.28683, "ay":2.83404, "alpha":0.85162, "fx":[75.72716,78.2324,78.91154,76.47925], "fy":[41.63752,38.89842,41.29534,43.99814]}, + {"t":1.55932, "x":0.88524, "y":1.04747, "heading":0.94518, "vx":-0.24248, "vy":-0.12997, "omega":-0.05458, "ax":5.28708, "ay":2.83382, "alpha":1.19015, "fx":[75.08625,78.57182,79.54611,76.16078], "fy":[41.72951,37.86937,41.21883,44.99851]}, + {"t":1.60519, "x":0.87968, "y":1.04449, "heading":0.94268, "vx":0.0, "vy":0.0, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.0,0.0,0.0,0.0], "fy":[0.0,0.0,0.0,0.0]}], + "splits":[0] + }, + "events":[] +} diff --git a/src/main/deploy/choreo/Post E to S1.traj b/src/main/deploy/choreo/Post E to S1.traj new file mode 100644 index 00000000..cb861f94 --- /dev/null +++ b/src/main/deploy/choreo/Post E to S1.traj @@ -0,0 +1,120 @@ +{ + "name":"Post E to S1", + "version":1, + "snapshot":{ + "waypoints":[ + {"x":5.0994349400607, "y":2.8981180830936, "heading":2.0943951023931953, "intervals":9, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":5.026229859303812, "y":2.6249130023367124, "heading":2.0943951023931953, "intervals":44, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":1.1147328951031552, "y":1.3681399764173166, "heading":0.9426766270029469, "intervals":8, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":0.997208018487813, "y":1.2063132067636262, "heading":0.9426766270029469, "intervals":10, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":0.8796831418724709, "y":1.0444864371099356, "heading":0.9426766270029469, "intervals":39, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":0.0, "y":0.0, "w":17.548, "h":8.052}}, "enabled":false}, + {"from":2, "to":4, "data":{"type":"MaxAngularVelocity", "props":{"max":0.1}}, "enabled":true}, + {"from":0, "to":1, "data":{"type":"MaxAngularVelocity", "props":{"max":0.01}}, "enabled":true}, + {"from":0, "to":4, "data":{"type":"MaxAcceleration", "props":{"max":6.0}}, "enabled":true}, + {"from":3, "to":4, "data":{"type":"MaxVelocity", "props":{"max":0.5}}, "enabled":true}], + "targetDt":0.05 + }, + "params":{ + "waypoints":[ + {"x":{"exp":"E.x", "val":5.0994349400607}, "y":{"exp":"E.y", "val":2.8981180830936}, "heading":{"exp":"E.heading", "val":2.0943951023931953}, "intervals":9, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"E.x + offset * 1 * (sin(-E.heading) - cos(E.heading))", "val":5.026229859303812}, "y":{"exp":"E.y + offset * 1 * (cos(-E.heading) - sin(E.heading))", "val":2.6249130023367124}, "heading":{"exp":"E.heading", "val":2.0943951023931953}, "intervals":44, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"S1.x + offset * 2 * cos(S1.heading)", "val":1.1147328951031552}, "y":{"exp":"S1.y + offset * 2 * sin(S1.heading)", "val":1.3681399764173166}, "heading":{"exp":"S1.heading", "val":0.9426766270029469}, "intervals":8, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"S1.x + offset * 1 * cos(S1.heading)", "val":0.997208018487813}, "y":{"exp":"S1.y + offset * 1 * sin(S1.heading)", "val":1.2063132067636262}, "heading":{"exp":"S1.heading", "val":0.9426766270029469}, "intervals":10, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"S1.x", "val":0.8796831418724709}, "y":{"exp":"S1.y", "val":1.0444864371099356}, "heading":{"exp":"S1.heading", "val":0.9426766270029469}, "intervals":39, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":{"exp":"0 m", "val":0.0}, "y":{"exp":"0 m", "val":0.0}, "w":{"exp":"17.548 m", "val":17.548}, "h":{"exp":"8.052 m", "val":8.052}}}, "enabled":false}, + {"from":2, "to":4, "data":{"type":"MaxAngularVelocity", "props":{"max":{"exp":"0.1 rad / s", "val":0.1}}}, "enabled":true}, + {"from":0, "to":1, "data":{"type":"MaxAngularVelocity", "props":{"max":{"exp":"0.01 rad / s", "val":0.01}}}, "enabled":true}, + {"from":0, "to":4, "data":{"type":"MaxAcceleration", "props":{"max":{"exp":"6 m / s ^ 2", "val":6.0}}}, "enabled":true}, + {"from":3, "to":4, "data":{"type":"MaxVelocity", "props":{"max":{"exp":"0.5 m / s", "val":0.5}}}, "enabled":true}], + "targetDt":{ + "exp":"0.05 s", + "val":0.05 + } + }, + "trajectory":{ + "sampleType":"Swerve", + "waypoints":[0.0,0.3211,1.7094,1.90102,2.34428], + "samples":[ + {"t":0.0, "x":5.09943, "y":2.89812, "heading":2.0944, "vx":0.0, "vy":0.0, "omega":0.0, "ax":0.81234, "ay":-5.94114, "alpha":0.0, "fx":[11.88575,11.87449,11.88167,11.89082], "fy":[-86.87531,-86.99155,-86.88707,-86.88263]}, + {"t":0.03568, "x":5.09995, "y":2.89434, "heading":2.0944, "vx":0.02898, "vy":-0.21196, "omega":0.0, "ax":0.19085, "ay":-5.99492, "alpha":0.0, "fx":[2.79314,2.78683,2.79058,2.79657], "fy":[-87.67451,-87.74703,-87.68221,-87.67937]}, + {"t":0.07135, "x":5.10111, "y":2.88296, "heading":2.0944, "vx":0.03579, "vy":-0.42585, "omega":0.0, "ax":-0.62744, "ay":-5.96474, "alpha":0.0, "fx":[-9.1667,-9.19829,-9.18015,-9.16861], "fy":[-87.29249,-87.22852,-87.25602,-87.24045]}, + {"t":0.10703, "x":5.10199, "y":2.86397, "heading":2.0944, "vx":0.01341, "vy":-0.63865, "omega":0.0, "ax":-1.67984, "ay":-5.75726, "alpha":0.0, "fx":[-24.57252,-24.57715,-24.57541,-24.56785], "fy":[-84.19432,-84.27703,-84.20459,-84.20104]}, + {"t":0.14271, "x":5.10139, "y":2.83752, "heading":2.0944, "vx":-0.04653, "vy":-0.84406, "omega":0.0, "ax":-2.93309, "ay":-5.23081, "alpha":0.0, "fx":[-42.89364,-42.93789,-42.91298,-42.88064], "fy":[-76.58304,-76.47788,-76.51583,-76.49577]}, + {"t":0.17839, "x":5.09787, "y":2.80408, "heading":2.0944, "vx":-0.15117, "vy":-1.03068, "omega":0.0, "ax":-4.20184, "ay":-4.27868, "alpha":0.0, "fx":[-61.46572,-61.46776,-61.46726,-61.46344], "fy":[-62.57635,-62.62117,-62.58254,-62.58032]}, + {"t":0.21406, "x":5.0898, "y":2.76458, "heading":2.0944, "vx":-0.30108, "vy":-1.18333, "omega":0.0, "ax":-5.19667, "ay":-2.99302, "alpha":0.0, "fx":[-75.97832,-76.02124,-75.9934,-76.08178], "fy":[-43.76382,-43.76822,-43.8162,-43.78359]}, + {"t":0.24974, "x":5.07575, "y":2.72046, "heading":2.0944, "vx":-0.48649, "vy":-1.29012, "omega":0.0, "ax":-5.76341, "ay":-1.65824, "alpha":0.0, "fx":[-84.30985,-84.30445,-84.30642,-84.31586], "fy":[-24.29441,-24.17387,-24.27744,-24.2833]}, + {"t":0.28542, "x":5.05473, "y":2.67338, "heading":2.0944, "vx":-0.69211, "vy":-1.34928, "omega":0.0, "ax":-5.97598, "ay":-0.50806, "alpha":-0.01254, "fx":[-87.39177,-87.39423,-87.39008,-87.49917], "fy":[-7.26829,-7.47519,-7.49902,-7.48557]}, + {"t":0.3211, "x":5.02623, "y":2.62491, "heading":2.0944, "vx":-0.90532, "vy":-1.3674, "omega":-0.00045, "ax":-5.99458, "ay":-0.0189, "alpha":-26.52379, "fx":[-78.76862,-129.32281,-104.88717,-37.78467], "fy":[88.23928,17.64404,-69.37161,-37.61775]}, + {"t":0.35265, "x":4.99468, "y":2.58176, "heading":2.09438, "vx":-1.09446, "vy":-1.368, "omega":-0.83733, "ax":-5.9971, "ay":0.00327, "alpha":-22.2619, "fx":[-79.17839,-123.00446,-101.02514,-47.70252], "fy":[73.93665,14.95489,-60.8572,-27.84271]}, + {"t":0.3842, "x":4.95716, "y":2.5386, "heading":2.06796, "vx":-1.28368, "vy":-1.3679, "omega":-1.53975, "ax":-5.99678, "ay":0.02871, "alpha":-16.52176, "fx":[-79.87873,-113.87286,-97.53337,-59.60736], "fy":[54.8024,12.42279,-46.37217,-19.17295]}, + {"t":0.41575, "x":4.91367, "y":2.49545, "heading":2.01938, "vx":-1.4729, "vy":-1.36699, "omega":-2.06105, "ax":-5.99628, "ay":0.05851, "alpha":-9.30282, "fx":[-82.24398,-102.15917,-93.66022,-72.79938], "fy":[30.58563,9.48037,-26.41697,-10.22518]}, + {"t":0.44731, "x":4.86422, "y":2.45235, "heading":1.95435, "vx":-1.66209, "vy":-1.36515, "omega":-2.35457, "ax":-5.99548, "ay":0.09396, "alpha":-1.96209, "fx":[-86.29223,-90.68878,-89.04866,-84.78639], "fy":[7.44366,3.62666,-4.53831,-1.03435]}, + {"t":0.47886, "x":4.80879, "y":2.40932, "heading":1.88006, "vx":-1.85126, "vy":-1.36218, "omega":-2.41648, "ax":-5.99423, "ay":0.13702, "alpha":3.82076, "fx":[-91.04105,-81.83917,-84.36185,-93.50052], "fy":[-8.94621,-3.11964,13.21808,6.86513]}, + {"t":0.51041, "x":4.74739, "y":2.36641, "heading":1.80381, "vx":-2.0404, "vy":-1.35786, "omega":-2.29593, "ax":-5.99223, "ay":0.19043, "alpha":7.612, "fx":[-95.19173,-76.88826,-80.05979,-98.4862], "fy":[-17.27875,-10.41578,25.20885,13.62856]}, + {"t":0.54196, "x":4.68003, "y":2.32366, "heading":1.73137, "vx":-2.22946, "vy":-1.35185, "omega":-2.05575, "ax":-5.98898, "ay":0.25879, "alpha":9.76633, "fx":[-98.45121,-74.45789,-76.6958,-100.83092], "fy":[-20.46433,-15.05486,31.90186,18.75997]}, + {"t":0.57352, "x":4.60671, "y":2.28114, "heading":1.6665, "vx":-2.41843, "vy":-1.34368, "omega":-1.7476, "ax":-5.98345, "ay":0.34959, "alpha":10.85204, "fx":[-100.58432,-74.21357,-74.03324,-101.28103], "fy":[-20.15273,-18.15099,35.67928,23.08023]}, + {"t":0.60507, "x":4.52742, "y":2.23891, "heading":1.61136, "vx":-2.60722, "vy":-1.33265, "omega":-1.4052, "ax":-5.97341, "ay":0.47634, "alpha":11.08007, "fx":[-101.9395,-74.50001,-72.25956,-100.82555], "fy":[-18.32842,-16.91999,37.10765,26.0133]}, + {"t":0.63662, "x":4.44218, "y":2.1971, "heading":1.56703, "vx":-2.7957, "vy":-1.31762, "omega":-1.05559, "ax":-5.95338, "ay":0.6654, "alpha":10.90894, "fx":[-102.31473,-75.83434,-70.87528,-99.32848], "fy":[-13.94564,-15.23651,38.75083,29.36587]}, + {"t":0.66817, "x":4.35101, "y":2.15586, "heading":1.53372, "vx":-2.98354, "vy":-1.29663, "omega":-0.71139, "ax":-5.90722, "ay":0.97589, "alpha":9.92528, "fx":[-101.7514,-76.5246,-70.21294,-97.16247], "fy":[-7.76252,-6.85545,39.71862,32.00207]}, + {"t":0.69972, "x":4.25393, "y":2.11543, "heading":1.51127, "vx":-3.16993, "vy":-1.26584, "omega":-0.39823, "ax":-5.7717, "ay":1.56902, "alpha":8.16099, "fx":[-98.42606,-77.15227,-69.57764,-92.5659], "fy":[5.08107,6.09973,43.36023,37.26775]}, + {"t":0.73128, "x":4.15104, "y":2.07627, "heading":1.49871, "vx":-3.35204, "vy":-1.21633, "omega":-0.14073, "ax":-5.15305, "ay":3.00647, "alpha":4.39672, "fx":[-84.76703,-71.24208,-65.90529,-79.60804], "fy":[33.92269,37.01858,54.45273,50.52474]}, + {"t":0.76283, "x":4.04271, "y":2.03939, "heading":1.49427, "vx":-3.51463, "vy":-1.12147, "omega":-0.002, "ax":-2.07377, "ay":5.55836, "alpha":0.05863, "fx":[-30.9958,-31.61019,-28.89243,-29.84507], "fy":[80.74198,81.70768,81.91407,80.87507]}, + {"t":0.79438, "x":3.93078, "y":2.00677, "heading":1.4942, "vx":-3.58006, "vy":-0.94609, "omega":-0.00015, "ax":-1.37142, "ay":5.72987, "alpha":0.00051, "fx":[-19.4301,-20.7212,-20.62502,-19.47042], "fy":[85.58077,81.00136,84.43213,84.26028]}, + {"t":0.82593, "x":3.81714, "y":1.97978, "heading":1.4942, "vx":-3.62333, "vy":-0.7653, "omega":-0.00013, "ax":-1.06037, "ay":5.70389, "alpha":0.00019, "fx":[-15.52704,-15.47,-15.52705,-15.52162], "fy":[83.44329,83.45523,83.43371,83.42171]}, + {"t":0.85749, "x":3.70229, "y":1.95847, "heading":1.4942, "vx":-3.65679, "vy":-0.58533, "omega":-0.00013, "ax":-0.74824, "ay":5.49581, "alpha":0.0, "fx":[-9.92843,-11.83509,-11.92635,-10.09197], "fy":[82.86642,76.29024,81.27087,81.15081]}, + {"t":0.88904, "x":3.58654, "y":1.94273, "heading":1.49419, "vx":-3.6804, "vy":-0.41192, "omega":-0.00013, "ax":-0.34018, "ay":3.51051, "alpha":0.00006, "fx":[-4.97602,-4.97038,-4.98162,-4.97689], "fy":[51.35259,51.35299,51.35364,51.35283]}, + {"t":0.92059, "x":3.47024, "y":1.93149, "heading":1.49419, "vx":-3.69113, "vy":-0.30116, "omega":-0.00013, "ax":-0.1644, "ay":2.28825, "alpha":0.00003, "fx":[-2.07742,-2.68457,-2.73122,-2.12668], "fy":[34.31529,32.10457,33.76062,33.71267]}, + {"t":0.95214, "x":3.3537, "y":1.92312, "heading":1.49418, "vx":-3.69632, "vy":-0.22896, "omega":-0.00013, "ax":-0.06453, "ay":1.13061, "alpha":-0.00002, "fx":[-0.93036,-1.01064,-0.90629,-0.92879], "fy":[16.52759,16.52579,16.55035,16.55209]}, + {"t":0.9837, "x":3.23704, "y":1.91646, "heading":1.49418, "vx":-3.69835, "vy":-0.19329, "omega":-0.00013, "ax":-0.02612, "ay":0.52179, "alpha":0.00003, "fx":[-0.39134,-0.37374,-0.37281,-0.39046], "fy":[7.60904,7.67181,7.62493,7.62573]}, + {"t":1.01525, "x":3.12033, "y":1.91062, "heading":1.49418, "vx":-3.69918, "vy":-0.17682, "omega":-0.00013, "ax":-0.00817, "ay":0.1739, "alpha":-0.00001, "fx":[-0.11608,-0.13815,-0.10843,-0.11553], "fy":[2.54093,2.54044,2.54668,2.54717]}, + {"t":1.0468, "x":3.00361, "y":1.90513, "heading":1.49417, "vx":-3.69944, "vy":-0.17134, "omega":-0.00013, "ax":0.0068, "ay":-0.14455, "alpha":-0.00002, "fx":[0.08964,0.10755,0.10923,0.09132], "fy":[-2.14502,-2.06867,-2.12325,-2.12109]}, + {"t":1.07835, "x":2.88689, "y":1.89965, "heading":1.49417, "vx":-3.69922, "vy":-0.1759, "omega":-0.00013, "ax":0.02609, "ay":-0.52528, "alpha":0.00004, "fx":[0.37195,0.42609,0.35782,0.3709], "fy":[-7.67588,-7.67446,-7.69196,-7.69336]}, + {"t":1.10991, "x":2.77018, "y":1.89384, "heading":1.49416, "vx":-3.6984, "vy":-0.19247, "omega":-0.00013, "ax":0.06685, "ay":-1.17078, "alpha":-0.00005, "fx":[0.85105,1.0856,1.10439,0.87035], "fy":[-17.46444,-16.58568,-17.23825,-17.2182]}, + {"t":1.14146, "x":2.65352, "y":1.88718, "heading":1.49416, "vx":-3.69629, "vy":-0.22941, "omega":-0.00013, "ax":0.14401, "ay":-2.03292, "alpha":-0.00001, "fx":[2.08339,2.21654,2.04623,2.0802], "fy":[-29.71889,-29.71499,-29.75781,-29.76143]}, + {"t":1.17301, "x":2.53697, "y":1.87893, "heading":1.49416, "vx":-3.69175, "vy":-0.29355, "omega":-0.00013, "ax":0.39745, "ay":-4.0849, "alpha":0.00001, "fx":[4.98548,6.52712,6.63379,5.10964], "fy":[-61.86433,-56.31352,-60.47906,-60.36468]}, + {"t":1.20456, "x":2.42068, "y":1.86764, "heading":1.49415, "vx":-3.67921, "vy":-0.42244, "omega":-0.00013, "ax":0.73658, "ay":-5.32404, "alpha":-0.00014, "fx":[10.77836,10.77468,10.77401,10.77268], "fy":[-77.88212,-77.88214,-77.88258,-77.88086]}, + {"t":1.23611, "x":2.30496, "y":1.85166, "heading":1.49415, "vx":-3.65596, "vy":-0.59043, "omega":-0.00013, "ax":1.07418, "ay":-5.70055, "alpha":-0.00038, "fx":[14.80135,16.58743,16.55645,14.90897], "fy":[-85.70913,-79.57778,-84.20666,-84.06496]}, + {"t":1.26767, "x":2.19014, "y":1.83019, "heading":1.49414, "vx":-3.62207, "vy":-0.77029, "omega":-0.00014, "ax":1.98658, "ay":-5.54795, "alpha":-0.13406, "fx":[29.86082,30.07472,27.625,28.68107], "fy":[-80.53197,-81.33988,-81.82512,-80.93262]}, + {"t":1.29922, "x":2.07685, "y":1.80313, "heading":1.49414, "vx":-3.55939, "vy":-0.94534, "omega":-0.00437, "ax":5.59946, "ay":-2.04763, "alpha":-6.16631, "fx":[94.15306,75.67082,69.41867,88.4007], "fy":[-16.13205,-19.54824,-43.856,-40.27759]}, + {"t":1.33077, "x":1.96733, "y":1.77228, "heading":1.494, "vx":-3.38271, "vy":-1.00995, "omega":-0.19893, "ax":5.90713, "ay":-0.93432, "alpha":-9.58912, "fx":[101.85529,77.98849,69.81992,95.98277], "fy":[5.6976,8.5856,-36.81897,-32.13475]}, + {"t":1.36232, "x":1.86353, "y":1.73995, "heading":1.48772, "vx":-3.19633, "vy":-1.03943, "omega":-0.50149, "ax":5.96367, "ay":-0.52921, "alpha":-10.91004, "fx":[103.61087,77.03629,69.85606,98.45144], "fy":[13.62914,19.13003,-34.06334,-29.66153]}, + {"t":1.39388, "x":1.76565, "y":1.70689, "heading":1.4719, "vx":-3.00816, "vy":-1.05613, "omega":-0.84573, "ax":5.98161, "ay":-0.32399, "alpha":-11.39877, "fx":[103.82367,77.2079,70.03053,98.94235], "fy":[16.27534,25.50819,-31.97271,-28.76875]}, + {"t":1.42543, "x":1.67371, "y":1.6734, "heading":1.44522, "vx":-2.81943, "vy":-1.06635, "omega":-1.20539, "ax":5.98897, "ay":-0.20076, "alpha":-11.14241, "fx":[103.62019,77.30255,70.77255,98.73988], "fy":[17.11596,26.96339,-28.51461,-27.31214]}, + {"t":1.45698, "x":1.58773, "y":1.63966, "heading":1.40718, "vx":-2.63046, "vy":-1.07269, "omega":-1.55696, "ax":5.99246, "ay":-0.11857, "alpha":-10.44156, "fx":[102.62546,78.66908,71.86836,97.47646], "fy":[15.73338,27.76004,-24.50823,-25.92304]}, + {"t":1.48853, "x":1.50772, "y":1.60575, "heading":1.35806, "vx":-2.44139, "vy":-1.07643, "omega":-1.88641, "ax":5.99426, "ay":-0.05982, "alpha":-8.69236, "fx":[100.52799,80.41261,74.38019,95.42381], "fy":[13.02374,23.8724,-18.12371,-22.27271]}, + {"t":1.52009, "x":1.43367, "y":1.57176, "heading":1.29854, "vx":-2.25225, "vy":-1.07832, "omega":-2.16068, "ax":5.99523, "ay":-0.01561, "alpha":-5.39483, "fx":[95.846,83.72259,79.26361,91.96913], "fy":[7.77539,15.48543,-9.54647,-14.62751]}, + {"t":1.55164, "x":1.36559, "y":1.53773, "heading":1.23036, "vx":-2.06309, "vy":-1.07881, "omega":-2.3309, "ax":5.99576, "ay":0.01906, "alpha":0.33016, "fx":[87.28742,87.88409,88.1278,87.53281], "fy":[-0.08977,-0.88622,0.80075,1.29049]}, + {"t":1.58319, "x":1.30348, "y":1.5037, "heading":1.15682, "vx":-1.87391, "vy":-1.07821, "omega":-2.32048, "ax":5.99603, "ay":0.04697, "alpha":8.17183, "fx":[74.43452,92.81398,100.43818,83.16142], "fy":[-10.44722,-22.58392,9.27182,26.50796]}, + {"t":1.61474, "x":1.24734, "y":1.4697, "heading":1.0836, "vx":-1.68472, "vy":-1.07672, "omega":-2.06264, "ax":5.99615, "ay":0.06983, "alpha":16.13747, "fx":[59.95583,96.7856,113.22088,80.89313], "fy":[-19.88361,-43.95484,13.792,54.13235]}, + {"t":1.64629, "x":1.19717, "y":1.43576, "heading":1.01852, "vx":-1.49553, "vy":-1.07452, "omega":-1.55346, "ax":5.99619, "ay":0.08878, "alpha":22.28638, "fx":[46.70596,99.7965,123.28119,81.07399], "fy":[-25.18394,-60.07226,15.08094,75.37031]}, + {"t":1.67785, "x":1.15297, "y":1.4019, "heading":0.9695, "vx":-1.30634, "vy":-1.07172, "omega":-0.85028, "ax":5.99618, "ay":0.10464, "alpha":26.45384, "fx":[35.99442,101.9113,130.16423,82.78694], "fy":[-26.41858,-71.26184,14.98702,88.81598]}, + {"t":1.7094, "x":1.11473, "y":1.36814, "heading":0.94268, "vx":-1.11714, "vy":-1.06842, "omega":-0.0156, "ax":5.96985, "ay":0.51967, "alpha":0.72765, "fx":[86.05714,87.60683,88.59582,87.05623], "fy":[7.3439,5.30156,7.90566,9.85629]}, + {"t":1.73335, "x":1.08969, "y":1.3427, "heading":0.9423, "vx":-0.97415, "vy":-1.05597, "omega":0.00183, "ax":5.83283, "ay":1.38943, "alpha":0.02283, "fx":[85.23932,85.29719,85.32394,85.43831], "fy":[20.29423,20.2539,20.33945,20.41249]}, + {"t":1.75731, "x":1.06803, "y":1.3178, "heading":0.94235, "vx":-0.83443, "vy":-1.02269, "omega":0.00238, "ax":5.5424, "ay":2.2876, "alpha":-0.00496, "fx":[81.0688,81.07665,81.0846,81.07445], "fy":[33.44467,33.51606,33.44421,33.45044]}, + {"t":1.78126, "x":1.04963, "y":1.29396, "heading":0.9424, "vx":-0.70167, "vy":-0.96789, "omega":0.00226, "ax":5.10385, "ay":3.14675, "alpha":0.0008, "fx":[74.61764,74.63748,74.64622,74.74245], "fy":[46.13006,45.98938,46.00232,46.00561]}, + {"t":1.80521, "x":1.03429, "y":1.27168, "heading":0.94246, "vx":-0.57942, "vy":-0.89252, "omega":0.00228, "ax":4.55146, "ay":3.90345, "alpha":-0.00031, "fx":[66.55926,66.581,66.60392,66.57713], "fy":[57.07556,57.14861,57.08039,57.0995]}, + {"t":1.82916, "x":1.02171, "y":1.25142, "heading":0.94251, "vx":-0.4704, "vy":-0.79902, "omega":0.00227, "ax":3.94, "ay":4.5201, "alpha":0.0025, "fx":[57.61103,57.63542,57.64444,57.65172], "fy":[66.24944,66.0679,66.08062,66.08877]}, + {"t":1.85312, "x":1.01157, "y":1.23358, "heading":0.94257, "vx":-0.37602, "vy":-0.69075, "omega":0.00233, "ax":3.32369, "ay":4.99107, "alpha":-0.00385, "fx":[48.60762,48.61639,48.63561,48.62081], "fy":[72.98311,73.06887,72.99074,73.00194]}, + {"t":1.87707, "x":1.00352, "y":1.21847, "heading":0.94262, "vx":-0.29641, "vy":-0.5712, "omega":0.00224, "ax":2.74152, "ay":5.33337, "alpha":-0.09227, "fx":[40.33547,40.00227,39.84538,40.23253], "fy":[78.07973,78.18257,78.01338,77.79784]}, + {"t":1.90102, "x":0.99721, "y":1.20631, "heading":0.94268, "vx":-0.23074, "vy":-0.44345, "omega":0.00003, "ax":-1.49344, "ay":0.93186, "alpha":-0.00068, "fx":[-21.81741,-21.8515,-21.87547,-21.84208], "fy":[13.66481,13.57623,13.65499,13.6305]}, + {"t":1.94535, "x":0.98551, "y":1.18757, "heading":0.94268, "vx":-0.29694, "vy":-0.40214, "omega":0.0, "ax":-0.00762, "ay":0.00563, "alpha":-0.00011, "fx":[-0.05576,-0.05862,-0.0607,-0.27104], "fy":[0.20007,0.04581,0.04295,0.04087]}, + {"t":1.98968, "x":0.97234, "y":1.16975, "heading":0.94268, "vx":-0.29728, "vy":-0.40189, "omega":-0.00001, "ax":-0.00002, "ay":0.00001, "alpha":0.00006, "fx":[-0.00084,-0.0002,0.00028,-0.00037], "fy":[-0.00054,0.00109,-0.00025,0.00054]}, + {"t":2.034, "x":0.95917, "y":1.15194, "heading":0.94268, "vx":-0.29728, "vy":-0.40189, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":-0.00003, "fx":[-0.00358,-0.00349,-0.00343,0.01028], "fy":[-0.00757,0.0025,0.00259,0.00265]}, + {"t":2.07833, "x":0.94599, "y":1.13412, "heading":0.94268, "vx":-0.29728, "vy":-0.40189, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.00001, "fx":[0.00057,-0.00006,-0.00051,0.00012], "fy":[0.00056,-0.00115,0.00043,0.00008]}, + {"t":2.12265, "x":0.93281, "y":1.11631, "heading":0.94268, "vx":-0.29728, "vy":-0.40189, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[-0.0011,-0.00105,-0.00102,0.00313], "fy":[-0.0023,0.00074,0.00078,0.00082]}, + {"t":2.16698, "x":0.91963, "y":1.0985, "heading":0.94268, "vx":-0.29728, "vy":-0.40189, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":-0.00002, "fx":[0.00033,-0.00007,-0.00035,0.00004], "fy":[0.00038,-0.00057,0.00026,-0.00004]}, + {"t":2.21131, "x":0.90646, "y":1.08068, "heading":0.94268, "vx":-0.29728, "vy":-0.40189, "omega":0.0, "ax":0.00001, "ay":0.00001, "alpha":0.00003, "fx":[0.00107,0.00081,0.00063,-0.0021], "fy":[-0.00358,0.0016,0.00134,0.00114]}, + {"t":2.25563, "x":0.89328, "y":1.06287, "heading":0.94268, "vx":-0.29728, "vy":-0.40189, "omega":0.0, "ax":3.13999, "ay":4.24492, "alpha":-0.00005, "fx":[45.91705,45.93424,45.94981,45.93038], "fy":[62.07783,62.12977,62.0818,62.09529]}, + {"t":2.29996, "x":0.88319, "y":1.04922, "heading":0.94268, "vx":-0.1581, "vy":-0.21373, "omega":0.0, "ax":3.5667, "ay":4.82178, "alpha":0.00011, "fx":[52.16793,52.20117,52.16423,52.1663], "fy":[70.53557,70.53447,70.535,70.53379]}, + {"t":2.34428, "x":0.87968, "y":1.04449, "heading":0.94268, "vx":0.0, "vy":0.0, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.0,0.0,0.0,0.0], "fy":[0.0,0.0,0.0,0.0]}], + "splits":[0] + }, + "events":[] +} diff --git a/src/main/deploy/choreo/R4 to Post E.traj b/src/main/deploy/choreo/R4 to Post E.traj new file mode 100644 index 00000000..1d1ff180 --- /dev/null +++ b/src/main/deploy/choreo/R4 to Post E.traj @@ -0,0 +1,111 @@ +{ + "name":"R4 to Post E", + "version":1, + "snapshot":{ + "waypoints":[ + {"x":7.142991913746631, "y":2.0, "heading":3.141592653589793, "intervals":23, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":6.273484706878662, "y":2.2584927082061768, "heading":2.3801902626498825, "intervals":21, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":5.2994349400607, "y":2.551707921579825, "heading":2.0943951023931953, "intervals":8, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":5.1994349400607, "y":2.7249130023367125, "heading":2.0943951023931953, "intervals":10, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":5.0994349400607, "y":2.8981180830936, "heading":2.0943951023931953, "intervals":12, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":0.0, "y":0.0, "w":17.548, "h":8.052}}, "enabled":false}, + {"from":2, "to":4, "data":{"type":"MaxVelocity", "props":{"max":2.0}}, "enabled":true}, + {"from":2, "to":4, "data":{"type":"MaxAngularVelocity", "props":{"max":0.01}}, "enabled":true}, + {"from":0, "to":4, "data":{"type":"MaxAcceleration", "props":{"max":6.0}}, "enabled":true}, + {"from":3, "to":4, "data":{"type":"MaxVelocity", "props":{"max":0.5}}, "enabled":true}], + "targetDt":0.05 + }, + "params":{ + "waypoints":[ + {"x":{"exp":"R4.x", "val":7.142991913746631}, "y":{"exp":"R4.y", "val":2.0}, "heading":{"exp":"R4.heading", "val":3.141592653589793}, "intervals":23, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"6.273484706878662 m", "val":6.273484706878662}, "y":{"exp":"2.2584927082061768 m", "val":2.2584927082061768}, "heading":{"exp":"2.3801902626498825 rad", "val":2.3801902626498825}, "intervals":21, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"E.x - offset * 2 * cos(E.heading)", "val":5.2994349400607}, "y":{"exp":"E.y - offset * 2 * sin(E.heading)", "val":2.551707921579825}, "heading":{"exp":"E.heading", "val":2.0943951023931953}, "intervals":8, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"E.x - offset * 1 * cos(E.heading)", "val":5.1994349400607}, "y":{"exp":"E.y - offset * 1 * sin(E.heading)", "val":2.7249130023367125}, "heading":{"exp":"E.heading", "val":2.0943951023931953}, "intervals":10, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"E.x", "val":5.0994349400607}, "y":{"exp":"E.y", "val":2.8981180830936}, "heading":{"exp":"E.heading", "val":2.0943951023931953}, "intervals":12, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":{"exp":"0 m", "val":0.0}, "y":{"exp":"0 m", "val":0.0}, "w":{"exp":"17.548 m", "val":17.548}, "h":{"exp":"8.052 m", "val":8.052}}}, "enabled":false}, + {"from":2, "to":4, "data":{"type":"MaxVelocity", "props":{"max":{"exp":"2 m / s", "val":2.0}}}, "enabled":true}, + {"from":2, "to":4, "data":{"type":"MaxAngularVelocity", "props":{"max":{"exp":"0.01 rad / s", "val":0.01}}}, "enabled":true}, + {"from":0, "to":4, "data":{"type":"MaxAcceleration", "props":{"max":{"exp":"6 m / s ^ 2", "val":6.0}}}, "enabled":true}, + {"from":3, "to":4, "data":{"type":"MaxVelocity", "props":{"max":{"exp":"0.5 m / s", "val":0.5}}}, "enabled":true}], + "targetDt":{ + "exp":"0.05 s", + "val":0.05 + } + }, + "trajectory":{ + "sampleType":"Swerve", + "waypoints":[0.0,0.55073,0.98071,1.17842,1.62207], + "samples":[ + {"t":0.0, "x":7.14299, "y":2.0, "heading":3.14159, "vx":0.0, "vy":0.0, "omega":0.0, "ax":-5.66599, "ay":1.95834, "alpha":-17.68798, "fx":[-100.54214,-110.54215,-68.05955,-52.3923], "fy":[56.09847,-7.84474,-12.95967,79.29489]}, + {"t":0.02394, "x":7.14137, "y":2.00056, "heading":3.14159, "vx":-0.13567, "vy":0.04689, "omega":-0.42354, "ax":-5.67339, "ay":1.94436, "alpha":-15.57639, "fx":[-98.45535,-107.3833,-69.88982,-56.24071], "fy":[52.97746,-4.73248,-7.20956,72.73593]}, + {"t":0.04789, "x":7.13649, "y":2.00224, "heading":3.13145, "vx":-0.27152, "vy":0.09345, "omega":-0.79651, "ax":-5.67881, "ay":1.92809, "alpha":-13.54646, "fx":[-96.25855,-104.41628,-71.72926,-59.88229], "fy":[50.2743,-1.22251,-2.33276,66.09983]}, + {"t":0.07183, "x":7.12836, "y":2.00503, "heading":3.11238, "vx":-0.4075, "vy":0.13962, "omega":-1.12088, "ax":-5.68471, "ay":1.91017, "alpha":-11.46887, "fx":[-93.98724,-101.47785,-73.80907,-63.35787], "fy":[47.36518,2.9156,2.16072,59.32909]}, + {"t":0.09578, "x":7.11698, "y":2.00892, "heading":3.08554, "vx":-0.54362, "vy":0.18536, "omega":-1.3955, "ax":-5.69115, "ay":1.89044, "alpha":-9.40691, "fx":[-91.66453,-98.49046,-75.86178,-66.99159], "fy":[44.57081,7.06458,6.39023,52.59072]}, + {"t":0.11972, "x":7.10233, "y":2.0139, "heading":3.05212, "vx":-0.67989, "vy":0.23062, "omega":-1.62075, "ax":-5.6982, "ay":1.86854, "alpha":-7.37135, "fx":[-89.54117,-95.55249,-77.89902,-70.42848], "fy":[41.37257,11.41615,10.43138,46.11431]}, + {"t":0.14367, "x":7.08441, "y":2.01996, "heading":3.01332, "vx":-0.81633, "vy":0.27536, "omega":-1.79725, "ax":-5.70596, "ay":1.84409, "alpha":-5.41926, "fx":[-87.59545,-92.58801,-79.69329,-73.99862], "fy":[38.10482,15.38476,14.31737,40.09708]}, + {"t":0.16761, "x":7.06323, "y":2.02708, "heading":2.97028, "vx":-0.95296, "vy":0.31952, "omega":-1.92701, "ax":-5.71454, "ay":1.81665, "alpha":-3.5706, "fx":[-86.05419,-89.753,-81.33312,-77.23698], "fy":[34.3632,19.19532,18.03403,34.70562]}, + {"t":0.19156, "x":7.03877, "y":2.03525, "heading":2.92414, "vx":-1.0898, "vy":0.36302, "omega":-2.01251, "ax":-5.72405, "ay":1.78566, "alpha":-1.85794, "fx":[-84.81204,-86.96441,-82.63281,-80.52466], "fy":[30.56346,22.33865,21.55355,30.02916]}, + {"t":0.2155, "x":7.01104, "y":2.04446, "heading":2.87595, "vx":-1.22686, "vy":0.40578, "omega":-2.057, "ax":-5.73468, "ay":1.75031, "alpha":-0.28181, "fx":[-84.04264,-84.40515,-83.73777,-83.37012], "fy":[26.28639,25.14264,24.85735,26.13046]}, + {"t":0.23945, "x":6.98002, "y":2.05468, "heading":2.8267, "vx":-1.36417, "vy":0.44769, "omega":-2.06375, "ax":-5.7466, "ay":1.70971, "alpha":1.14078, "fx":[-83.55319,-81.97035,-84.499,-86.23043], "fy":[22.10668,27.08694,27.8927,22.95452]}, + {"t":0.26339, "x":6.94571, "y":2.06589, "heading":2.77728, "vx":-1.50177, "vy":0.48863, "omega":-2.03643, "ax":-5.76004, "ay":1.66256, "alpha":2.40346, "fx":[-83.49394,-79.87666,-85.12823,-88.54095], "fy":[17.66675,28.58511,30.6029,20.42738]}, + {"t":0.28734, "x":6.90809, "y":2.07806, "heading":2.72852, "vx":-1.6397, "vy":0.52844, "omega":-1.97888, "ax":-5.77532, "ay":1.60714, "alpha":3.52651, "fx":[-83.5984,-77.96337,-85.47147,-90.90037], "fy":[13.4643,29.21846,32.93607,18.42061]}, + {"t":0.31128, "x":6.86718, "y":2.09118, "heading":2.68113, "vx":-1.77799, "vy":0.56692, "omega":-1.89444, "ax":-5.79276, "ay":1.54117, "alpha":4.481, "fx":[-84.02562,-76.48082,-85.79062,-92.65716], "fy":[9.16925,29.36954,34.82629,16.81401]}, + {"t":0.33523, "x":6.82294, "y":2.10519, "heading":2.63577, "vx":-1.91669, "vy":0.60382, "omega":-1.78714, "ax":-5.81284, "ay":1.46116, "alpha":5.32228, "fx":[-84.45912,-75.20589,-85.90624,-94.55812], "fy":[5.1433,28.6197,36.2448,15.48942]}, + {"t":0.35917, "x":6.77538, "y":2.12007, "heading":2.59298, "vx":-2.05588, "vy":0.63881, "omega":-1.6597, "ax":-5.83599, "ay":1.36258, "alpha":5.94987, "fx":[-85.12105,-74.4579,-86.15775,-95.74676], "fy":[1.28792,27.20942,37.01008,14.2218]}, + {"t":0.38312, "x":6.72448, "y":2.13576, "heading":2.55324, "vx":-2.19562, "vy":0.67144, "omega":-1.51723, "ax":-5.86281, "ay":1.23767, "alpha":6.48313, "fx":[-85.63294,-73.92132,-86.30811,-97.19041], "fy":[-2.39615,24.954,37.01698,12.84549]}, + {"t":0.40706, "x":6.67023, "y":2.15219, "heading":2.51691, "vx":-2.33601, "vy":0.70107, "omega":-1.362, "ax":-5.89358, "ay":1.07509, "alpha":6.79847, "fx":[-86.26665,-73.97213,-86.7451,-97.86943], "fy":[-6.16013,21.70803,36.12625,11.23283]}, + {"t":0.43101, "x":6.6126, "y":2.16929, "heading":2.48429, "vx":-2.47713, "vy":0.72682, "omega":-1.19921, "ax":-5.92785, "ay":0.85534, "alpha":7.03952, "fx":[-86.56704,-74.19092,-87.18429,-98.91637], "fy":[-10.23857,17.42663,33.90178,8.95881]}, + {"t":0.45495, "x":6.55159, "y":2.18693, "heading":2.45558, "vx":-2.61907, "vy":0.7473, "omega":-1.03065, "ax":-5.96224, "ay":0.54408, "alpha":6.94603, "fx":[-86.84944,-74.97898,-88.07699,-98.96546], "fy":[-14.41189,10.74072,29.85166,5.65547]}, + {"t":0.4789, "x":6.48716, "y":2.20498, "heading":2.4309, "vx":-2.76183, "vy":0.76032, "omega":-0.86433, "ax":-5.98329, "ay":0.07058, "alpha":6.83315, "fx":[-86.38978,-75.59607,-88.94052,-99.17663], "fy":[-21.11304,2.53941,22.55118,0.15256]}, + {"t":0.50284, "x":6.41932, "y":2.22321, "heading":2.4102, "vx":-2.9051, "vy":0.76201, "omega":-0.70071, "ax":-5.93632, "ay":-0.7088, "alpha":6.17867, "fx":[-84.8149,-75.41797,-89.4153,-97.70598], "fy":[-29.26667,-11.86425,9.36967,-9.7132]}, + {"t":0.52679, "x":6.34805, "y":2.24125, "heading":2.39343, "vx":-3.04725, "vy":0.74504, "omega":-0.55276, "ax":-5.58932, "ay":-2.09716, "alpha":5.44417, "fx":[-79.27307,-71.07488,-85.96617,-90.73623], "fy":[-48.17581,-32.59102,-14.15042,-27.79461]}, + {"t":0.55073, "x":6.27348, "y":2.25849, "heading":2.38019, "vx":-3.18108, "vy":0.69483, "omega":-0.4224, "ax":-4.55349, "ay":-3.72664, "alpha":3.02295, "fx":[-65.20056,-59.08723,-68.23032,-73.92228], "fy":[-62.76977,-53.00439,-47.87392,-54.41038]}, + {"t":0.57121, "x":6.2074, "y":2.27194, "heading":2.37154, "vx":-3.27432, "vy":0.61852, "omega":-0.3605, "ax":-0.95475, "ay":-5.76238, "alpha":-0.08187, "fx":[-14.06735,-13.12081,-14.12449,-14.55312], "fy":[-82.27191,-85.22503,-84.51215,-85.16719]}, + {"t":0.59168, "x":6.14016, "y":2.28339, "heading":2.36416, "vx":-3.29386, "vy":0.50054, "omega":-0.36218, "ax":5.70342, "ay":-1.55949, "alpha":-2.40363, "fx":[84.0878,78.03957,82.87449,88.72471], "fy":[-16.68469,-22.23366,-29.73063,-22.60228]}, + {"t":0.61216, "x":6.07391, "y":2.29332, "heading":2.35674, "vx":-3.17709, "vy":0.46861, "omega":-0.4114, "ax":5.94763, "ay":0.36183, "alpha":-3.06216, "fx":[87.83477,81.07431,87.73008,91.37715], "fy":[15.03223,5.43661,-4.88064,5.58363]}, + {"t":0.63263, "x":6.01011, "y":2.30299, "heading":2.34832, "vx":-3.05531, "vy":0.47602, "omega":-0.47409, "ax":5.90779, "ay":0.88248, "alpha":-3.81565, "fx":[85.95867,79.33918,87.05375,93.33352], "fy":[25.2226,12.02505,1.54996,12.83944]}, + {"t":0.65311, "x":5.94879, "y":2.31292, "heading":2.33861, "vx":-2.93435, "vy":0.49409, "omega":-0.55222, "ax":5.87452, "ay":1.12033, "alpha":-3.91884, "fx":[85.20406,78.66744,86.82915,93.03779], "fy":[28.36919,17.74735,4.07804,15.3599]}, + {"t":0.67358, "x":5.88994, "y":2.32327, "heading":2.32731, "vx":-2.81407, "vy":0.51702, "omega":-0.63246, "ax":5.85015, "ay":1.26105, "alpha":-3.80857, "fx":[84.76693,78.55791,86.58079,92.40648], "fy":[30.13896,20.11928,6.42562,17.1044]}, + {"t":0.69406, "x":5.83355, "y":2.33412, "heading":2.31436, "vx":-2.69429, "vy":0.54284, "omega":-0.71044, "ax":5.83236, "ay":1.3529, "alpha":-3.59134, "fx":[84.43468,78.72073,86.18074,91.93504], "fy":[30.80228,21.52045,8.61299,18.22692]}, + {"t":0.71453, "x":5.7796, "y":2.34552, "heading":2.29981, "vx":-2.57487, "vy":0.57054, "omega":-0.78397, "ax":5.81878, "ay":1.41819, "alpha":-3.09103, "fx":[84.43488,79.41766,85.94095,90.68331], "fy":[30.1677,22.62476,10.99266,19.19779]}, + {"t":0.73501, "x":5.7281, "y":2.3575, "heading":2.28376, "vx":-2.45573, "vy":0.59958, "omega":-0.84726, "ax":5.80828, "ay":1.46637, "alpha":-2.57585, "fx":[84.32753,80.21219,85.49592,89.82669], "fy":[29.25747,23.02745,13.52336,19.99384]}, + {"t":0.75548, "x":5.67904, "y":2.37008, "heading":2.26641, "vx":-2.33681, "vy":0.62961, "omega":-0.9, "ax":5.79993, "ay":1.50337, "alpha":-1.82618, "fx":[84.48166,81.48004,85.25778,88.15452], "fy":[27.50687,23.42468,16.25707,20.77897]}, + {"t":0.77596, "x":5.63241, "y":2.38329, "heading":2.24799, "vx":-2.21805, "vy":0.66039, "omega":-0.93739, "ax":5.7931, "ay":1.5329, "alpha":-1.05064, "fx":[84.48108,82.82443,84.86528,86.80302], "fy":[25.61844,23.13004,19.28684,21.65975]}, + {"t":0.79643, "x":5.58821, "y":2.39713, "heading":2.22879, "vx":-2.09944, "vy":0.69177, "omega":-0.9589, "ax":5.78745, "ay":1.5568, "alpha":-0.0607, "fx":[84.65091,84.55328,84.67197,84.76712], "fy":[22.92198,22.92037,22.55843,22.69271]}, + {"t":0.81691, "x":5.54644, "y":2.41162, "heading":2.20916, "vx":-1.98094, "vy":0.72365, "omega":-0.96014, "ax":5.78269, "ay":1.57658, "alpha":0.96717, "fx":[84.66362,86.37156,84.40204,82.92786], "fy":[20.08195,22.18657,26.06873,23.914]}, + {"t":0.83738, "x":5.50709, "y":2.42677, "heading":2.1895, "vx":-1.86254, "vy":0.75593, "omega":-0.94034, "ax":5.77863, "ay":1.59325, "alpha":2.18476, "fx":[84.79456,88.52081,84.35083,80.46133], "fy":[16.59084,21.42412,29.79534,25.41612]}, + {"t":0.85786, "x":5.47016, "y":2.44258, "heading":2.17025, "vx":-1.74422, "vy":0.78855, "omega":-0.89561, "ax":5.77513, "ay":1.60745, "alpha":3.4517, "fx":[84.76631,90.74896,84.2797,78.1279], "fy":[12.86112,20.30047,33.68941,27.20619]}, + {"t":0.87833, "x":5.43566, "y":2.45906, "heading":2.15191, "vx":-1.62598, "vy":0.82146, "omega":-0.82493, "ax":5.77209, "ay":1.61969, "alpha":4.88544, "fx":[84.83987,93.25789,84.44958,75.19733], "fy":[8.59805,19.09115,37.72058,29.36389]}, + {"t":0.89881, "x":5.40358, "y":2.47622, "heading":2.13502, "vx":-1.5078, "vy":0.85463, "omega":-0.72491, "ax":5.76941, "ay":1.63037, "alpha":6.36307, "fx":[84.77587,95.82579,84.6403,72.34605], "fy":[4.10352,17.629,41.81029,31.85554]}, + {"t":0.91928, "x":5.37392, "y":2.49406, "heading":2.12018, "vx":-1.38967, "vy":0.88801, "omega":-0.59462, "ax":5.76704, "ay":1.63976, "alpha":7.98966, "fx":[84.81359,98.59227,85.04917,68.9942], "fy":[-0.96625,16.1492,45.98359,34.78114]}, + {"t":0.93976, "x":5.34667, "y":2.51259, "heading":2.108, "vx":-1.27159, "vy":0.92158, "omega":-0.43103, "ax":5.76493, "ay":1.64804, "alpha":9.64732, "fx":[84.76159,101.37884,85.47458,65.71101], "fy":[-6.28653,14.57428,50.12772,38.01705]}, + {"t":0.96023, "x":5.32185, "y":2.5318, "heading":2.09918, "vx":-1.15355, "vy":0.95533, "omega":-0.23351, "ax":5.76304, "ay":1.65546, "alpha":11.40107, "fx":[84.87337,104.29777,86.07947,61.9645], "fy":[-11.93486,13.01325,54.2338,41.55424]}, + {"t":0.98071, "x":5.29943, "y":2.55171, "heading":2.0944, "vx":-1.03555, "vy":0.98922, "omega":-0.00007, "ax":5.84974, "ay":1.30371, "alpha":0.00322, "fx":[85.57167,85.57754,85.57258,85.56673], "fy":[19.06553,19.05929,19.08256,19.07733]}, + {"t":1.00542, "x":5.27563, "y":2.57655, "heading":2.09439, "vx":-0.89098, "vy":1.02144, "omega":0.00001, "ax":5.98194, "ay":0.41244, "alpha":0.00001, "fx":[87.45212,87.49167,87.46833,87.61146], "fy":[5.96802,6.03433,6.07865,6.05252]}, + {"t":1.03013, "x":5.25544, "y":2.60192, "heading":2.09439, "vx":-0.74314, "vy":1.03163, "omega":0.00001, "ax":5.94779, "ay":-0.75591, "alpha":-0.00001, "fx":[87.00851,86.99901,87.00478,87.01336], "fy":[-11.0201,-11.14503,-11.03566,-11.02991]}, + {"t":1.05485, "x":5.23889, "y":2.62719, "heading":2.09439, "vx":-0.59615, "vy":1.01295, "omega":0.00001, "ax":5.59442, "ay":-2.15531, "alpha":0.00001, "fx":[81.78887,81.79574,81.79489,81.96929], "fy":[-31.6561,-31.48908,-31.48547,-31.48388]}, + {"t":1.07956, "x":5.22586, "y":2.65157, "heading":2.09439, "vx":-0.45788, "vy":0.95969, "omega":0.00001, "ax":4.81772, "ay":-3.56808, "alpha":-0.00001, "fx":[70.47893,70.46452,70.47407,70.48361], "fy":[-52.15162,-52.29912,-52.16814,-52.16161]}, + {"t":1.10428, "x":5.21602, "y":2.67419, "heading":2.09439, "vx":-0.33882, "vy":0.8715, "omega":0.00001, "ax":3.72574, "ay":-4.69715, "alpha":0.0, "fx":[54.4888,54.45046,54.47523,54.5913], "fy":[-68.84136,-68.6491,-68.69319,-68.66273]}, + {"t":1.12899, "x":5.20878, "y":2.6943, "heading":2.09439, "vx":-0.24674, "vy":0.75542, "omega":0.00001, "ax":2.58313, "ay":-5.41084, "alpha":0.0, "fx":[37.79119,37.77401,37.78548,37.7973], "fy":[-79.10305,-79.27017,-79.12023,-79.1135]}, + {"t":1.1537, "x":5.20347, "y":2.71131, "heading":2.09439, "vx":-0.1829, "vy":0.62169, "omega":0.00001, "ax":1.58477, "ay":-5.78311, "alpha":-0.0004, "fx":[23.17673,23.14391,23.16306,23.24682], "fy":[-84.68959,-84.55244,-84.58413,-84.56364]}, + {"t":1.17842, "x":5.19943, "y":2.72491, "heading":2.0944, "vx":-0.14373, "vy":0.47877, "omega":0.0, "ax":-2.51249, "ay":-1.10275, "alpha":0.0, "fx":[-36.75439,-36.74952,-36.75189,-36.75859], "fy":[-16.16074,-16.0656,-16.14732,-16.15202]}, + {"t":1.22278, "x":5.19059, "y":2.74507, "heading":2.0944, "vx":-0.2552, "vy":0.42984, "omega":0.0, "ax":-0.01417, "ay":-0.00843, "alpha":0.0, "fx":[-0.10897,-0.2412,-0.16485,-0.31413], "fy":[-0.14318,-0.05392,-0.18616,-0.10981]}, + {"t":1.26715, "x":5.17925, "y":2.76413, "heading":2.0944, "vx":-0.25583, "vy":0.42947, "omega":0.0, "ax":0.00001, "ay":0.00001, "alpha":0.0, "fx":[0.00005,0.00043,0.00021,-0.00018], "fy":[-0.00062,0.00207,-0.00056,-0.00058]}, + {"t":1.31151, "x":5.1679, "y":2.78318, "heading":2.0944, "vx":-0.25583, "vy":0.42947, "omega":0.0, "ax":-0.00004, "ay":-0.00002, "alpha":0.0, "fx":[-0.01575,0.00472,-0.0071,0.01579], "fy":[0.0029,-0.01114,0.00933,-0.00249]}, + {"t":1.35588, "x":5.15655, "y":2.80224, "heading":2.0944, "vx":-0.25583, "vy":0.42947, "omega":0.0, "ax":0.00002, "ay":0.00001, "alpha":0.0, "fx":[0.00016,0.00081,0.00043,-0.00022], "fy":[-0.0024,0.00621,-0.00137,-0.00174]}, + {"t":1.40024, "x":5.1452, "y":2.82129, "heading":2.0944, "vx":-0.25583, "vy":0.42947, "omega":0.0, "ax":-0.00001, "ay":0.0, "alpha":0.0, "fx":[-0.00371,0.00093,-0.00175,0.00406], "fy":[0.0002,-0.00236,0.00228,-0.0004]}, + {"t":1.44461, "x":5.13385, "y":2.84034, "heading":2.0944, "vx":-0.25583, "vy":0.42947, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.00009,-0.00012,0.00001,0.00022], "fy":[0.00116,-0.00249,0.00063,0.00082]}, + {"t":1.48897, "x":5.1225, "y":2.8594, "heading":2.0944, "vx":-0.25583, "vy":0.42947, "omega":0.0, "ax":0.0, "ay":-0.00001, "alpha":0.0, "fx":[0.00253,-0.00246,0.00044,-0.00032], "fy":[-0.00459,0.00369,-0.00133,0.00161]}, + {"t":1.53334, "x":5.11115, "y":2.87845, "heading":2.0944, "vx":-0.25583, "vy":0.42947, "omega":0.0, "ax":2.69711, "ay":-4.52773, "alpha":0.0, "fx":[39.45662,39.44716,39.45255,39.46077], "fy":[-66.20181,-66.30855,-66.21378,-66.20902]}, + {"t":1.5777, "x":5.10246, "y":2.89305, "heading":2.0944, "vx":-0.13617, "vy":0.2286, "omega":0.0, "ax":3.06937, "ay":-5.15266, "alpha":0.0, "fx":[44.892,44.92233,44.88594,44.899], "fy":[-75.36531,-75.37154,-75.38537,-75.37769]}, + {"t":1.62207, "x":5.09943, "y":2.89812, "heading":2.0944, "vx":0.0, "vy":0.0, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.0,0.0,0.0,0.0], "fy":[0.0,0.0,0.0,0.0]}], + "splits":[0] + }, + "events":[] +} diff --git a/src/main/deploy/choreo/S1 to Post B.traj b/src/main/deploy/choreo/S1 to Post B.traj new file mode 100644 index 00000000..7c2452cc --- /dev/null +++ b/src/main/deploy/choreo/S1 to Post B.traj @@ -0,0 +1,120 @@ +{ + "name":"S1 to Post B", + "version":1, + "snapshot":{ + "waypoints":[ + {"x":0.8796831418724709, "y":1.0444864371099356, "heading":0.9426766270029469, "intervals":29, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":1.6834044456481934, "y":2.8797311782836914, "heading":0.5554937954712291, "intervals":26, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":2.8076, "y":3.732813495, "heading":0.0, "intervals":8, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":3.0075999999999996, "y":3.732813495, "heading":0.0, "intervals":10, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":3.2076, "y":3.732813495, "heading":0.0, "intervals":23, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":0.0, "y":0.0, "w":17.548, "h":8.052}}, "enabled":false}, + {"from":3, "to":4, "data":{"type":"MaxVelocity", "props":{"max":0.5}}, "enabled":true}, + {"from":2, "to":4, "data":{"type":"MaxAngularVelocity", "props":{"max":0.01}}, "enabled":true}, + {"from":0, "to":4, "data":{"type":"MaxAcceleration", "props":{"max":6.0}}, "enabled":true}], + "targetDt":0.05 + }, + "params":{ + "waypoints":[ + {"x":{"exp":"S1.x", "val":0.8796831418724709}, "y":{"exp":"S1.y", "val":1.0444864371099356}, "heading":{"exp":"S1.heading", "val":0.9426766270029469}, "intervals":29, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"1.6834044456481934 m", "val":1.6834044456481934}, "y":{"exp":"2.8797311782836914 m", "val":2.8797311782836914}, "heading":{"exp":"0.5554937954712291 rad", "val":0.5554937954712291}, "intervals":26, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"B.x - offset * 2 * cos(B.heading)", "val":2.8076}, "y":{"exp":"B.y - offset * 2 * sin(B.heading)", "val":3.732813495}, "heading":{"exp":"0 deg", "val":0.0}, "intervals":8, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"B.x - offset * 1 * cos(B.heading)", "val":3.0075999999999996}, "y":{"exp":"B.y - offset * 1 * sin(B.heading)", "val":3.732813495}, "heading":{"exp":"0 deg", "val":0.0}, "intervals":10, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"B.x", "val":3.2076}, "y":{"exp":"B.y", "val":3.732813495}, "heading":{"exp":"B.heading", "val":0.0}, "intervals":23, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":{"exp":"0 m", "val":0.0}, "y":{"exp":"0 m", "val":0.0}, "w":{"exp":"17.548 m", "val":17.548}, "h":{"exp":"8.052 m", "val":8.052}}}, "enabled":false}, + {"from":3, "to":4, "data":{"type":"MaxVelocity", "props":{"max":{"exp":"0.5 m / s", "val":0.5}}}, "enabled":true}, + {"from":2, "to":4, "data":{"type":"MaxAngularVelocity", "props":{"max":{"exp":"0.01 rad / s", "val":0.01}}}, "enabled":true}, + {"from":0, "to":4, "data":{"type":"MaxAcceleration", "props":{"max":{"exp":"6 m / s ^ 2", "val":6.0}}}, "enabled":true}], + "targetDt":{ + "exp":"0.05 s", + "val":0.05 + } + }, + "trajectory":{ + "sampleType":"Swerve", + "waypoints":[0.0,0.85155,1.36815,1.56064,2.00396], + "samples":[ + {"t":0.0, "x":0.87968, "y":1.04449, "heading":0.94268, "vx":0.0, "vy":0.0, "omega":0.0, "ax":2.15111, "ay":5.59665, "alpha":-9.26767, "fx":[56.77918,23.95675,2.25247,42.88049], "fy":[80.76158,98.8389,84.73267,63.14581]}, + {"t":0.02936, "x":0.88061, "y":1.0469, "heading":0.94268, "vx":0.06316, "vy":0.16434, "omega":-0.27213, "ax":2.15164, "ay":5.59857, "alpha":-7.6227, "fx":[52.63892,25.05735,7.64718,40.5561], "fy":[80.79878,95.93062,84.17398,66.68836]}, + {"t":0.05873, "x":0.88339, "y":1.05414, "heading":0.93469, "vx":0.12634, "vy":0.32873, "omega":-0.49596, "ax":2.15139, "ay":5.59854, "alpha":-6.13622, "fx":[48.88409,26.34372,12.48222,38.17525], "fy":[80.93024,93.20493,83.71734,69.73728]}, + {"t":0.08809, "x":0.88803, "y":1.0662, "heading":0.92012, "vx":0.18952, "vy":0.49313, "omega":-0.67615, "ax":2.1511, "ay":5.59851, "alpha":-4.78323, "fx":[45.18864,27.49648,16.73353,36.44982], "fy":[80.83853,90.83668,83.382,72.53074]}, + {"t":0.11745, "x":0.89452, "y":1.0831, "heading":0.90027, "vx":0.25268, "vy":0.65752, "omega":-0.8166, "ax":2.1508, "ay":5.59847, "alpha":-3.51255, "fx":[41.79341,28.7205,20.72216,34.61437], "fy":[81.05405,88.42292,83.05516,75.05345]}, + {"t":0.14682, "x":0.90287, "y":1.10482, "heading":0.87629, "vx":0.31584, "vy":0.82191, "omega":-0.91974, "ax":2.15043, "ay":5.59843, "alpha":-2.36956, "fx":[38.46333,29.68731,24.22447,33.45412], "fy":[81.10584,86.3866,82.75036,77.34045]}, + {"t":0.17618, "x":0.91307, "y":1.13137, "heading":0.84928, "vx":0.37898, "vy":0.9863, "omega":-0.98932, "ax":2.15002, "ay":5.59838, "alpha":-1.3039, "fx":[35.44599,30.62667,27.53012,32.20248], "fy":[81.51199,84.30669,82.38691,79.37493]}, + {"t":0.20555, "x":0.92513, "y":1.16274, "heading":0.82023, "vx":0.44212, "vy":1.15069, "omega":-1.02761, "ax":2.14956, "ay":5.59833, "alpha":-0.35964, "fx":[32.50182,31.23365,30.38439,31.65807], "fy":[81.71919,82.63323,82.02082,81.2041]}, + {"t":0.23491, "x":0.93903, "y":1.19894, "heading":0.79006, "vx":0.50523, "vy":1.31508, "omega":-1.03817, "ax":2.14902, "ay":5.59826, "alpha":0.51285, "fx":[29.89529,31.77421,33.06362,31.01331], "fy":[82.27345,80.91061,81.58698,82.80253]}, + {"t":0.26427, "x":0.9548, "y":1.23997, "heading":0.75957, "vx":0.56834, "vy":1.47947, "omega":-1.02311, "ax":2.14837, "ay":5.5982, "alpha":1.26864, "fx":[27.44514,32.02904,35.35679,30.87728], "fy":[82.61666,79.6033,81.14388,84.20578]}, + {"t":0.29364, "x":0.97241, "y":1.28583, "heading":0.72953, "vx":0.63142, "vy":1.64385, "omega":-0.98586, "ax":2.14761, "ay":5.59811, "alpha":1.95508, "fx":[25.35927,32.22267,37.46584,30.61596], "fy":[83.27662,78.23758,80.65441,85.39598]}, + {"t":0.323, "x":0.99188, "y":1.33651, "heading":0.70058, "vx":0.69448, "vy":1.80823, "omega":-0.92845, "ax":2.14665, "ay":5.59802, "alpha":2.52384, "fx":[23.45736,32.16471,39.17752,30.80834], "fy":[83.63609,77.31657,80.19383,86.41277]}, + {"t":0.35236, "x":1.0132, "y":1.39202, "heading":0.67332, "vx":0.75752, "vy":1.97261, "omega":-0.85434, "ax":2.14548, "ay":5.59791, "alpha":3.02226, "fx":[21.94147,32.07846,40.67003,30.84911], "fy":[84.28064,76.31973,79.72521,87.22711]}, + {"t":0.38173, "x":1.03636, "y":1.45236, "heading":0.64823, "vx":0.82052, "vy":2.13699, "omega":-0.76559, "ax":2.144, "ay":5.59776, "alpha":3.39348, "fx":[20.69291,31.85828,41.78518,31.11614], "fy":[84.57462,75.78326,79.31626,87.87008]}, + {"t":0.41109, "x":1.06138, "y":1.51752, "heading":0.62575, "vx":0.88347, "vy":2.30136, "omega":-0.66595, "ax":2.14192, "ay":5.59763, "alpha":3.68717, "fx":[19.82738,31.61253,42.58322,31.30783], "fy":[85.11006,75.15854,78.95548,88.31237]}, + {"t":0.44046, "x":1.08825, "y":1.58751, "heading":0.6062, "vx":0.94637, "vy":2.46573, "omega":-0.55768, "ax":2.13931, "ay":5.59737, "alpha":3.82877, "fx":[19.33846,31.36088,42.99417,31.48465], "fy":[85.21574,75.03756,78.69465,88.57326]}, + {"t":0.46982, "x":1.11696, "y":1.66233, "heading":0.58982, "vx":1.00918, "vy":2.63008, "omega":-0.44525, "ax":2.13516, "ay":5.59715, "alpha":3.86642, "fx":[19.3957,31.21332,43.05635,31.27039], "fy":[85.66971,74.77276,78.49334,88.57227]}, + {"t":0.49918, "x":1.14751, "y":1.74197, "heading":0.57675, "vx":1.07188, "vy":2.79444, "omega":-0.33172, "ax":2.12882, "ay":5.59676, "alpha":3.69901, "fx":[19.73994,30.8863,42.33349,31.60452], "fy":[85.29817,75.25802,78.5389,88.39024]}, + {"t":0.52855, "x":1.17991, "y":1.82644, "heading":0.56701, "vx":1.13439, "vy":2.95878, "omega":-0.2231, "ax":2.11682, "ay":5.59635, "alpha":3.38625, "fx":[20.57314,30.38231,40.67227,32.23456], "fy":[85.14787,75.58674,78.82678,87.90032]}, + {"t":0.55791, "x":1.21413, "y":1.91573, "heading":0.56046, "vx":1.19655, "vy":3.12311, "omega":-0.12367, "ax":2.09329, "ay":5.59416, "alpha":2.68063, "fx":[22.71689,30.3533,38.40171,31.01368], "fy":[84.39481,76.8027,79.21888,86.91709]}, + {"t":0.58727, "x":1.25017, "y":2.00985, "heading":0.55683, "vx":1.25802, "vy":3.28737, "omega":-0.04496, "ax":1.99001, "ay":5.58669, "alpha":1.52298, "fx":[23.97068,27.58887,32.02142,32.8613], "fy":[78.50006,79.74766,81.94699,86.70152]}, + {"t":0.61664, "x":1.28796, "y":2.10879, "heading":0.5555, "vx":1.31645, "vy":3.45142, "omega":-0.00024, "ax":1.65987, "ay":-0.31398, "alpha":0.00741, "fx":[23.44179,24.09518,25.11881,24.46892], "fy":[-5.28185,-2.78405,-5.72806,-4.57787]}, + {"t":0.646, "x":1.32733, "y":2.21, "heading":0.5555, "vx":1.36519, "vy":3.4422, "omega":-0.00002, "ax":1.77434, "ay":-0.71939, "alpha":0.00001, "fx":[25.56997,25.44974,25.28537,27.51785], "fy":[-10.2931,-10.4808,-10.57389,-10.74588]}, + {"t":0.67537, "x":1.36819, "y":2.31076, "heading":0.5555, "vx":1.41729, "vy":3.42108, "omega":-0.00002, "ax":2.96579, "ay":-1.27378, "alpha":0.0, "fx":[43.38485,43.38763,43.38079,43.38517], "fy":[-18.63604,-18.63567,-18.63167,-18.63005]}, + {"t":0.70473, "x":1.41108, "y":2.41067, "heading":0.5555, "vx":1.50438, "vy":3.38367, "omega":-0.00002, "ax":4.34722, "ay":-2.03392, "alpha":-0.00001, "fx":[63.99311,64.04303,64.15493,62.1796], "fy":[-29.26311,-29.98379,-29.90483,-29.85978]}, + {"t":0.73409, "x":1.45713, "y":2.50915, "heading":0.5555, "vx":1.63203, "vy":3.32395, "omega":-0.00002, "ax":5.03499, "ay":-2.61645, "alpha":0.00002, "fx":[73.50851,73.63097,73.79019,73.685], "fy":[-38.39427,-37.97157,-38.45256,-38.27932]}, + {"t":0.76346, "x":1.50722, "y":2.60563, "heading":0.5555, "vx":1.77987, "vy":3.24712, "omega":-0.00002, "ax":5.05333, "ay":-2.92712, "alpha":-0.00007, "fx":[74.35252,74.39863,74.51971,72.41678], "fy":[-42.14363,-43.10127,-43.02049,-43.0106]}, + {"t":0.79282, "x":1.56167, "y":2.69971, "heading":0.5555, "vx":1.92826, "vy":3.16117, "omega":-0.00002, "ax":4.96455, "ay":-3.19528, "alpha":0.00002, "fx":[72.49966,72.65815,72.73318,72.60162], "fy":[-46.785,-46.51294,-46.9074,-46.76168]}, + {"t":0.82218, "x":1.62043, "y":2.79116, "heading":0.55549, "vx":2.07404, "vy":3.06735, "omega":-0.00002, "ax":4.81472, "ay":-3.47207, "alpha":-0.00599, "fx":[70.39459,71.29153,71.05355,68.98627], "fy":[-50.87008,-50.45069,-51.14649,-50.69551]}, + {"t":0.85155, "x":1.6834, "y":2.87973, "heading":0.55549, "vx":2.21541, "vy":2.96539, "omega":-0.0002, "ax":4.581, "ay":-3.62548, "alpha":-0.0044, "fx":[66.84048,67.2482,67.148,66.81351], "fy":[-52.92384,-52.7107,-53.42596,-53.07858]}, + {"t":0.87142, "x":1.72833, "y":2.93794, "heading":0.55549, "vx":2.30644, "vy":2.89336, "omega":-0.00028, "ax":4.56019, "ay":-3.77948, "alpha":-0.00317, "fx":[67.27283,67.95237,67.94878,63.65814], "fy":[-55.29106,-55.28995,-55.52226,-55.04709]}, + {"t":0.89129, "x":1.77505, "y":2.99468, "heading":0.55548, "vx":2.39704, "vy":2.81826, "omega":-0.00035, "ax":4.36215, "ay":-4.01251, "alpha":0.0088, "fx":[63.76262,64.48261,63.79258,63.20658], "fy":[-58.09212,-58.68802,-59.37492,-58.63042]}, + {"t":0.91116, "x":1.82354, "y":3.04988, "heading":0.55548, "vx":2.48371, "vy":2.73854, "omega":-0.00017, "ax":3.45878, "ay":-4.82126, "alpha":-0.30607, "fx":[52.00042,52.59076,50.18757,47.60623], "fy":[-69.47655,-70.20608,-71.60046,-70.82546]}, + {"t":0.93102, "x":1.87357, "y":3.10334, "heading":0.55547, "vx":2.55244, "vy":2.64274, "omega":-0.00625, "ax":1.43772, "ay":-5.77167, "alpha":-3.43285, "fx":[30.1013,25.06482,11.43795,17.52163], "fy":[-84.92463,-76.92961,-84.64225,-91.22362]}, + {"t":0.95089, "x":1.92457, "y":3.15471, "heading":0.55535, "vx":2.581, "vy":2.52807, "omega":-0.07446, "ax":-0.17396, "ay":-5.95954, "alpha":-5.95474, "fx":[13.63538,2.59173,-21.03431,-5.37174], "fy":[-88.35484,-75.56256,-85.97669,-98.81889]}, + {"t":0.97076, "x":1.97582, "y":3.20377, "heading":0.55387, "vx":2.57755, "vy":2.40965, "omega":-0.19278, "ax":-1.08959, "ay":-5.87112, "alpha":-7.92253, "fx":[6.82653,-9.3653,-39.8798,-21.33681], "fy":[-89.72537,-71.03294,-82.63076,-100.15]}, + {"t":0.99063, "x":2.02682, "y":3.25049, "heading":0.55004, "vx":2.5559, "vy":2.293, "omega":-0.35019, "ax":-1.65901, "ay":-5.74251, "alpha":-9.25554, "fx":[2.16948,-18.56466,-53.14854,-27.53048], "fy":[-90.55425,-66.63143,-78.61082,-100.2171]}, + {"t":1.0105, "x":2.07727, "y":3.29491, "heading":0.54308, "vx":2.52293, "vy":2.1789, "omega":-0.53409, "ax":-2.01928, "ay":-5.63022, "alpha":-10.11617, "fx":[0.51854,-23.72567,-60.27218,-34.67565], "fy":[-90.07085,-64.16398,-75.35462,-99.85414]}, + {"t":1.03037, "x":2.127, "y":3.33709, "heading":0.53247, "vx":2.48281, "vy":2.06703, "omega":-0.73509, "ax":-2.26953, "ay":-5.53718, "alpha":-10.65235, "fx":[-1.82423,-28.30678,-65.4423,-37.22488], "fy":[-91.03946,-61.3632,-72.40687,-99.18999]}, + {"t":1.05024, "x":2.17589, "y":3.37707, "heading":0.51786, "vx":2.43772, "vy":1.95702, "omega":-0.94674, "ax":-2.45048, "ay":-5.46184, "alpha":-10.783, "fx":[-3.60757,-31.1367,-67.97233,-40.66956], "fy":[-90.52093,-60.49573,-70.2794,-98.2951]}, + {"t":1.07011, "x":2.22384, "y":3.41488, "heading":0.49905, "vx":2.38903, "vy":1.84849, "omega":-1.16099, "ax":-2.58795, "ay":-5.39988, "alpha":-10.70896, "fx":[-6.19097,-33.49764,-69.48578,-42.25564], "fy":[-91.02993,-59.40788,-68.47772,-97.04961]}, + {"t":1.08998, "x":2.2708, "y":3.45054, "heading":0.47599, "vx":2.33761, "vy":1.7412, "omega":-1.37377, "ax":-2.69496, "ay":-5.34872, "alpha":-10.2665, "fx":[-8.95181,-34.99852,-69.4809,-44.26032], "fy":[-90.24316,-59.94986,-67.29887,-95.47985]}, + {"t":1.10985, "x":2.31671, "y":3.48408, "heading":0.44869, "vx":2.28406, "vy":1.63493, "omega":-1.57775, "ax":-2.78109, "ay":-5.30563, "alpha":-9.58128, "fx":[-12.84294,-36.53582,-68.84215,-44.51004], "fy":[-90.24057,-60.39245,-66.39478,-93.42253]}, + {"t":1.12972, "x":2.36154, "y":3.51552, "heading":0.41734, "vx":2.22881, "vy":1.52951, "omega":-1.76813, "ax":-2.85147, "ay":-5.26911, "alpha":-8.51008, "fx":[-16.83408,-37.21168,-66.34429,-46.45942], "fy":[-88.41548,-62.50836,-66.43424,-90.95566]}, + {"t":1.14959, "x":2.40527, "y":3.54487, "heading":0.38221, "vx":2.17215, "vy":1.42482, "omega":-1.93721, "ax":-2.91029, "ay":-5.23768, "alpha":-7.07476, "fx":[-22.16587,-38.28454,-62.84722,-46.99315], "fy":[-86.75167,-64.74202,-67.11552,-87.86559]}, + {"t":1.16945, "x":2.44785, "y":3.57214, "heading":0.34372, "vx":2.11433, "vy":1.32075, "omega":-2.07778, "ax":-2.96004, "ay":-5.21044, "alpha":-5.06949, "fx":[-28.76701,-39.79706,-57.82527,-46.81248], "fy":[-83.75376,-68.18721,-68.84432,-84.09516]}, + {"t":1.18932, "x":2.48928, "y":3.59736, "heading":0.30244, "vx":2.05551, "vy":1.21722, "omega":-2.17851, "ax":-3.00274, "ay":-5.18656, "alpha":-2.51931, "fx":[-36.77692,-41.9404,-51.00695,-45.97609], "fy":[-79.88273,-72.03273,-71.96395,-79.60373]}, + {"t":1.20919, "x":2.52952, "y":3.62052, "heading":0.25915, "vx":1.99585, "vy":1.11417, "omega":-2.22857, "ax":-3.03975, "ay":-5.16548, "alpha":0.73277, "fx":[-46.41556,-45.13608,-42.52055,-43.79408], "fy":[-74.38998,-76.77022,-76.67793,-74.41185]}, + {"t":1.22906, "x":2.56858, "y":3.64163, "heading":0.21487, "vx":1.93545, "vy":1.01154, "omega":-2.21401, "ax":-3.07219, "ay":-5.14672, "alpha":4.52524, "fx":[-57.30167,-49.31911,-32.63958,-40.50385], "fy":[-67.65714,-81.66196,-83.03805,-68.79531]}, + {"t":1.24893, "x":2.60643, "y":3.66072, "heading":0.17088, "vx":1.87441, "vy":0.90928, "omega":-2.12409, "ax":-3.10084, "ay":-5.12993, "alpha":8.70974, "fx":[-68.97854,-54.5199,-22.575,-35.36731], "fy":[-59.73253,-86.68571,-90.57148,-63.17989]}, + {"t":1.2688, "x":2.64306, "y":3.67777, "heading":0.12868, "vx":1.8128, "vy":0.80735, "omega":-1.95104, "ax":-3.12632, "ay":-5.11481, "alpha":12.86644, "fx":[-80.34904,-60.16412,-13.38535,-29.03287], "fy":[-51.37888,-91.1732,-98.54304,-58.19]}, + {"t":1.28867, "x":2.67846, "y":3.6928, "heading":0.08991, "vx":1.75068, "vy":0.70572, "omega":-1.69539, "ax":-3.14912, "ay":-5.10113, "alpha":16.75337, "fx":[-90.87274,-65.99619,-6.22513,-21.17177], "fy":[-43.21284,-94.92333,-106.15725,-54.19131]}, + {"t":1.30854, "x":2.71262, "y":3.70582, "heading":0.05623, "vx":1.68811, "vy":0.60437, "omega":-1.36252, "ax":-3.1696, "ay":-5.08874, "alpha":20.13717, "fx":[-99.93176,-71.41059,-1.01323,-13.10828], "fy":[-35.65736,-97.75664,-112.96632,-51.37896]}, + {"t":1.32841, "x":2.74554, "y":3.71682, "heading":0.02915, "vx":1.62514, "vy":0.50326, "omega":-0.96241, "ax":-3.18801, "ay":-5.07749, "alpha":23.02802, "fx":[-107.73548,-76.35789,2.20063,-4.64889], "fy":[-29.18042,-99.79454,-118.68958,-49.43654]}, + {"t":1.34828, "x":2.7772, "y":3.72582, "heading":0.01003, "vx":1.56179, "vy":0.40237, "omega":-0.50487, "ax":-3.20467, "ay":-5.06724, "alpha":25.39802, "fx":[-114.15312,-80.40757,4.44996,2.59446], "fy":[-23.70419,-101.30904,-123.41315,-48.07491]}, + {"t":1.36815, "x":2.8076, "y":3.73281, "heading":0.0, "vx":1.49812, "vy":0.30169, "omega":-0.00023, "ax":-3.54986, "ay":-4.828, "alpha":0.01091, "fx":[-51.95168,-51.94598,-51.90336,-51.91351], "fy":[-70.60287,-70.63673,-70.65046,-70.61288]}, + {"t":1.39221, "x":2.84262, "y":3.73868, "heading":-0.00001, "vx":1.4127, "vy":0.18552, "omega":0.00003, "ax":-4.24183, "ay":-4.23787, "alpha":0.00002, "fx":[-61.9493,-61.93004,-61.91486,-62.4096], "fy":[-61.69288,-62.10468,-62.10411,-62.0705]}, + {"t":1.41627, "x":2.87538, "y":3.74191, "heading":0.0, "vx":1.31064, "vy":0.08355, "omega":0.00003, "ax":-4.89252, "ay":-3.46611, "alpha":-0.00002, "fx":[-71.58639,-71.59343,-71.54812,-71.55014], "fy":[-50.72298,-50.6,-50.76611,-50.72494]}, + {"t":1.44033, "x":2.9055, "y":3.74292, "heading":0.0, "vx":1.19292, "vy":0.00015, "omega":0.00003, "ax":-5.42747, "ay":-2.54809, "alpha":0.00002, "fx":[-79.32214,-79.31059,-79.34592,-79.60091], "fy":[-37.00546,-37.35293,-37.35302,-37.3861]}, + {"t":1.46439, "x":2.93264, "y":3.74219, "heading":0.0, "vx":1.06233, "vy":-0.06116, "omega":0.00003, "ax":-5.78937, "ay":-1.56024, "alpha":-0.00001, "fx":[-84.70749,-84.71054,-84.66834,-84.66953], "fy":[-22.84327,-22.71791,-22.88941,-22.84441]}, + {"t":1.48845, "x":2.95652, "y":3.74026, "heading":0.0, "vx":0.92302, "vy":-0.0987, "omega":0.00003, "ax":-5.96654, "ay":-0.59487, "alpha":0.0, "fx":[-87.26393,-87.26333,-87.25808,-87.33736], "fy":[-8.65601,-8.71902,-8.719,-8.71376]}, + {"t":1.51251, "x":2.977, "y":3.73772, "heading":0.0, "vx":0.77946, "vy":-0.11301, "omega":0.00003, "ax":-5.98997, "ay":0.27716, "alpha":0.0, "fx":[-87.61872,-87.61883,-87.62807,-87.6281], "fy":[4.05907,4.03012,4.06938,4.05904]}, + {"t":1.53658, "x":2.99402, "y":3.73508, "heading":0.0, "vx":0.63533, "vy":-0.10634, "omega":0.00003, "ax":-5.9088, "ay":1.0228, "alpha":-0.00137, "fx":[-86.43382,-86.43279,-86.40165,-86.47552], "fy":[14.9244,14.96406,14.96405,14.99522]}, + {"t":1.56064, "x":3.0076, "y":3.73281, "heading":0.0, "vx":0.49316, "vy":-0.08173, "omega":0.0, "ax":0.15145, "ay":1.94225, "alpha":0.0, "fx":[2.28957,2.2904,2.14066,2.14093], "fy":[28.48632,28.0261,28.64844,28.4866]}, + {"t":1.60497, "x":3.02961, "y":3.7311, "heading":0.0, "vx":0.49987, "vy":0.00437, "omega":0.0, "ax":-0.0001, "ay":0.01068, "alpha":0.0, "fx":[0.04722,0.04722,-0.05013,-0.05005], "fy":[0.39953,0.10758,0.10758,0.01024]}, + {"t":1.6493, "x":3.05177, "y":3.7313, "heading":0.0, "vx":0.49987, "vy":0.00484, "omega":0.0, "ax":0.0, "ay":0.00003, "alpha":0.0, "fx":[-0.00654,-0.00654,0.00654,0.00654], "fy":[-0.00614,0.03442,-0.02054,-0.00614]}, + {"t":1.69363, "x":3.07393, "y":3.73152, "heading":0.0, "vx":0.49987, "vy":0.00485, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.00106,0.00106,-0.00102,-0.0011], "fy":[0.00526,-0.00106,-0.00106,-0.00315]}, + {"t":1.73797, "x":3.09609, "y":3.73173, "heading":0.0, "vx":0.49987, "vy":0.00485, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.00004,0.00004,-0.00004,-0.00004], "fy":[0.00003,-0.00018,0.00008,0.00003]}, + {"t":1.7823, "x":3.11825, "y":3.73195, "heading":0.0, "vx":0.49987, "vy":0.00485, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[-0.0002,-0.0002,0.00021,0.00019], "fy":[-0.00098,0.00021,0.00021,0.00061]}, + {"t":1.82663, "x":3.14041, "y":3.73216, "heading":0.0, "vx":0.49987, "vy":0.00485, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.00039,0.00039,-0.00039,-0.00039], "fy":[0.0004,-0.00195,0.00118,0.0004]}, + {"t":1.87096, "x":3.16257, "y":3.73238, "heading":0.0, "vx":0.49987, "vy":0.00485, "omega":0.0, "ax":-0.00001, "ay":0.0, "alpha":0.0, "fx":[0.00215,0.00215,0.01037,-0.01532], "fy":[-0.00127,-0.00229,-0.00229,0.00593]}, + {"t":1.91529, "x":3.18473, "y":3.73259, "heading":0.0, "vx":0.49987, "vy":0.00485, "omega":0.0, "ax":-5.27825, "ay":-0.05117, "alpha":0.0, "fx":[-77.20985,-77.20984,-77.21434,-77.21434], "fy":[-0.74628,-0.76039,-0.74115,-0.74627]}, + {"t":1.95963, "x":3.20171, "y":3.73276, "heading":0.0, "vx":0.26587, "vy":0.00258, "omega":0.0, "ax":-5.99729, "ay":-0.05814, "alpha":0.0, "fx":[-87.71542,-87.7565,-87.72509,-87.72508], "fy":[-0.85586,-0.84499,-0.84499,-0.85585]}, + {"t":2.00396, "x":3.2076, "y":3.73281, "heading":0.0, "vx":0.0, "vy":0.0, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.0,0.0,0.0,0.0], "fy":[0.0,0.0,0.0,0.0]}], + "splits":[0] + }, + "events":[] +} diff --git a/src/main/deploy/choreo/S1 to Post C.traj b/src/main/deploy/choreo/S1 to Post C.traj new file mode 100644 index 00000000..c80d00dc --- /dev/null +++ b/src/main/deploy/choreo/S1 to Post C.traj @@ -0,0 +1,86 @@ +{ + "name":"S1 to Post C", + "version":1, + "snapshot":{ + "waypoints":[ + {"x":0.8796831418724709, "y":1.0444864371099356, "heading":0.9426766270029469, "intervals":33, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":3.7176981000607, "y":2.760443507336712, "heading":1.0471975511965976, "intervals":10, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":3.8176981000607, "y":2.9336485880936, "heading":1.0471975511965976, "intervals":40, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":0.0, "y":0.0, "w":17.548, "h":8.052}}, "enabled":false}, + {"from":1, "to":2, "data":{"type":"MaxVelocity", "props":{"max":0.5}}, "enabled":true}, + {"from":1, "to":2, "data":{"type":"MaxAngularVelocity", "props":{"max":0.01}}, "enabled":true}, + {"from":0, "to":2, "data":{"type":"MaxAcceleration", "props":{"max":6.0}}, "enabled":true}], + "targetDt":0.05 + }, + "params":{ + "waypoints":[ + {"x":{"exp":"S1.x", "val":0.8796831418724709}, "y":{"exp":"S1.y", "val":1.0444864371099356}, "heading":{"exp":"S1.heading", "val":0.9426766270029469}, "intervals":33, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"C.x - offset * 1 * cos(C.heading)", "val":3.7176981000607}, "y":{"exp":"C.y - offset * 1 * sin(C.heading)", "val":2.760443507336712}, "heading":{"exp":"C.heading", "val":1.0471975511965976}, "intervals":10, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"C.x", "val":3.8176981000607}, "y":{"exp":"C.y", "val":2.9336485880936}, "heading":{"exp":"C.heading", "val":1.0471975511965976}, "intervals":40, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":{"exp":"0 m", "val":0.0}, "y":{"exp":"0 m", "val":0.0}, "w":{"exp":"17.548 m", "val":17.548}, "h":{"exp":"8.052 m", "val":8.052}}}, "enabled":false}, + {"from":1, "to":2, "data":{"type":"MaxVelocity", "props":{"max":{"exp":"0.5 m / s", "val":0.5}}}, "enabled":true}, + {"from":1, "to":2, "data":{"type":"MaxAngularVelocity", "props":{"max":{"exp":"0.01 rad / s", "val":0.01}}}, "enabled":true}, + {"from":0, "to":2, "data":{"type":"MaxAcceleration", "props":{"max":{"exp":"6 m / s ^ 2", "val":6.0}}}, "enabled":true}], + "targetDt":{ + "exp":"0.05 s", + "val":0.05 + } + }, + "trajectory":{ + "sampleType":"Swerve", + "waypoints":[0.0,1.43634,1.88112], + "samples":[ + {"t":0.0, "x":0.87968, "y":1.04449, "heading":0.94268, "vx":0.0, "vy":0.0, "omega":0.0, "ax":5.1648, "ay":3.04807, "alpha":1.43024, "fx":[72.74922,77.09296,78.27653,74.09164], "fy":[44.98779,40.35523,44.25183,48.75785]}, + {"t":0.04353, "x":0.88458, "y":1.04737, "heading":0.94268, "vx":0.2248, "vy":0.13267, "omega":0.06225, "ax":5.16595, "ay":3.0487, "alpha":1.0394, "fx":[73.54151,76.67945,77.55443,74.50197], "fy":[44.88619,41.52429,44.34295,47.63661]}, + {"t":0.08705, "x":0.89925, "y":1.05604, "heading":0.94539, "vx":0.44965, "vy":0.26536, "omega":0.10749, "ax":5.16586, "ay":3.0486, "alpha":0.71104, "fx":[74.18918,76.31451,76.93227,74.83609], "fy":[44.78304,42.49636,44.42558,46.67925]}, + {"t":0.13058, "x":0.92372, "y":1.07047, "heading":0.95006, "vx":0.6745, "vy":0.39806, "omega":0.13844, "ax":5.16575, "ay":3.04849, "alpha":0.42754, "fx":[74.73219,76.04144,76.37831,75.11373], "fy":[44.69678,43.33772,44.49556,45.84748]}, + {"t":0.1741, "x":0.95797, "y":1.09069, "heading":0.95609, "vx":0.89934, "vy":0.53074, "omega":0.15705, "ax":5.16562, "ay":3.04835, "alpha":0.18202, "fx":[75.21281,75.7593,75.91321,75.3727], "fy":[44.6312,44.05759,44.55427,45.12636]}, + {"t":0.21763, "x":1.00201, "y":1.11668, "heading":0.96293, "vx":1.12417, "vy":0.66342, "omega":0.16497, "ax":5.16546, "ay":3.04818, "alpha":-0.03012, "fx":[75.60796,75.56068,75.4949,75.58531], "fy":[44.58069,44.68504,44.59558,44.49788]}, + {"t":0.26115, "x":1.05583, "y":1.14844, "heading":0.97011, "vx":1.349, "vy":0.7961, "omega":0.16366, "ax":5.16526, "ay":3.04796, "alpha":-0.2114, "fx":[75.95811,75.33455,75.15619,75.78838], "fy":[44.54775,45.21175,44.62523,43.96186]}, + {"t":0.30468, "x":1.11944, "y":1.18598, "heading":0.97723, "vx":1.57382, "vy":0.92876, "omega":0.15446, "ax":5.16501, "ay":3.04768, "alpha":-0.36182, "fx":[76.22509,75.20503,74.85254,75.93966], "fy":[44.52558,45.65456,44.63939,43.51069]}, + {"t":0.3482, "x":1.19283, "y":1.22929, "heading":0.98395, "vx":1.79863, "vy":1.06141, "omega":0.13871, "ax":5.16467, "ay":3.0473, "alpha":-0.48354, "fx":[76.45609,75.02653,74.63505,76.08481], "fy":[44.5105,46.00831,44.64005,43.14928]}, + {"t":0.39173, "x":1.27601, "y":1.27837, "heading":0.98999, "vx":2.02343, "vy":1.19405, "omega":0.11766, "ax":5.16419, "ay":3.04677, "alpha":-0.56659, "fx":[76.58877,74.97973,74.44791,76.15825], "fy":[44.50728,46.24295,44.63476,42.89197]}, + {"t":0.43525, "x":1.36897, "y":1.33323, "heading":0.99511, "vx":2.2482, "vy":1.32666, "omega":0.093, "ax":5.16348, "ay":3.04597, "alpha":-0.61667, "fx":[76.68068,74.86178,74.36963,76.22048], "fy":[44.49523,46.38547,44.6092,42.74016]}, + {"t":0.47878, "x":1.47172, "y":1.39386, "heading":0.99916, "vx":2.47295, "vy":1.45924, "omega":0.06616, "ax":5.16228, "ay":3.0446, "alpha":-0.60626, "fx":[76.62097,74.9568,74.32466,76.16017], "fy":[44.49488,46.32858,44.58012,42.74609]}, + {"t":0.52231, "x":1.58424, "y":1.46026, "heading":1.00204, "vx":2.69764, "vy":1.59176, "omega":0.03977, "ax":5.15982, "ay":3.04185, "alpha":-0.54368, "fx":[76.48584,74.91525,74.44912,76.06846], "fy":[44.455,46.12099,44.50574,42.9072]}, + {"t":0.56583, "x":1.70655, "y":1.53242, "heading":1.00377, "vx":2.92222, "vy":1.72415, "omega":0.01611, "ax":5.15545, "ay":3.02767, "alpha":-0.34589, "fx":[76.05362,75.17672,74.71144,75.7211], "fy":[44.2889,45.32756,44.23657,43.30607]}, + {"t":0.60936, "x":1.83862, "y":1.61033, "heading":1.00447, "vx":3.14661, "vy":1.85593, "omega":0.00106, "ax":1.01118, "ay":0.61328, "alpha":-0.02424, "fx":[14.69107,14.81255,14.89378,14.77034], "fy":[8.78069,9.3725,8.82718,8.90498]}, + {"t":0.65288, "x":1.97654, "y":1.69169, "heading":1.00452, "vx":3.19062, "vy":1.88263, "omega":0.0, "ax":0.01246, "ay":-0.02062, "alpha":0.00002, "fx":[0.09715,0.50481,0.04878,0.07832], "fy":[-0.29679,-0.27943,-0.30652,-0.3237]}, + {"t":0.69641, "x":2.11542, "y":1.77362, "heading":1.00452, "vx":3.19117, "vy":1.88173, "omega":0.0, "ax":-0.02089, "ay":0.03539, "alpha":0.00001, "fx":[-0.36735,-0.29181,-0.24383,-0.31935], "fy":[0.43885,0.65046,0.46654,0.51475]}, + {"t":0.73993, "x":2.2543, "y":1.85555, "heading":1.00452, "vx":3.19026, "vy":1.88327, "omega":0.0, "ax":-0.04048, "ay":0.0685, "alpha":-0.00001, "fx":[-0.58321,-0.62547,-0.57864,-0.58143], "fy":[1.00154,0.99962,1.00263,1.00455]}, + {"t":0.78346, "x":2.39312, "y":1.93759, "heading":1.00452, "vx":3.1885, "vy":1.88625, "omega":0.0, "ax":-0.07257, "ay":0.12247, "alpha":0.00001, "fx":[-1.0175,-1.07134,-1.10552,-1.05171], "fy":[1.85051,1.69465,1.8291,1.79185]}, + {"t":0.82698, "x":2.53183, "y":2.0198, "heading":1.00452, "vx":3.18534, "vy":1.89158, "omega":0.0, "ax":-0.1956, "ay":0.32696, "alpha":-0.00009, "fx":[-2.78382,-3.15295,-2.74139,-2.76729], "fy":[4.77872,4.76235,4.78757,4.8029]}, + {"t":0.87051, "x":2.67029, "y":2.10245, "heading":1.00452, "vx":3.17682, "vy":1.90581, "omega":0.0, "ax":-1.87565, "ay":-0.338, "alpha":0.08935, "fx":[-27.36365,-27.45035,-27.51349,-27.42299], "fy":[-4.62506,-5.78008,-4.65903,-4.71336]}, + {"t":0.91403, "x":2.80678, "y":2.18508, "heading":1.00452, "vx":3.09519, "vy":1.8911, "omega":0.00389, "ax":-5.19033, "ay":-2.96845, "alpha":0.34996, "fx":[-76.44484,-76.07803,-75.06526,-76.11588], "fy":[-43.43003,-44.51091,-43.38115,-42.37199]}, + {"t":0.95756, "x":2.93659, "y":2.26458, "heading":1.00469, "vx":2.86927, "vy":1.7619, "omega":0.01912, "ax":-5.17389, "ay":-3.01809, "alpha":0.51135, "fx":[-76.6497,-75.14164,-74.69614,-76.25437], "fy":[-44.16458,-45.60831,-44.19184,-42.63425]}, + {"t":1.00109, "x":3.05657, "y":2.33841, "heading":1.00552, "vx":2.64408, "vy":1.63053, "omega":0.04138, "ax":-5.17211, "ay":-3.02796, "alpha":0.56123, "fx":[-76.66266,-75.16743,-74.55806,-76.24987], "fy":[-44.26991,-45.96343,-44.31873,-42.6244]}, + {"t":1.04461, "x":3.16676, "y":2.40651, "heading":1.00732, "vx":2.41896, "vy":1.49874, "omega":0.0658, "ax":-5.17061, "ay":-3.03389, "alpha":0.53764, "fx":[-76.63149,-75.03975,-74.62947,-76.24961], "fy":[-44.35883,-45.96347,-44.41341,-42.78765]}, + {"t":1.08814, "x":3.26715, "y":2.46887, "heading":1.01018, "vx":2.19391, "vy":1.36669, "omega":0.0892, "ax":-5.17004, "ay":-3.03688, "alpha":0.45775, "fx":[-76.45031,-75.17857,-74.75197,-76.13577], "fy":[-44.40828,-45.78463,-44.44527,-43.06003]}, + {"t":1.13166, "x":3.35774, "y":2.52548, "heading":1.01407, "vx":1.96888, "vy":1.23451, "omega":0.10913, "ax":-5.16947, "ay":-3.03918, "alpha":0.33501, "fx":[-76.23675,-75.23931,-74.99748,-76.00977], "fy":[-44.44675,-45.44633,-44.47552,-43.4642]}, + {"t":1.17519, "x":3.43854, "y":2.57633, "heading":1.01882, "vx":1.74387, "vy":1.10223, "omega":0.12371, "ax":-5.16919, "ay":-3.04061, "alpha":0.17151, "fx":[-75.91629,-75.46401,-75.28316,-75.8033], "fy":[-44.47152,-44.9949,-44.48373,-43.96626]}, + {"t":1.21871, "x":3.50955, "y":2.62142, "heading":1.0242, "vx":1.51888, "vy":0.96988, "omega":0.13117, "ax":-5.16892, "ay":-3.04176, "alpha":-0.03026, "fx":[-75.55485,-75.65158,-75.66724,-75.57768], "fy":[-44.49599,-44.40661,-44.49854,-44.58291]}, + {"t":1.26224, "x":3.57076, "y":2.66076, "heading":1.02991, "vx":1.2939, "vy":0.83749, "omega":0.12986, "ax":-5.16873, "ay":-3.04265, "alpha":-0.27143, "fx":[-75.09946,-75.97132,-76.09252,-75.27658], "fy":[-44.50644,-43.71284,-44.51063,-45.30582]}, + {"t":1.30576, "x":3.62218, "y":2.69433, "heading":1.03556, "vx":1.06893, "vy":0.70506, "omega":0.11804, "ax":-5.16856, "ay":-3.04338, "alpha":-0.55461, "fx":[-74.59119,-76.28022,-76.61454,-74.94389], "fy":[-44.51316,-42.87581,-44.53584,-46.15368]}, + {"t":1.34929, "x":3.66381, "y":2.72213, "heading":1.0407, "vx":0.84397, "vy":0.57259, "omega":0.0939, "ax":-5.16844, "ay":-3.04394, "alpha":-0.88561, "fx":[-73.97853,-76.71861,-77.19503,-74.53077], "fy":[-44.50714,-41.90496,-44.56551,-47.1336]}, + {"t":1.39281, "x":3.69565, "y":2.74417, "heading":1.04479, "vx":0.61901, "vy":0.4401, "omega":0.05536, "ax":-5.16832, "ay":-3.04443, "alpha":-1.27176, "fx":[-73.28142,-77.17748,-77.89016,-74.0672], "fy":[-44.49945,-40.75523,-44.61024,-48.27509]}, + {"t":1.43634, "x":3.7177, "y":2.76044, "heading":1.0472, "vx":0.39406, "vy":0.30759, "omega":0.0, "ax":-3.42295, "ay":2.9211, "alpha":-0.00008, "fx":[-49.91328,-50.13424,-50.20762,-50.03329], "fy":[42.95497,42.38726,42.84325,42.73779]}, + {"t":1.48082, "x":3.73184, "y":2.77701, "heading":1.0472, "vx":0.24181, "vy":0.43752, "omega":0.0, "ax":-0.03721, "ay":0.02048, "alpha":0.0, "fx":[-0.19531,-0.23804,-0.26252,-1.48134], "fy":[0.85097,0.15229,0.10987,0.08494]}, + {"t":1.5253, "x":3.74256, "y":2.79649, "heading":1.0472, "vx":0.24015, "vy":0.43843, "omega":0.0, "ax":0.00137, "ay":-0.00075, "alpha":0.0, "fx":[0.03158,0.01698,0.00856,0.02315], "fy":[0.00267,-0.03515,-0.00233,-0.00916]}, + {"t":1.56978, "x":3.75324, "y":2.81599, "heading":1.0472, "vx":0.24021, "vy":0.43839, "omega":0.0, "ax":-0.00101, "ay":0.00055, "alpha":0.0, "fx":[-0.05552,-0.05022,-0.04716,0.09382], "fy":[-0.05262,0.02378,0.02908,0.03214]}, + {"t":1.61425, "x":3.76392, "y":2.83549, "heading":1.0472, "vx":0.24017, "vy":0.43842, "omega":0.0, "ax":0.0005, "ay":-0.00028, "alpha":0.0, "fx":[0.01283,0.00588,0.00186,0.00881], "fy":[0.00317,-0.01605,0.00033,-0.00354]}, + {"t":1.65873, "x":3.77461, "y":2.85499, "heading":1.0472, "vx":0.24019, "vy":0.43841, "omega":0.0, "ax":-0.00025, "ay":0.00014, "alpha":0.0, "fx":[-0.01224,-0.01117,-0.01056,0.01941], "fy":[-0.01146,0.00557,0.00663,0.00724]}, + {"t":1.70321, "x":3.78529, "y":2.87449, "heading":1.0472, "vx":0.24018, "vy":0.43841, "omega":0.0, "ax":0.00011, "ay":-0.00006, "alpha":0.0, "fx":[0.00287,0.00121,0.00026,0.00191], "fy":[0.0014,-0.00413,0.00036,-0.00106]}, + {"t":1.74769, "x":3.79597, "y":2.89399, "heading":1.0472, "vx":0.24019, "vy":0.43841, "omega":0.0, "ax":-0.00008, "ay":0.00003, "alpha":0.0, "fx":[0.0149,0.00803,0.00412,-0.03189], "fy":[-0.03037,0.0166,0.00981,0.00592]}, + {"t":1.79217, "x":3.80666, "y":2.91349, "heading":1.0472, "vx":0.24018, "vy":0.43841, "omega":0.0, "ax":-2.5183, "ay":-4.59682, "alpha":0.0, "fx":[-36.82474,-36.84923,-36.8453,-36.83484], "fy":[-67.22419,-67.271,-67.23736,-67.24305]}, + {"t":1.83664, "x":3.81485, "y":2.92845, "heading":1.0472, "vx":0.12817, "vy":0.23395, "omega":0.0, "ax":-2.88169, "ay":-5.25995, "alpha":0.00001, "fx":[-42.14922,-42.17092,-42.1493,-42.14822], "fy":[-76.94482,-76.94795,-76.94216,-76.94242]}, + {"t":1.88112, "x":3.8177, "y":2.93365, "heading":1.0472, "vx":0.0, "vy":0.0, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.0,0.0,0.0,0.0], "fy":[0.0,0.0,0.0,0.0]}], + "splits":[0] + }, + "events":[] +} diff --git a/src/main/deploy/choreo/S1 to Post D.traj b/src/main/deploy/choreo/S1 to Post D.traj new file mode 100644 index 00000000..90881db5 --- /dev/null +++ b/src/main/deploy/choreo/S1 to Post D.traj @@ -0,0 +1,87 @@ +{ + "name":"S1 to Post D", + "version":1, + "snapshot":{ + "waypoints":[ + {"x":0.8796831418724709, "y":1.0444864371099356, "heading":0.9426766270029469, "intervals":34, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":4.002288778836401, "y":2.5961350023367125, "heading":1.0471975511965976, "intervals":10, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":4.1022887788364, "y":2.7693400830936, "heading":1.0471975511965976, "intervals":11, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":0.0, "y":0.0, "w":17.548, "h":8.052}}, "enabled":false}, + {"from":1, "to":2, "data":{"type":"MaxVelocity", "props":{"max":0.5}}, "enabled":true}, + {"from":1, "to":2, "data":{"type":"MaxAngularVelocity", "props":{"max":0.01}}, "enabled":true}, + {"from":0, "to":2, "data":{"type":"MaxAcceleration", "props":{"max":6.0}}, "enabled":true}], + "targetDt":0.05 + }, + "params":{ + "waypoints":[ + {"x":{"exp":"S1.x", "val":0.8796831418724709}, "y":{"exp":"S1.y", "val":1.0444864371099356}, "heading":{"exp":"S1.heading", "val":0.9426766270029469}, "intervals":34, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"D.x - offset * 1 * cos(D.heading)", "val":4.002288778836401}, "y":{"exp":"D.y - offset * 1 * sin(D.heading)", "val":2.5961350023367125}, "heading":{"exp":"D.heading", "val":1.0471975511965976}, "intervals":10, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}, + {"x":{"exp":"D.x", "val":4.1022887788364}, "y":{"exp":"D.y", "val":2.7693400830936}, "heading":{"exp":"D.heading", "val":1.0471975511965976}, "intervals":11, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false}], + "constraints":[ + {"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true}, + {"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":{"exp":"0 m", "val":0.0}, "y":{"exp":"0 m", "val":0.0}, "w":{"exp":"17.548 m", "val":17.548}, "h":{"exp":"8.052 m", "val":8.052}}}, "enabled":false}, + {"from":1, "to":2, "data":{"type":"MaxVelocity", "props":{"max":{"exp":"0.5 m / s", "val":0.5}}}, "enabled":true}, + {"from":1, "to":2, "data":{"type":"MaxAngularVelocity", "props":{"max":{"exp":"0.01 rad / s", "val":0.01}}}, "enabled":true}, + {"from":0, "to":2, "data":{"type":"MaxAcceleration", "props":{"max":{"exp":"6 m / s ^ 2", "val":6.0}}}, "enabled":true}], + "targetDt":{ + "exp":"0.05 s", + "val":0.05 + } + }, + "trajectory":{ + "sampleType":"Swerve", + "waypoints":[0.0,1.48251,1.92791], + "samples":[ + {"t":0.0, "x":0.87968, "y":1.04449, "heading":0.94268, "vx":0.0, "vy":0.0, "omega":0.0, "ax":5.4017, "ay":2.60531, "alpha":1.43789, "fx":[76.33184,80.46352,81.60672,77.6698], "fy":[38.37195,33.72267,37.90679,42.44409]}, + {"t":0.0436, "x":0.88482, "y":1.04696, "heading":0.94268, "vx":0.23553, "vy":0.1136, "omega":0.0627, "ax":5.40288, "ay":2.60587, "alpha":1.0446, "fx":[77.0945,80.07208,80.9216,78.05275], "fy":[38.3055,34.93319,37.96326,41.27649]}, + {"t":0.08721, "x":0.90022, "y":1.05439, "heading":0.94541, "vx":0.47111, "vy":0.22722, "omega":0.10824, "ax":5.40276, "ay":2.60581, "alpha":0.7121, "fx":[77.72086,79.70967,80.33585,78.36783], "fy":[38.23124,35.95524,38.01194,40.27662]}, + {"t":0.13081, "x":0.9259, "y":1.06678, "heading":0.95013, "vx":0.70669, "vy":0.34085, "omega":0.13929, "ax":5.40263, "ay":2.60574, "alpha":0.42979, "fx":[78.22521,79.4986,79.79457,78.60811], "fy":[38.17865,36.81476,38.0611,39.41606]}, + {"t":0.17441, "x":0.96185, "y":1.08412, "heading":0.9562, "vx":0.94227, "vy":0.45446, "omega":0.15803, "ax":5.40247, "ay":2.60565, "alpha":0.1808, "fx":[78.69624,79.20305,79.36107,78.85662], "fy":[38.13521,37.57157,38.09446,38.66444]}, + {"t":0.21802, "x":1.00807, "y":1.10641, "heading":0.96309, "vx":1.17783, "vy":0.56808, "omega":0.16592, "ax":5.40228, "ay":2.60554, "alpha":-0.03036, "fx":[79.05779,79.06891,78.94495,79.03397], "fy":[38.10996,38.2147,38.11918,38.01528]}, + {"t":0.26162, "x":1.06457, "y":1.13366, "heading":0.97033, "vx":1.41339, "vy":0.68169, "omega":0.16459, "ax":5.40203, "ay":2.60541, "alpha":-0.21691, "fx":[79.40839,78.81234,78.63553,79.2348], "fy":[38.08901,38.78514,38.12446,37.45295]}, + {"t":0.30522, "x":1.13133, "y":1.16586, "heading":0.97751, "vx":1.64893, "vy":0.79529, "omega":0.15514, "ax":5.40171, "ay":2.60523, "alpha":-0.36425, "fx":[79.64582,78.74943,78.32442,79.35303], "fy":[38.09115,39.22432,38.13187,36.99362]}, + {"t":0.34883, "x":1.20836, "y":1.20301, "heading":0.98427, "vx":1.88447, "vy":0.90889, "omega":0.13925, "ax":5.40129, "ay":2.605, "alpha":-0.48826, "fx":[79.8856,78.52619,78.13262,79.50332], "fy":[38.09092,39.59285,38.12214,36.62168]}, + {"t":0.39243, "x":1.29567, "y":1.24512, "heading":0.99034, "vx":2.11998, "vy":1.02248, "omega":0.11796, "ax":5.40069, "ay":2.60467, "alpha":-0.56985, "fx":[79.98422,78.5694,77.92035,79.53893], "fy":[38.09972,39.83885,38.11082,36.35873]}, + {"t":0.43603, "x":1.39324, "y":1.29218, "heading":0.99549, "vx":2.35547, "vy":1.13605, "omega":0.09312, "ax":5.39977, "ay":2.6042, "alpha":-0.62083, "fx":[80.09983,78.36671,77.87076,79.62195], "fy":[38.10243,39.97673,38.0891,36.21262]}, + {"t":0.47964, "x":1.50108, "y":1.34419, "heading":0.99955, "vx":2.59091, "vy":1.2496, "omega":0.06605, "ax":5.39825, "ay":2.60337, "alpha":-0.60679, "fx":[79.97969,78.63563,77.75642,79.49853], "fy":[38.10671,39.93329,38.06655,36.22553]}, + {"t":0.52324, "x":1.61918, "y":1.40115, "heading":1.00243, "vx":2.8263, "vy":1.36312, "omega":0.03959, "ax":5.39506, "ay":2.60187, "alpha":-0.54414, "fx":[79.90091,78.38967,77.93029,79.46243], "fy":[38.08508,39.70715,38.02198,36.42998]}, + {"t":0.56684, "x":1.74755, "y":1.46306, "heading":1.00415, "vx":3.06154, "vy":1.47657, "omega":0.01586, "ax":5.38757, "ay":2.59188, "alpha":-0.34508, "fx":[79.40524,78.73214,78.05604,79.05146], "fy":[37.96103,38.94471,37.85349,36.90066]}, + {"t":0.61045, "x":1.88616, "y":1.52991, "heading":1.00484, "vx":3.29645, "vy":1.58958, "omega":0.00082, "ax":0.95163, "ay":0.39998, "alpha":-0.01872, "fx":[13.7831,13.95029,14.0593,13.89064], "fy":[5.62381,6.29272,5.68839,5.79952]}, + {"t":0.65405, "x":2.0308, "y":1.5996, "heading":1.00488, "vx":3.33795, "vy":1.60702, "omega":0.0, "ax":-0.0025, "ay":0.00575, "alpha":0.00004, "fx":[-0.10102,0.20816,-0.13809,-0.11544], "fy":[0.08769,0.10061,0.08039,0.06758]}, + {"t":0.69765, "x":2.17635, "y":1.66968, "heading":1.00488, "vx":3.33784, "vy":1.60727, "omega":0.0, "ax":-0.00986, "ay":0.02035, "alpha":-0.00002, "fx":[-0.19729,-0.13232,-0.09106,-0.15602], "fy":[0.22942,0.4124,0.25347,0.29529]}, + {"t":0.74126, "x":2.32188, "y":1.73978, "heading":1.00488, "vx":3.33741, "vy":1.60816, "omega":0.0, "ax":-0.01843, "ay":0.03835, "alpha":0.00003, "fx":[-0.27676,-0.24196,-0.28106,-0.27843], "fy":[0.5614,0.56272,0.56065,0.55934]}, + {"t":0.78486, "x":2.46738, "y":1.80994, "heading":1.00488, "vx":3.33661, "vy":1.60983, "omega":0.0, "ax":-0.0371, "ay":0.07666, "alpha":-0.00003, "fx":[-0.54721,-0.54167,-0.53815,-0.5437], "fy":[1.11746,1.12995,1.11838,1.11995]}, + {"t":0.82846, "x":2.61283, "y":1.8802, "heading":1.00488, "vx":3.33499, "vy":1.61317, "omega":0.0, "ax":-0.09102, "ay":0.18762, "alpha":0.0, "fx":[-1.2991,-1.45351,-1.28102,-1.29207], "fy":[2.74273,2.73605,2.74652,2.75312]}, + {"t":0.87207, "x":2.75816, "y":1.95072, "heading":1.00488, "vx":3.33102, "vy":1.62136, "omega":0.0, "ax":-0.19519, "ay":0.39776, "alpha":0.0, "fx":[-2.59605,-2.91327,-3.11458,-2.79758], "fy":[6.15958,5.25279,6.03727,5.82442]}, + {"t":0.91567, "x":2.90322, "y":2.02179, "heading":1.00488, "vx":3.32251, "vy":1.6387, "omega":0.0, "ax":-1.8365, "ay":-0.08012, "alpha":0.04653, "fx":[-26.98002,-26.81813,-26.7648,-26.897], "fy":[-1.19648,-1.28536,-1.14723,-1.05878]}, + {"t":0.95927, "x":3.04635, "y":2.09317, "heading":1.00488, "vx":3.24243, "vy":1.63521, "omega":0.00203, "ax":-5.41963, "ay":-2.52561, "alpha":0.33763, "fx":[-79.98902,-78.95294,-78.5519,-79.62729], "fy":[-37.14001,-37.71403,-37.01119,-35.91692]}, + {"t":1.00287, "x":3.18257, "y":2.16207, "heading":1.00497, "vx":3.00612, "vy":1.52508, "omega":0.01675, "ax":-5.41337, "ay":-2.56389, "alpha":0.51857, "fx":[-80.00388,-79.09485,-78.08458,-79.57167], "fy":[-37.55522,-39.10141,-37.46011,-35.90549]}, + {"t":1.04648, "x":3.30851, "y":2.22613, "heading":1.0057, "vx":2.77008, "vy":1.41329, "omega":0.03936, "ax":-5.40976, "ay":-2.57953, "alpha":0.57174, "fx":[-80.15932,-78.56139,-78.10405,-79.71871], "fy":[-37.78459,-39.44727,-37.70777,-35.99759]}, + {"t":1.09008, "x":3.42415, "y":2.2853, "heading":1.00742, "vx":2.53419, "vy":1.30081, "omega":0.06429, "ax":-5.40851, "ay":-2.58609, "alpha":0.54319, "fx":[-80.03167,-78.73911,-78.07775,-79.62205], "fy":[-37.86632,-39.49082,-37.79951,-36.16442]}, + {"t":1.13368, "x":3.5295, "y":2.33956, "heading":1.01022, "vx":2.29836, "vy":1.18805, "omega":0.08798, "ax":-5.4076, "ay":-2.59034, "alpha":0.46589, "fx":[-79.93109,-78.6235,-78.27217,-79.59066], "fy":[-37.92982,-39.29566,-37.87077,-36.47342]}, + {"t":1.17729, "x":3.62458, "y":2.3889, "heading":1.01405, "vx":2.06258, "vy":1.0751, "omega":0.10829, "ax":-5.40706, "ay":-2.59303, "alpha":0.34004, "fx":[-79.66291,-78.85816,-78.44736,-79.41712], "fy":[-37.95696,-38.97497,-37.90844,-36.88694]}, + {"t":1.22089, "x":3.70937, "y":2.43332, "heading":1.01878, "vx":1.82681, "vy":0.96204, "omega":0.12312, "ax":-5.40663, "ay":-2.59504, "alpha":0.18017, "fx":[-79.40363,-78.90309,-78.77498,-79.27861], "fy":[-37.97256,-38.51597,-37.94251,-37.41371]}, + {"t":1.26449, "x":3.78389, "y":2.4728, "heading":1.02415, "vx":1.59106, "vy":0.84888, "omega":0.13097, "ax":-5.40635, "ay":-2.59645, "alpha":-0.02677, "fx":[-79.01951,-79.18863,-79.10216,-79.03386], "fy":[-37.9799,-37.90662,-37.98296,-38.0574]}, + {"t":1.3081, "x":3.84813, "y":2.50734, "heading":1.02986, "vx":1.35533, "vy":0.73567, "omega":0.12981, "ax":-5.40612, "ay":-2.59757, "alpha":-0.26543, "fx":[-78.61669,-79.37527,-79.54672,-78.79182], "fy":[-37.96571,-37.19765,-38.02225,-38.80733]}, + {"t":1.3517, "x":3.90208, "y":2.53695, "heading":1.03552, "vx":1.1196, "vy":0.62241, "omega":0.11823, "ax":-5.40594, "ay":-2.59847, "alpha":-0.55398, "fx":[-78.10229,-79.74496,-80.01523,-78.45727], "fy":[-37.94604,-36.32609,-38.08173,-39.69151]}, + {"t":1.3953, "x":3.94576, "y":2.56162, "heading":1.04067, "vx":0.88389, "vy":0.50911, "omega":0.09408, "ax":-5.40578, "ay":-2.59921, "alpha":-0.88252, "fx":[-77.54259,-80.06525,-80.59983,-78.103], "fy":[-37.90081,-35.33828,-38.14444,-40.70523]}, + {"t":1.43891, "x":3.97916, "y":2.58135, "heading":1.04477, "vx":0.64818, "vy":0.39577, "omega":0.0556, "ax":-5.40566, "ay":-2.59981, "alpha":-1.27499, "fx":[-76.85493,-80.55637,-81.2402,-77.65213], "fy":[-37.85492,-34.13743,-38.23437,-41.89711]}, + {"t":1.48251, "x":4.00229, "y":2.59614, "heading":1.0472, "vx":0.41247, "vy":0.28241, "omega":0.0, "ax":-3.83943, "ay":3.48662, "alpha":-0.00008, "fx":[-56.0059,-56.21847,-56.30968,-56.12385], "fy":[51.22682,50.65364,51.12384,51.00955]}, + {"t":1.52705, "x":4.01685, "y":2.61217, "heading":1.0472, "vx":0.24146, "vy":0.43771, "omega":0.0, "ax":-0.06627, "ay":0.03627, "alpha":0.0, "fx":[-0.55227,-0.60378,-0.63327,-2.08825], "fy":[1.18494,0.35654,0.30546,0.27542]}, + {"t":1.57159, "x":4.02754, "y":2.6317, "heading":1.0472, "vx":0.23851, "vy":0.43932, "omega":0.0, "ax":0.00251, "ay":-0.00136, "alpha":0.00001, "fx":[0.05399,0.03201,0.01932,0.0413], "fy":[0.00206,-0.05739,-0.00638,-0.01792]}, + {"t":1.61613, "x":4.03817, "y":2.65127, "heading":1.0472, "vx":0.23862, "vy":0.43926, "omega":0.0, "ax":-0.00184, "ay":0.001, "alpha":0.0, "fx":[-0.0818,-0.07462,-0.07047,0.11925], "fy":[-0.06649,0.03548,0.04266,0.04681]}, + {"t":1.66067, "x":4.04879, "y":2.67084, "heading":1.0472, "vx":0.23854, "vy":0.43931, "omega":0.0, "ax":0.00085, "ay":-0.00046, "alpha":0.0, "fx":[0.02014,0.01036,0.00472,0.0145], "fy":[0.00355,-0.02382,-0.00056,-0.00617]}, + {"t":1.70521, "x":4.05942, "y":2.6904, "heading":1.0472, "vx":0.23858, "vy":0.43929, "omega":0.0, "ax":-0.00037, "ay":0.0002, "alpha":0.0, "fx":[-0.01752,-0.01597,-0.01507,0.0269], "fy":[-0.01533,0.0077,0.00925,0.01014]}, + {"t":1.74975, "x":4.07005, "y":2.70997, "heading":1.0472, "vx":0.23856, "vy":0.4393, "omega":0.0, "ax":0.00015, "ay":-0.00008, "alpha":0.0, "fx":[0.00355,0.00186,0.00088,0.00257], "fy":[0.00094,-0.00443,-0.00001,-0.00131]}, + {"t":1.79429, "x":4.08067, "y":2.72953, "heading":1.0472, "vx":0.23857, "vy":0.43929, "omega":0.0, "ax":-0.00011, "ay":0.00005, "alpha":0.0, "fx":[0.00888,0.00541,0.00345,-0.02411], "fy":[-0.00776,0.00645,0.00303,0.00107]}, + {"t":1.83883, "x":4.0913, "y":2.7491, "heading":1.0472, "vx":0.23857, "vy":0.43929, "omega":0.0, "ax":-2.49386, "ay":-4.5923, "alpha":0.0, "fx":[-36.45668,-36.49019,-36.50299,-36.4744], "fy":[-67.14433,-67.23093,-67.15961,-67.17629]}, + {"t":1.88337, "x":4.09945, "y":2.76411, "heading":1.0472, "vx":0.12749, "vy":0.23475, "omega":0.0, "ax":-2.86232, "ay":-5.27052, "alpha":0.00001, "fx":[-41.86492,-41.89393,-41.86196,-41.86346], "fy":[-77.09975,-77.10167,-77.09792,-77.09687]}, + {"t":1.92791, "x":4.10229, "y":2.76934, "heading":1.0472, "vx":0.0, "vy":0.0, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.0,0.0,0.0,0.0], "fy":[0.0,0.0,0.0,0.0]}], + "splits":[0] + }, + "events":[] +} diff --git a/src/main/deploy/pathplanner/autos/Choreo.auto b/src/main/deploy/pathplanner/autos/Choreo.auto new file mode 100644 index 00000000..19873726 --- /dev/null +++ b/src/main/deploy/pathplanner/autos/Choreo.auto @@ -0,0 +1,55 @@ +{ + "version": "2025.0", + "command": { + "type": "sequential", + "data": { + "commands": [ + { + "type": "path", + "data": { + "pathName": "R4 to Post E" + } + }, + { + "type": "path", + "data": { + "pathName": "Post E to S1" + } + }, + { + "type": "path", + "data": { + "pathName": "S1 to Post C" + } + }, + { + "type": "path", + "data": { + "pathName": "Post C to S1" + } + }, + { + "type": "path", + "data": { + "pathName": "S1 to Post D" + } + }, + { + "type": "path", + "data": { + "pathName": "Post D to S1" + } + }, + { + "type": "path", + "data": { + "pathName": "S1 to Post B" + } + } + ] + } + }, + "resetOdom": true, + "folder": null, + "choreoAuto": true +} \ No newline at end of file diff --git a/src/main/java/frc/robot/autochooser/chooser/AutoChooser2025.java b/src/main/java/frc/robot/autochooser/chooser/AutoChooser2025.java index 057baac6..e7610e82 100644 --- a/src/main/java/frc/robot/autochooser/chooser/AutoChooser2025.java +++ b/src/main/java/frc/robot/autochooser/chooser/AutoChooser2025.java @@ -52,11 +52,11 @@ public AutoChooser2025( new RobotCentricDrive(drivetrain, 0.25, 3)), Map.entry( new AutoEvent(AutoAction.TWO_PIECE_HIGH, FieldLocation.RIGHT), - new RightFourPieceFork( + new RightFourPieceFork2( elevator, coral, lightStrip, ElevatorPosition.LEVEL4, ElevatorPosition.LEVEL4)), Map.entry( new AutoEvent(AutoAction.TWO_PIECE_LOW, FieldLocation.RIGHT), - new RightFourPieceFork( + new RightFourPieceFork2( elevator, coral, lightStrip, ElevatorPosition.LEVEL2, ElevatorPosition.LEVEL4)), Map.entry( new AutoEvent(AutoAction.TWO_PIECE_HIGH, FieldLocation.LEFT), diff --git a/src/main/java/frc/robot/commands/autos/Paths.java b/src/main/java/frc/robot/commands/autos/Paths.java index 8dff19a0..38c2eaec 100644 --- a/src/main/java/frc/robot/commands/autos/Paths.java +++ b/src/main/java/frc/robot/commands/autos/Paths.java @@ -10,6 +10,7 @@ public class Paths { // Robot to Post private final Command robotOneToPostJCommand; private final Command robotFourToPostECommand; + private final Command robotFourToPostECommand2; private final Command robotTwoToPostHCommand; // Post to Station private final Command postJToStationOneCommand; @@ -17,6 +18,7 @@ public class Paths { private final Command postLToStationOneCommand; private final Command postHToStationOneCommand; private final Command postEToStationOneCommand; + private final Command postEToStationOneCommand2; private final Command postBToStationTwoCommand; private final Command postCToStationTwoCommand; private final Command postDToStationTwoCommand; @@ -26,6 +28,7 @@ public class Paths { private final Command stationOneToPostACommand; private final Command stationTwoToPostBCommand; private final Command stationTwoToPostCCommand; + private final Command stationTwoToPostCCommand2; private final Command stationTwoToPostDCommand; // Cross the Line Paths private final Command leftCrossTheLineCommand; @@ -48,6 +51,8 @@ public Paths() { AutoBuilder.followPath(PathPlannerPath.fromPathFile("Robot 4 to Post E").mirrorPath()); robotFourToPostECommand = AutoBuilder.followPath(PathPlannerPath.fromPathFile("Robot 4 to Post E")); + robotFourToPostECommand2 = + AutoBuilder.followPath(PathPlannerPath.fromChoreoTrajectory("R4 to Post E")); robotTwoToPostHCommand = AutoBuilder.followPath(PathPlannerPath.fromPathFile("Robot 2 to Post H")); // Post to Station Paths @@ -61,6 +66,8 @@ public Paths() { AutoBuilder.followPath(PathPlannerPath.fromPathFile("Post L to Station 1")); postEToStationOneCommand = AutoBuilder.followPath(PathPlannerPath.fromPathFile("Post E to Station 1")); + postEToStationOneCommand2 = + AutoBuilder.followPath(PathPlannerPath.fromChoreoTrajectory("Post E to S1")); postBToStationTwoCommand = AutoBuilder.followPath(PathPlannerPath.fromPathFile("Post B to Station 2")); postCToStationTwoCommand = @@ -78,6 +85,8 @@ public Paths() { AutoBuilder.followPath(PathPlannerPath.fromPathFile("Station 2 to Post B")); stationTwoToPostCCommand = AutoBuilder.followPath(PathPlannerPath.fromPathFile("Station 2 to Post C")); + stationTwoToPostCCommand2 = + AutoBuilder.followPath(PathPlannerPath.fromChoreoTrajectory("S1 to Post C")); stationTwoToPostDCommand = AutoBuilder.followPath(PathPlannerPath.fromPathFile("Station 2 to Post D")); // Cross The Line Paths @@ -102,6 +111,10 @@ public Command getRobotFourToPostECommand() { return robotFourToPostECommand; } + public Command getRobotFourToPostECommand2() { + return robotFourToPostECommand2; + } + public Command getRobotTwoToPostHCommand() { return robotTwoToPostHCommand; } @@ -123,6 +136,10 @@ public Command getPostEToStationOneCommand() { return postEToStationOneCommand; } + public Command getPostEToStationOneCommand2() { + return postEToStationOneCommand2; + } + public Command getPostBToStationTwoCommand() { return postBToStationTwoCommand; } @@ -152,6 +169,10 @@ public Command getStationTwoToPostCCommand() { return stationTwoToPostCCommand; } + public Command getStationTwoToPostCCommand2() { + return stationTwoToPostCCommand2; + } + public Command getStationTwoToPostDCommand() { return stationTwoToPostDCommand; } diff --git a/src/main/java/frc/robot/commands/autos/RightFourPieceFork2.java b/src/main/java/frc/robot/commands/autos/RightFourPieceFork2.java new file mode 100644 index 00000000..73184414 --- /dev/null +++ b/src/main/java/frc/robot/commands/autos/RightFourPieceFork2.java @@ -0,0 +1,71 @@ +package frc.robot.commands.autos; + +import frc.robot.commands.coral.ShootCoral; +import frc.robot.commands.elevator.SetElevatorStoredPosition; +import frc.robot.constants.ElevatorPosition; +import frc.robot.subsystems.coral.CoralSubsystem; +import frc.robot.subsystems.elevator.ElevatorSubsystem; +import frc.robot.subsystems.lightStrip.LightStrip; +import frc.robot.utils.logging.commands.LoggableCommandWrapper; +import frc.robot.utils.logging.commands.LoggableParallelCommandGroup; +import frc.robot.utils.logging.commands.LoggableSequentialCommandGroup; +import frc.robot.utils.logging.commands.LoggableWaitCommand; + +public class RightFourPieceFork2 extends LoggableSequentialCommandGroup { + public RightFourPieceFork2( + ElevatorSubsystem elevator, + CoralSubsystem coral, + LightStrip lightStrip, + ElevatorPosition scorePosition1, + ElevatorPosition scorePosition2) { + super( + new LoggableParallelCommandGroup( + new LoggableCommandWrapper(Paths.getInstance().getRobotFourToPostECommand2()), + new SetElevatorStoredPosition(scorePosition1, elevator, lightStrip), + new LoggableSequentialCommandGroup( + new LoggableWaitCommand(1.25), + new GoAndWaitAtElevatorPosition(elevator, scorePosition1))), + new ShootCoral(coral, 0.5), + new LoggableParallelCommandGroup( + new LoggableCommandWrapper( + Paths.getInstance().getPostEToStationOneCommand2()), // Post E to Station + new LightlessPickup(elevator, coral)), + new LoggableParallelCommandGroup( + new LoggableCommandWrapper( + Paths.getInstance().getStationTwoToPostCCommand2()), // Station 2 to Post B + new SetElevatorStoredPosition(scorePosition2, elevator, lightStrip), + new LoggableSequentialCommandGroup( + new LoggableWaitCommand(1.3), + new GoAndWaitAtElevatorPosition(elevator, scorePosition2))), + new GoAndWaitAtElevatorPosition( + elevator, + scorePosition2), // this line should be deleted after comp (I don't want to risk + // deleting it now) + new ShootCoral(coral, 0.5) + // new LoggableParallelCommandGroup( + // new LoggableCommandWrapper(Paths.getInstance().getPostCToStationTwoCommand()) + // // new LightlessPickup(elevator, coral) + // ), + // new LoggableParallelCommandGroup( + // new LoggableCommandWrapper(Paths.getInstance().getStationTwoToPostDCommand()) + // // new SetElevatorStoredPosition(ElevatorPosition.LEVEL4, elevator, + // // lightStrip) + // ), + // // new GoAndWaitAtElevatorPosition(elevator, ElevatorPosition.LEVEL4), + // // new ShootCoral(coral, Constants.CORAL_SHOOTER_SPEED), + // new LoggableParallelCommandGroup( + // new LoggableCommandWrapper( + // Paths.getInstance().getPostDToStationTwoCommand()) // Post C to Station 2 + // // new LightlessPickup(elevator, coral)), + // ), + // new LoggableParallelCommandGroup( + // new LoggableCommandWrapper( + // Paths.getInstance().getStationTwoToPostBCommand()) // Station 2 to Post D + // new SetElevatorStoredPosition( + // ElevatorPosition.LEVEL4, elevator, lightStrip) // Elevator to L4 + ); + // new GoAndWaitAtElevatorPosition(elevator, ElevatorPosition.LEVEL4), + // new ShootCoral(coral, Constants.CORAL_SHOOTER_SPEED), + // new ResetElevator(elevator)); + } +} diff --git a/src/main/java/frc/robot/constants/GameConstants.java b/src/main/java/frc/robot/constants/GameConstants.java index 19da1a17..877336aa 100644 --- a/src/main/java/frc/robot/constants/GameConstants.java +++ b/src/main/java/frc/robot/constants/GameConstants.java @@ -198,8 +198,8 @@ public enum Mode { // Drivetrain public static final double WHEEL_RADIUS = 0.0508; // TODO: change later - public static final double MAX_VELOCITY = 1.5; // 4 meters per second //TODO: change later - public static final double MAX_ANGULAR_SPEED = 6 * Math.PI; // TODO: change later + public static final double MAX_VELOCITY = 3.708; // 4 meters per second //TODO: change later + public static final double MAX_ANGULAR_SPEED = 8.427; // TODO: change later // Other public static final double GRAVITY = -9.81; diff --git a/src/main/java/frc/robot/utils/motor/MotorSimulator.java b/src/main/java/frc/robot/utils/motor/MotorSimulator.java index db9ccb08..8fd8e27f 100644 --- a/src/main/java/frc/robot/utils/motor/MotorSimulator.java +++ b/src/main/java/frc/robot/utils/motor/MotorSimulator.java @@ -26,7 +26,7 @@ public MotorSimulator(SparkMax motor, LoggedMechanismLigament2d ligament) { this.ligament = ligament; encoderSim = motorSim.getRelativeEncoderSim(); - encoderSim.setPositionConversionFactor(1.0); + // encoderSim.setPositionConversionFactor(1.0); encoderSim.setPosition(0.0); encoderSim.setInverted(false); } diff --git a/src/main/java/frc/robot/utils/simulation/ArmSimulator.java b/src/main/java/frc/robot/utils/simulation/ArmSimulator.java index 0356c88b..46402787 100644 --- a/src/main/java/frc/robot/utils/simulation/ArmSimulator.java +++ b/src/main/java/frc/robot/utils/simulation/ArmSimulator.java @@ -61,7 +61,7 @@ public ArmSimulator(SparkMax motor, ArmParameters params, LoggedMechanismLigamen encoderSim = motorSim.getRelativeEncoderSim(); forwardSwitchSim = motorSim.getForwardLimitSwitchSim(); reverseSwitchSim = motorSim.getReverseLimitSwitchSim(); - encoderSim.setPositionConversionFactor(1.0); + // encoderSim.setPositionConversionFactor(1.0); encoderSim.setPosition(0.0); encoderSim.setInverted(false); } diff --git a/src/main/java/frc/robot/utils/simulation/ClimberSimulator.java b/src/main/java/frc/robot/utils/simulation/ClimberSimulator.java index 66897b89..b7106e0a 100644 --- a/src/main/java/frc/robot/utils/simulation/ClimberSimulator.java +++ b/src/main/java/frc/robot/utils/simulation/ClimberSimulator.java @@ -52,7 +52,7 @@ public ClimberSimulator(SparkMax motor, LoggedMechanismLigament2d ligament) { this.ligament = ligament; encoderSim = motorSim.getRelativeEncoderSim(); - encoderSim.setPositionConversionFactor(1.0); + // encoderSim.setPositionConversionFactor(1.0); encoderSim.setPosition(0.0); encoderSim.setInverted(false); } diff --git a/src/main/java/frc/robot/utils/simulation/IntakeSimulator.java b/src/main/java/frc/robot/utils/simulation/IntakeSimulator.java index 73468e77..825c32d6 100644 --- a/src/main/java/frc/robot/utils/simulation/IntakeSimulator.java +++ b/src/main/java/frc/robot/utils/simulation/IntakeSimulator.java @@ -57,7 +57,7 @@ public IntakeSimulator(SparkMax motor, LoggedMechanismLigament2d ligament) { this.ligament = ligament; encoderSim = motorSim.getRelativeEncoderSim(); - encoderSim.setPositionConversionFactor(1.0); + // encoderSim.setPositionConversionFactor(1.0); encoderSim.setPosition(0.0); encoderSim.setInverted(false); } diff --git a/vendordeps/AdvantageKit.json b/vendordeps/AdvantageKit.json index fa81b2fc..2707c2b7 100644 --- a/vendordeps/AdvantageKit.json +++ b/vendordeps/AdvantageKit.json @@ -1,7 +1,7 @@ { "fileName": "AdvantageKit.json", "name": "AdvantageKit", - "version": "4.1.0", + "version": "4.1.2", "uuid": "d820cc26-74e3-11ec-90d6-0242ac120003", "frcYear": "2025", "mavenUrls": [ @@ -12,14 +12,14 @@ { "groupId": "org.littletonrobotics.akit", "artifactId": "akit-java", - "version": "4.1.0" + "version": "4.1.2" } ], "jniDependencies": [ { "groupId": "org.littletonrobotics.akit", "artifactId": "akit-wpilibio", - "version": "4.1.0", + "version": "4.1.2", "skipInvalidPlatforms": false, "isJar": false, "validPlatforms": [ diff --git a/vendordeps/ChoreoLib-2025.0.3.json b/vendordeps/ChoreoLib-2025.0.3.json new file mode 100644 index 00000000..17b5a9fa --- /dev/null +++ b/vendordeps/ChoreoLib-2025.0.3.json @@ -0,0 +1,44 @@ +{ + "fileName": "ChoreoLib-2025.0.3.json", + "name": "ChoreoLib", + "version": "2025.0.3", + "uuid": "b5e23f0a-dac9-4ad2-8dd6-02767c520aca", + "frcYear": "2025", + "mavenUrls": [ + "https://lib.choreo.autos/dep", + "https://repo1.maven.org/maven2" + ], + "jsonUrl": "https://lib.choreo.autos/dep/ChoreoLib2025.json", + "javaDependencies": [ + { + "groupId": "choreo", + "artifactId": "ChoreoLib-java", + "version": "2025.0.3" + }, + { + "groupId": "com.google.code.gson", + "artifactId": "gson", + "version": "2.11.0" + } + ], + "jniDependencies": [], + "cppDependencies": [ + { + "groupId": "choreo", + "artifactId": "ChoreoLib-cpp", + "version": "2025.0.3", + "libName": "ChoreoLib", + "headerClassifier": "headers", + "sharedLibrary": false, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "windowsx86-64", + "linuxx86-64", + "osxuniversal", + "linuxathena", + "linuxarm32", + "linuxarm64" + ] + } + ] +} diff --git a/vendordeps/PathplannerLib-2025.2.3.json b/vendordeps/PathplannerLib-2025.2.7.json similarity index 87% rename from vendordeps/PathplannerLib-2025.2.3.json rename to vendordeps/PathplannerLib-2025.2.7.json index 8d2727f6..d0b69393 100644 --- a/vendordeps/PathplannerLib-2025.2.3.json +++ b/vendordeps/PathplannerLib-2025.2.7.json @@ -1,7 +1,7 @@ { - "fileName": "PathplannerLib-2025.2.3.json", + "fileName": "PathplannerLib-2025.2.7.json", "name": "PathplannerLib", - "version": "2025.2.3", + "version": "2025.2.7", "uuid": "1b42324f-17c6-4875-8e77-1c312bc8c786", "frcYear": "2025", "mavenUrls": [ @@ -12,7 +12,7 @@ { "groupId": "com.pathplanner.lib", "artifactId": "PathplannerLib-java", - "version": "2025.2.3" + "version": "2025.2.7" } ], "jniDependencies": [], @@ -20,7 +20,7 @@ { "groupId": "com.pathplanner.lib", "artifactId": "PathplannerLib-cpp", - "version": "2025.2.3", + "version": "2025.2.7", "libName": "PathplannerLib", "headerClassifier": "headers", "sharedLibrary": false, diff --git a/vendordeps/Phoenix6-25.2.2.json b/vendordeps/Phoenix6-frc2025-latest.json similarity index 80% rename from vendordeps/Phoenix6-25.2.2.json rename to vendordeps/Phoenix6-frc2025-latest.json index 39ae6c5b..ce44ce4f 100644 --- a/vendordeps/Phoenix6-25.2.2.json +++ b/vendordeps/Phoenix6-frc2025-latest.json @@ -1,7 +1,7 @@ { - "fileName": "Phoenix6-25.2.2.json", + "fileName": "Phoenix6-frc2025-latest.json", "name": "CTRE-Phoenix (v6)", - "version": "25.2.2", + "version": "25.4.0", "frcYear": "2025", "uuid": "e995de00-2c64-4df5-8831-c1441420ff19", "mavenUrls": [ @@ -19,14 +19,14 @@ { "groupId": "com.ctre.phoenix6", "artifactId": "wpiapi-java", - "version": "25.2.2" + "version": "25.4.0" } ], "jniDependencies": [ { "groupId": "com.ctre.phoenix6", "artifactId": "api-cpp", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -40,7 +40,7 @@ { "groupId": "com.ctre.phoenix6", "artifactId": "tools", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -54,7 +54,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "api-cpp-sim", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -68,7 +68,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "tools-sim", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -82,7 +82,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simTalonSRX", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -96,7 +96,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simVictorSPX", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -110,7 +110,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simPigeonIMU", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -124,7 +124,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simCANCoder", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -138,7 +138,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simProTalonFX", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -152,7 +152,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simProTalonFXS", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -166,7 +166,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simProCANcoder", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -180,7 +180,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simProPigeon2", - "version": "25.2.2", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -194,7 +194,35 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simProCANrange", - "version": "25.2.2", + "version": "25.4.0", + "isJar": false, + "skipInvalidPlatforms": true, + "validPlatforms": [ + "windowsx86-64", + "linuxx86-64", + "linuxarm64", + "osxuniversal" + ], + "simMode": "swsim" + }, + { + "groupId": "com.ctre.phoenix6.sim", + "artifactId": "simProCANdi", + "version": "25.4.0", + "isJar": false, + "skipInvalidPlatforms": true, + "validPlatforms": [ + "windowsx86-64", + "linuxx86-64", + "linuxarm64", + "osxuniversal" + ], + "simMode": "swsim" + }, + { + "groupId": "com.ctre.phoenix6.sim", + "artifactId": "simProCANdle", + "version": "25.4.0", "isJar": false, "skipInvalidPlatforms": true, "validPlatforms": [ @@ -210,7 +238,7 @@ { "groupId": "com.ctre.phoenix6", "artifactId": "wpiapi-cpp", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_Phoenix6_WPI", "headerClassifier": "headers", "sharedLibrary": true, @@ -226,7 +254,7 @@ { "groupId": "com.ctre.phoenix6", "artifactId": "tools", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_PhoenixTools", "headerClassifier": "headers", "sharedLibrary": true, @@ -242,7 +270,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "wpiapi-cpp-sim", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_Phoenix6_WPISim", "headerClassifier": "headers", "sharedLibrary": true, @@ -258,7 +286,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "tools-sim", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_PhoenixTools_Sim", "headerClassifier": "headers", "sharedLibrary": true, @@ -274,7 +302,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simTalonSRX", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_SimTalonSRX", "headerClassifier": "headers", "sharedLibrary": true, @@ -290,7 +318,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simVictorSPX", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_SimVictorSPX", "headerClassifier": "headers", "sharedLibrary": true, @@ -306,7 +334,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simPigeonIMU", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_SimPigeonIMU", "headerClassifier": "headers", "sharedLibrary": true, @@ -322,7 +350,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simCANCoder", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_SimCANCoder", "headerClassifier": "headers", "sharedLibrary": true, @@ -338,7 +366,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simProTalonFX", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_SimProTalonFX", "headerClassifier": "headers", "sharedLibrary": true, @@ -354,7 +382,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simProTalonFXS", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_SimProTalonFXS", "headerClassifier": "headers", "sharedLibrary": true, @@ -370,7 +398,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simProCANcoder", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_SimProCANcoder", "headerClassifier": "headers", "sharedLibrary": true, @@ -386,7 +414,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simProPigeon2", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_SimProPigeon2", "headerClassifier": "headers", "sharedLibrary": true, @@ -402,7 +430,7 @@ { "groupId": "com.ctre.phoenix6.sim", "artifactId": "simProCANrange", - "version": "25.2.2", + "version": "25.4.0", "libName": "CTRE_SimProCANrange", "headerClassifier": "headers", "sharedLibrary": true, @@ -414,6 +442,38 @@ "osxuniversal" ], "simMode": "swsim" + }, + { + "groupId": "com.ctre.phoenix6.sim", + "artifactId": "simProCANdi", + "version": "25.4.0", + "libName": "CTRE_SimProCANdi", + "headerClassifier": "headers", + "sharedLibrary": true, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "windowsx86-64", + "linuxx86-64", + "linuxarm64", + "osxuniversal" + ], + "simMode": "swsim" + }, + { + "groupId": "com.ctre.phoenix6.sim", + "artifactId": "simProCANdle", + "version": "25.4.0", + "libName": "CTRE_SimProCANdle", + "headerClassifier": "headers", + "sharedLibrary": true, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "windowsx86-64", + "linuxx86-64", + "linuxarm64", + "osxuniversal" + ], + "simMode": "swsim" } ] } diff --git a/vendordeps/REVLib.json b/vendordeps/REVLib.json index 9658c4a6..459a62f7 100644 --- a/vendordeps/REVLib.json +++ b/vendordeps/REVLib.json @@ -1,7 +1,7 @@ { "fileName": "REVLib.json", "name": "REVLib", - "version": "2025.0.2", + "version": "2025.0.3", "frcYear": "2025", "uuid": "3f48eb8c-50fe-43a6-9cb7-44c86353c4cb", "mavenUrls": [ @@ -12,14 +12,14 @@ { "groupId": "com.revrobotics.frc", "artifactId": "REVLib-java", - "version": "2025.0.2" + "version": "2025.0.3" } ], "jniDependencies": [ { "groupId": "com.revrobotics.frc", "artifactId": "REVLib-driver", - "version": "2025.0.2", + "version": "2025.0.3", "skipInvalidPlatforms": true, "isJar": false, "validPlatforms": [ @@ -36,7 +36,7 @@ { "groupId": "com.revrobotics.frc", "artifactId": "REVLib-cpp", - "version": "2025.0.2", + "version": "2025.0.3", "libName": "REVLib", "headerClassifier": "headers", "sharedLibrary": false, @@ -53,7 +53,7 @@ { "groupId": "com.revrobotics.frc", "artifactId": "REVLib-driver", - "version": "2025.0.2", + "version": "2025.0.3", "libName": "REVLibDriver", "headerClassifier": "headers", "sharedLibrary": false, diff --git a/vendordeps/maple-sim.json b/vendordeps/maple-sim.json index 68ae20d5..65f44133 100644 --- a/vendordeps/maple-sim.json +++ b/vendordeps/maple-sim.json @@ -1,7 +1,7 @@ { "fileName": "maple-sim.json", "name": "maplesim", - "version": "0.3.8", + "version": "0.3.14", "frcYear": "2025", "uuid": "c39481e8-4a63-4a4c-9df6-48d91e4da37b", "mavenUrls": [ @@ -13,7 +13,7 @@ { "groupId": "org.ironmaple", "artifactId": "maplesim-java", - "version": "0.3.8" + "version": "0.3.14" }, { "groupId": "org.dyn4j",