ezmsg-kinematics 0.2__0-py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ from . import min_jerk as min_jerk
2
+ from .__version__ import __version__ as __version__
@@ -0,0 +1,24 @@
1
+ # file generated by vcs-versioning
2
+ # don't change, don't track in version control
3
+ from __future__ import annotations
4
+
5
+ __all__ = [
6
+ "__version__",
7
+ "__version_tuple__",
8
+ "version",
9
+ "version_tuple",
10
+ "__commit_id__",
11
+ "commit_id",
12
+ ]
13
+
14
+ version: str
15
+ __version__: str
16
+ __version_tuple__: tuple[int | str, ...]
17
+ version_tuple: tuple[int | str, ...]
18
+ commit_id: str | None
19
+ __commit_id__: str | None
20
+
21
+ __version__ = version = '0.2.0'
22
+ __version_tuple__ = version_tuple = (0, 2, 0)
23
+
24
+ __commit_id__ = commit_id = None
@@ -0,0 +1,450 @@
1
+ """Minimum-jerk reach generator with continuous re-planning.
2
+
3
+ Stdlib-only, scalar in / scalar out, dataclass-backed state. Deliberately free
4
+ of any framework dependency so the same generator can run inside a streaming
5
+ graph, inside a task's render loop, or in an offline analysis, and produce the
6
+ same numbers in all three.
7
+
8
+ The classic minimum-jerk reach is a function of time: over a duration ``T``,
9
+ position follows ``p(t) = A + s(τ)·(B - A)`` with ``τ = t/T`` and
10
+ ``s(τ) = 10τ³ - 15τ⁴ + 6τ⁵``, giving the familiar symmetric bell-shaped speed
11
+ profile. That is the whole story when the generator is what moves the effector.
12
+ It is not, when something else is also pushing -- a decoder, a participant, a
13
+ disturbance -- because the effector then ends up somewhere the plan never
14
+ predicted, and a plan that only knows about elapsed time has nothing to say
15
+ about it.
16
+
17
+ This generator runs a reach in two phases.
18
+
19
+ **Ballistic.** For ``ballistic_duration`` after the reach starts, the command is
20
+ pure feedforward: the planned min-jerk velocity at the elapsed time, along the
21
+ original start→target axis, regardless of where the effector actually is. Real
22
+ reaches begin open-loop, and it means the launch command is decisive and
23
+ identical every time -- valuable if something downstream has to learn it.
24
+
25
+ **Re-planning.** After that, every step re-solves the minimum-jerk problem from
26
+ where the effector *is* to the target, and emits the beginning of that fresh
27
+ solution. The boundary conditions are the measured position, the current
28
+ commanded velocity and acceleration, and rest at the target.
29
+
30
+ Re-planning is what makes the response to a disturbance fall out rather than
31
+ have to be designed:
32
+
33
+ * **Undisturbed, it changes nothing.** The tail of a minimum-jerk trajectory is
34
+ itself the minimum-jerk solution for the remaining problem, so re-planning
35
+ from a point on your own trajectory reproduces it exactly. An effector that
36
+ was never pushed follows the original reach, including its deceleration onto
37
+ the target.
38
+ * **Disturbed, it compensates partially, and by the right amount.** A fresh plan
39
+ cannot contain a velocity discontinuity, so it curves back toward the target
40
+ rather than snapping to the new bearing. How hard it corrects is set by how
41
+ much time is left, not by a blend weight anyone has to tune.
42
+ * **Speed and turning trade off on their own.** A large heading error forces the
43
+ new polynomial to spend its early effort turning, which suppresses forward
44
+ speed for as long as the turn takes.
45
+ * **It always eases in.** Rest at the target is a boundary condition of every
46
+ re-plan, so there is no approach speed to tune and no overshoot to damp.
47
+
48
+ The remaining horizon is floored at ``min_horizon``. Without a floor, an
49
+ effector held away from the target as its deadline runs out demands unbounded
50
+ speed -- the time-to-go singularity. The floor costs exactness only in the final
51
+ ``min_horizon`` of an undisturbed reach, where everything involved is already
52
+ near zero. ``max_speed_ratio`` clamps the command as a second line of defence.
53
+
54
+ Time is passed in rather than read from a clock, so a caller can drive this from
55
+ whatever timebase its data carries -- a stream's sample timestamps, a shared
56
+ network clock, or a recording being replayed offline. Two processes given the
57
+ same reach epoch and the same timestamps produce the same commands.
58
+
59
+ **The command and the nominal reach are two different signals.** :func:`step` is
60
+ the command: ballistic, then re-planned against wherever the effector actually
61
+ is. :func:`plan_position` and :func:`plan_velocity` are the reach as planned at
62
+ the cue, on the original axis, unconditioned on what happened. They agree
63
+ exactly through the ballistic phase and separate afterwards by however much
64
+ re-planning had to correct. A caller recording both gets the trajectory that was
65
+ asked for *and* the one that was commanded, and their difference is the
66
+ effector's tracking error -- none of which is recoverable from the command
67
+ alone.
68
+
69
+ Typical use::
70
+
71
+ reach = MinJerkReach()
72
+ begin_reach(reach, cue_time, *effector_xy, *target_xy, peak_speed=800.0)
73
+ while reaching:
74
+ vx, vy = step(reach, now, *effector_xy, movement_allowed=True)
75
+ """
76
+
77
+ from __future__ import annotations
78
+
79
+ import math
80
+ from dataclasses import dataclass
81
+ from enum import Enum
82
+
83
+ __all__ = [
84
+ "MinJerkReach",
85
+ "ReplanSeed",
86
+ "begin_reach",
87
+ "plan_position",
88
+ "plan_velocity",
89
+ "reset",
90
+ "step",
91
+ ]
92
+
93
+
94
+ class ReplanSeed(str, Enum):
95
+ """Which velocity a re-plan treats as the effector's current velocity.
96
+
97
+ This is a modelling choice, not a tuning knob, and it matters whenever
98
+ something other than this generator is moving the effector.
99
+
100
+ ``COMMANDED`` continues from the velocity this generator last asked for. The
101
+ plan stays continuous with its own intent and treats the effector's position
102
+ as feedback about where that intent ended up. Appropriate when the output
103
+ represents what someone or something *wants* -- a disturbance moved the
104
+ effector, but it did not move the intent. This is the default.
105
+
106
+ ``MEASURED`` continues from the effector's observed velocity, differentiated
107
+ from successive positions. The plan stays continuous with what is physically
108
+ happening. Appropriate when the output drives the effector directly and you
109
+ want the generator to own the real dynamics. Noisier, and if the output is
110
+ being used as a training label it will carry whatever error the disturbance
111
+ injected.
112
+ """
113
+
114
+ COMMANDED = "commanded"
115
+ MEASURED = "measured"
116
+
117
+
118
+ @dataclass
119
+ class MinJerkReach:
120
+ """State for one minimum-jerk reach.
121
+
122
+ Lifecycle:
123
+ * :func:`begin_reach` starts (or restarts) a reach. Call it whenever
124
+ movement becomes allowed and whenever the target moves mid-reach.
125
+ * :func:`step` returns a velocity for the current time and effector
126
+ position. While movement is gated off, pass ``movement_allowed=False``
127
+ -- the command goes to zero and the reach waits.
128
+ * :func:`reset` is optional; it marks the reach inactive so a later
129
+ :func:`step` returns zero even with ``movement_allowed=True``.
130
+
131
+ Fields:
132
+ t0: timestamp the reach started, in the caller's timebase.
133
+ start_x, start_y: effector position captured at ``begin_reach``.
134
+ target_x, target_y: target captured at ``begin_reach``.
135
+ D: straight-line distance from start to target.
136
+ T: nominal reach duration. Chosen so peak speed equals ``peak_speed``.
137
+ ballistic_duration: how long the feedforward phase lasts.
138
+ min_horizon: floor on the remaining time a re-plan is given.
139
+ max_speed: absolute clamp on commanded speed. 0 disables.
140
+ seed: which velocity a re-plan continues from.
141
+ cmd_vx, cmd_vy: velocity last commanded -- the plan's own motor state.
142
+ cmd_ax, cmd_ay: acceleration last commanded.
143
+ last_x, last_y: effector position at the previous step, for the
144
+ ``MEASURED`` seed.
145
+ t_prev: timestamp of the previous step.
146
+ active: False before ``begin_reach`` or after ``reset``.
147
+ """
148
+
149
+ t0: float = 0.0
150
+ start_x: float = 0.0
151
+ start_y: float = 0.0
152
+ target_x: float = 0.0
153
+ target_y: float = 0.0
154
+ D: float = 0.0
155
+ T: float = 0.0
156
+ ballistic_duration: float = 0.5
157
+ min_horizon: float = 0.3
158
+ max_speed: float = 0.0
159
+ seed: ReplanSeed = ReplanSeed.COMMANDED
160
+ cmd_vx: float = 0.0
161
+ cmd_vy: float = 0.0
162
+ cmd_ax: float = 0.0
163
+ cmd_ay: float = 0.0
164
+ last_x: float = 0.0
165
+ last_y: float = 0.0
166
+ t_prev: float = 0.0
167
+ active: bool = False
168
+
169
+
170
+ def begin_reach(
171
+ state: MinJerkReach,
172
+ t0: float,
173
+ start_x: float,
174
+ start_y: float,
175
+ target_x: float,
176
+ target_y: float,
177
+ peak_speed: float,
178
+ *,
179
+ ballistic_duration: float = 0.5,
180
+ min_horizon: float = 0.3,
181
+ max_speed_ratio: float = 2.0,
182
+ seed: ReplanSeed = ReplanSeed.COMMANDED,
183
+ ) -> None:
184
+ """(Re)initialize ``state`` for a reach from a start point to a target.
185
+
186
+ ``t0`` is when the reach begins, in whatever timebase the caller passes to
187
+ :func:`step`. Anchoring to a timestamp the caller already has -- a cue
188
+ event's own arrival time, say -- rather than to a clock read here is what
189
+ lets two processes agree without exchanging state.
190
+
191
+ ``peak_speed`` is the peak of the planned velocity bell, in the caller's
192
+ distance unit per second. The duration is derived from it and the distance,
193
+ so a longer reach takes proportionally longer rather than going faster.
194
+
195
+ ``ballistic_duration`` is how long the command ignores the effector's
196
+ position. 0 re-plans from the first step, which is well defined but gives up
197
+ the identical, decisive launch. Values at or beyond the reach's own duration
198
+ make it purely feedforward.
199
+
200
+ ``min_horizon`` floors the time a re-plan is allowed to assume remains.
201
+ ``max_speed_ratio`` clamps commanded speed to that multiple of
202
+ ``peak_speed``; 0 disables the clamp. Both guard the same failure -- an
203
+ effector held away from the target while its deadline expires.
204
+
205
+ A degenerate reach -- zero distance, or a non-positive ``peak_speed`` --
206
+ leaves the state inactive rather than raising, so a caller driving this from
207
+ live events need not pre-filter a target that coincides with the effector.
208
+ """
209
+ state.t0 = float(t0)
210
+ state.t_prev = float(t0)
211
+ state.start_x = float(start_x)
212
+ state.start_y = float(start_y)
213
+ state.target_x = float(target_x)
214
+ state.target_y = float(target_y)
215
+ state.last_x = state.start_x
216
+ state.last_y = state.start_y
217
+
218
+ dx = state.target_x - state.start_x
219
+ dy = state.target_y - state.start_y
220
+ state.D = math.hypot(dx, dy)
221
+
222
+ # The velocity bell peaks at 1.875 * D / T, so this choice of T makes
223
+ # peak_speed the peak.
224
+ if peak_speed > 0.0 and state.D > 0.0:
225
+ state.T = 1.875 * state.D / float(peak_speed)
226
+ else:
227
+ state.T = 0.0
228
+
229
+ state.ballistic_duration = max(0.0, float(ballistic_duration))
230
+ state.min_horizon = max(1e-6, float(min_horizon))
231
+ state.max_speed = max(0.0, float(max_speed_ratio)) * float(peak_speed)
232
+ state.seed = seed
233
+
234
+ # A reach starts from rest. Re-planning later continues from whatever the
235
+ # ballistic phase handed over, but the plan's motor state begins at zero.
236
+ state.cmd_vx = 0.0
237
+ state.cmd_vy = 0.0
238
+ state.cmd_ax = 0.0
239
+ state.cmd_ay = 0.0
240
+
241
+ state.active = state.D > 0.0 and state.T > 0.0
242
+
243
+
244
+ def reset(state: MinJerkReach) -> None:
245
+ """Mark the reach inactive; subsequent :func:`step` calls return zero."""
246
+ state.active = False
247
+
248
+
249
+ def _quintic_to_rest(p0: float, v0: float, a0: float, pf: float, T: float) -> tuple[float, float, float]:
250
+ """Cubic..quintic coefficients taking ``(p0, v0, a0)`` to ``(pf, 0, 0)`` in ``T``.
251
+
252
+ The minimum-jerk solution for fixed position/velocity/acceleration at both
253
+ ends is the unique quintic satisfying them. With ``v0 = a0 = 0`` this
254
+ reduces to the familiar ``10τ³ - 15τ⁴ + 6τ⁵``.
255
+ """
256
+ T2 = T * T
257
+ T3 = T2 * T
258
+ T4 = T2 * T2
259
+ T5 = T4 * T
260
+
261
+ # Residuals: what the already-determined terms fail to deliver at t = T.
262
+ P = pf - p0 - v0 * T - 0.5 * a0 * T2
263
+ V = -v0 - a0 * T
264
+ A = -a0
265
+
266
+ c3 = (10.0 * P - 4.0 * V * T + 0.5 * A * T2) / T3
267
+ c4 = (-15.0 * P + 7.0 * V * T - A * T2) / T4
268
+ c5 = (6.0 * P - 3.0 * V * T + 0.5 * A * T2) / T5
269
+ return c3, c4, c5
270
+
271
+
272
+ def _eval_quintic(v0: float, a0: float, c3: float, c4: float, c5: float, t: float) -> tuple[float, float]:
273
+ """Velocity and acceleration of the plan at time ``t`` from its start."""
274
+ t2 = t * t
275
+ t3 = t2 * t
276
+ t4 = t2 * t2
277
+ v = v0 + a0 * t + 3.0 * c3 * t2 + 4.0 * c4 * t3 + 5.0 * c5 * t4
278
+ a = a0 + 6.0 * c3 * t + 12.0 * c4 * t2 + 20.0 * c5 * t3
279
+ return v, a
280
+
281
+
282
+ def _ballistic_command(state: MinJerkReach, elapsed: float) -> tuple[float, float, float, float]:
283
+ """Planned velocity and acceleration at ``elapsed``, along the original axis."""
284
+ tau = elapsed / state.T
285
+ if tau < 0.0:
286
+ tau = 0.0
287
+ elif tau > 1.0:
288
+ tau = 1.0
289
+
290
+ # s'(τ) = 30τ²(1-τ)², s''(τ) = 60τ - 180τ² + 120τ³
291
+ one_minus = 1.0 - tau
292
+ ds = 30.0 * tau * tau * one_minus * one_minus
293
+ dds = 60.0 * tau - 180.0 * tau * tau + 120.0 * tau * tau * tau
294
+
295
+ ux = (state.target_x - state.start_x) / state.D
296
+ uy = (state.target_y - state.start_y) / state.D
297
+ speed = state.D * ds / state.T
298
+ accel = state.D * dds / (state.T * state.T)
299
+ return speed * ux, speed * uy, accel * ux, accel * uy
300
+
301
+
302
+ def plan_position(state: MinJerkReach, t: float) -> tuple[float, float] | None:
303
+ """Nominal position of the reach at time ``t``: ``A + s(τ)·(B - A)``.
304
+
305
+ The reach as *planned at the cue*, on the original start→target axis,
306
+ independent of where the effector actually went. It is the exact
307
+ antiderivative of the ballistic command, so during the ballistic phase
308
+ ``d/dt plan_position`` is :func:`step`'s output to machine precision. After
309
+ that phase the two separate, and the difference is precisely the correction
310
+ re-planning applied -- which is the useful part, not an inconsistency.
311
+
312
+ Publish this alongside :func:`step` when something downstream needs the
313
+ reach's ground truth: the trajectory the task asked for, against which the
314
+ effector's actual path is an error signal. Recovering it from the commanded
315
+ velocity is not equivalent -- integrating a command that re-plans against a
316
+ lagging effector runs past the target and keeps going, because each step's
317
+ velocity is anchored to the effector rather than to the integral.
318
+
319
+ ``τ`` is clamped to ``[0, 1]``, so a time before the cue gives the start
320
+ point and a time past the nominal duration gives the target.
321
+
322
+ Returns ``None`` when no reach is active, rather than an origin that is
323
+ indistinguishable from a real coordinate. :func:`step` can return ``(0, 0)``
324
+ for "no command" because rest is the unambiguous zero of a velocity;
325
+ position has no such zero. A caller wanting an unbroken signal should
326
+ substitute the effector's own position -- with no reach, where it is is
327
+ where it should be.
328
+
329
+ Note that the nominal trajectory is a function of elapsed wall time. A
330
+ caller that gates movement mid-reach should :func:`reset` and re-plan, not
331
+ expect this to pause.
332
+ """
333
+ if not state.active or state.T <= 0.0:
334
+ return None
335
+
336
+ tau = (float(t) - state.t0) / state.T
337
+ if tau < 0.0:
338
+ tau = 0.0
339
+ elif tau > 1.0:
340
+ tau = 1.0
341
+
342
+ s = tau * tau * tau * (10.0 - 15.0 * tau + 6.0 * tau * tau)
343
+ return (
344
+ state.start_x + s * (state.target_x - state.start_x),
345
+ state.start_y + s * (state.target_y - state.start_y),
346
+ )
347
+
348
+
349
+ def plan_velocity(state: MinJerkReach, t: float) -> tuple[float, float]:
350
+ """Nominal velocity of the reach at time ``t`` -- the derivative of
351
+ :func:`plan_position`.
352
+
353
+ This is the ballistic command, evaluated for the whole reach rather than
354
+ only for ``ballistic_duration``. Use it when you want the planned reach
355
+ unconditioned on what the effector did; use :func:`step` when you want the
356
+ command to actually issue, which re-plans once the ballistic phase ends.
357
+
358
+ Returns ``(0, 0)`` for an inactive reach, matching :func:`step` -- unlike
359
+ :func:`plan_position`, which has no unambiguous zero to return.
360
+ """
361
+ if not state.active or state.T <= 0.0:
362
+ return 0.0, 0.0
363
+ vx, vy, _, _ = _ballistic_command(state, float(t) - state.t0)
364
+ return vx, vy
365
+
366
+
367
+ def step(
368
+ state: MinJerkReach,
369
+ t: float,
370
+ pos_x: float,
371
+ pos_y: float,
372
+ movement_allowed: bool,
373
+ ) -> tuple[float, float]:
374
+ """Velocity ``(vx, vy)`` for an effector at ``(pos_x, pos_y)`` at time ``t``.
375
+
376
+ ``t`` is in the same timebase as the ``t0`` given to :func:`begin_reach`.
377
+
378
+ Returns ``(0.0, 0.0)`` when movement is not allowed or no reach is active.
379
+ While movement is disallowed the command is held at rest and the clock
380
+ reference is carried forward, so resuming does not produce a step
381
+ proportional to how long the pause lasted.
382
+ """
383
+ if not movement_allowed or not state.active or state.T <= 0.0:
384
+ if state.active:
385
+ # Commanded rest, not merely "no output": whatever the effector does
386
+ # while gated off, the plan is not asking for it.
387
+ state.cmd_vx = state.cmd_vy = 0.0
388
+ state.cmd_ax = state.cmd_ay = 0.0
389
+ state.t_prev = float(t)
390
+ state.last_x = float(pos_x)
391
+ state.last_y = float(pos_y)
392
+ return 0.0, 0.0
393
+
394
+ elapsed = float(t) - state.t0
395
+ if elapsed < 0.0:
396
+ # A timestamp before the reach began; nothing has started yet.
397
+ return 0.0, 0.0
398
+
399
+ if elapsed < state.ballistic_duration:
400
+ vx, vy, ax, ay = _ballistic_command(state, elapsed)
401
+ state.cmd_vx, state.cmd_vy = vx, vy
402
+ state.cmd_ax, state.cmd_ay = ax, ay
403
+ state.t_prev = float(t)
404
+ state.last_x, state.last_y = float(pos_x), float(pos_y)
405
+ return vx, vy
406
+
407
+ dt = float(t) - state.t_prev
408
+ if dt <= 0.0:
409
+ # Repeated or out-of-order timestamp: re-planning over a zero interval
410
+ # is undefined, and the previous command is still the best answer.
411
+ return state.cmd_vx, state.cmd_vy
412
+
413
+ if state.seed is ReplanSeed.MEASURED:
414
+ seed_vx = (float(pos_x) - state.last_x) / dt
415
+ seed_vy = (float(pos_y) - state.last_y) / dt
416
+ else:
417
+ seed_vx, seed_vy = state.cmd_vx, state.cmd_vy
418
+
419
+ # Floored so a stalled effector cannot demand unbounded speed as its
420
+ # deadline expires.
421
+ horizon = state.T - elapsed
422
+ if horizon < state.min_horizon:
423
+ horizon = state.min_horizon
424
+
425
+ # Solved per axis: with rest at both ends this is the straight-line reach,
426
+ # and with a nonzero starting velocity it curves, which is exactly the
427
+ # partial compensation a disturbance should get.
428
+ cx3, cx4, cx5 = _quintic_to_rest(float(pos_x), seed_vx, state.cmd_ax, state.target_x, horizon)
429
+ cy3, cy4, cy5 = _quintic_to_rest(float(pos_y), seed_vy, state.cmd_ay, state.target_y, horizon)
430
+
431
+ # Advance one control step along the fresh plan. Evaluating at 0 would just
432
+ # return the seed velocity, which is why re-planning has to step forward.
433
+ ahead = dt if dt < horizon else horizon
434
+ vx, ax = _eval_quintic(seed_vx, state.cmd_ax, cx3, cx4, cx5, ahead)
435
+ vy, ay = _eval_quintic(seed_vy, state.cmd_ay, cy3, cy4, cy5, ahead)
436
+
437
+ if state.max_speed > 0.0:
438
+ speed = math.hypot(vx, vy)
439
+ if speed > state.max_speed:
440
+ scale = state.max_speed / speed
441
+ vx *= scale
442
+ vy *= scale
443
+ ax *= scale
444
+ ay *= scale
445
+
446
+ state.cmd_vx, state.cmd_vy = vx, vy
447
+ state.cmd_ax, state.cmd_ay = ax, ay
448
+ state.t_prev = float(t)
449
+ state.last_x, state.last_y = float(pos_x), float(pos_y)
450
+ return vx, vy
@@ -0,0 +1,70 @@
1
+ Metadata-Version: 2.5
2
+ Name: ezmsg-kinematics
3
+ Version: 0.2.0
4
+ Summary: ezmsg units and utility code for streaming kinematics
5
+ Author-email: Chadwick Boulay <chad@cbneurotech.com>
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Requires-Python: >=3.10
9
+ Requires-Dist: ezmsg>=3.9.0
10
+ Description-Content-Type: text/markdown
11
+
12
+ # ezmsg-kinematics
13
+
14
+ Short description of your ezmsg package.
15
+
16
+ ## Overview
17
+
18
+ `ezmsg-kinematics` provides ... for the `ezmsg <https://www.ezmsg.org>`_ framework.
19
+
20
+ Key features:
21
+
22
+ * **Feature 1** - Description
23
+ * **Feature 2** - Description
24
+ * **Feature 3** - Description
25
+
26
+ ## Installation
27
+
28
+ Install from PyPI:
29
+
30
+ ```bash
31
+ pip install ezmsg-kinematics
32
+ ```
33
+
34
+ Or install the latest development version:
35
+
36
+ ```bash
37
+ pip install git+https://github.com/ezmsg-org/ezmsg-kinematics@main
38
+ ```
39
+
40
+ ## Dependencies
41
+
42
+ - `ezmsg`
43
+
44
+ ## Usage
45
+
46
+ See the `examples` folder for usage examples.
47
+
48
+ ```python
49
+ import ezmsg.core as ez
50
+ from ezmsg.kinematics import MyUnit
51
+
52
+ # Your usage example here
53
+ ```
54
+
55
+ For general ezmsg tutorials and guides, visit [ezmsg.org](https://www.ezmsg.org).
56
+
57
+ ## Development
58
+
59
+ We use [`uv`](https://docs.astral.sh/uv/getting-started/installation/) for development.
60
+
61
+ 1. Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/) if not already installed.
62
+ 2. Fork this repository and clone your fork locally.
63
+ 3. Open a terminal and `cd` to the cloned folder.
64
+ 4. Run `uv sync` to create a `.venv` and install dependencies.
65
+ 5. (Optional) Install pre-commit hooks: `uv run pre-commit install`
66
+ 6. After making changes, run the test suite: `uv run pytest tests`
67
+
68
+ ## License
69
+
70
+ MIT License - see [LICENSE](LICENSE) for details.
@@ -0,0 +1,7 @@
1
+ ezmsg/kinematics/__init__.py,sha256=HkBWAicAb_NcDZOJSNUkdASQf-2PejpscX7HrqUmCZs,87
2
+ ezmsg/kinematics/__version__.py,sha256=s9U3X54Pdr-Jlh9GP6LBaa_VRos7qs_wtrVefUHHNIA,520
3
+ ezmsg/kinematics/min_jerk.py,sha256=kw_Qc6C7ssywT3qhRrv1-IlSB1mupqaoA6OoNHOMK7E,18917
4
+ ezmsg_kinematics-0.2.0.dist-info/METADATA,sha256=UtuZDra7DfH6fHrfVTkjErLZnwTLzwdVsvlp-bqWJsc,1624
5
+ ezmsg_kinematics-0.2.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
6
+ ezmsg_kinematics-0.2.0.dist-info/licenses/LICENSE,sha256=BDD8rfac1Ur7mp0_3izEdr6fHgSA3Or6U1Kb0ZAWsow,1066
7
+ ezmsg_kinematics-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 ezmsg-org
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.