Spaces:
Sleeping
Sleeping
Commit History
-
Speed up chat + emit >=10 figures/tables per Phase-2 model run
Two user-visible fixes from the post-deployment feedback: 1. Chat felt slower than before the fallback chain landed. Root cause was not the chain itself (it exits on the first parseable response), but three pile-on effects that compound on a cold HF worker: a. max_tokens was 900 for a JSON output that is well under 200. The Gemini free tier generates up to the cap. Lowered to 400. b. Every chat call re-built the provider object, paying the GeminiProvider/_http setup cost on a cold worker. Now cached at module level (_provider_cache). c. LLMConfig.timeout_s was 30s, so a stalled provider cost the full 30 before the chain rolled over. Lowered to 12 with a CDPR_LLM_TIMEOUT_S env override for slow links. gradio_app.py also pre-warms the chain at module load time so the FIRST chat after a Space restart doesn't pay construction cost --- it pays it once, before the user even sees the page. simulation_builder gains…0c4152d
-
LLM fallback chain + Reset button + Accordion UI + per-run audit
Three independent fixes, all driven by the user's report after the last deployment: 1. LLM fallback chain (Gemini 429 -> OpenRouter -> echo). Gemini's free tier rate-limits aggressively (HTTP 429). When the 429 fires the chat used to die with a 'low confidence' note and the user had no fallback. cdpr.llm.config.resolve_fallback_chain now returns an ordered provider list driven by CDPR_LLM_FALLBACK_ CHAIN or, when unset, by which keys are configured. simulation_ builder.describe_to_request walks the chain and uses whichever provider returns parseable JSON first; the echo stub is appended unconditionally so the call never raises. BuilderResult.notes reports which providers were tried and which won. docs/llm- providers.md gains a 'Automatic fallback chain' section. 2. Reset button + collapsible accordion sections. Robot & dynamics / Trajectory / Time / Controller are now wrapped in gr.Accordion (default open=False, like file-tree folders). The Traj…a89fdfb -
Gemini: switch to gemini-2.0-flash; move key to header; redact errors
Three issues surfaced in the live chat box on the HF Space, all from the same Gemini call: LLM provider 'gemini' is unavailable: Gemini call failed: Client error '404 Not Found' for url 'https://generativelanguage.googleapis.com/v1beta/models/ gemini-1.5-flash:generateContent?key=AQ.Ab8RN6Ic8-CB7kqKS1-... (1) Google retired the gemini-1.5 family in mid-2025; the endpoint now returns 404 with a misleading 'model not found' wording. Switching the DEFAULT_MODELS['gemini'] entry to the current free-tier successor 'gemini-2.0-flash' (1M context, same JSON structured-output behaviour) restores parsing. (2) The provider was passing the key in the URL query string, so httpx's HTTPStatusError quoted the FULL request URL including ?key=... into the exception message --- which surfaced verbatim in the chat box and the build log. The key is now sent via the 'x-goog-api-key' HTTP header instead, so even when the next 4xx fires the URL no longer carrie…0f51210 -
Chat box: also infer controller (PD / MPC) and flip the visible group
The conversational simulation builder parses trajectory and robot into a SimulationRequest, but the controller choice deliberately lives in the frontend (it's a UI concern, not part of the request schema). That left a gap: a prompt like 'use MPC' was acknowledged in plain text but the radio stayed on PD, and the MPC gain group stayed hidden. _infer_controller(text) now scans the message for explicit hints: MPC : 'mpc', 'model predictive', 'predictive control', 'receding horizon', 'receding-horizon' PD : 'pd controller', 'proportional derivative', 'proportional-derivative' Falls back to PD (the form default) when nothing matches, so the behaviour is deterministic. _chat_to_form now appends three more updates to its return tuple: * controller_kind : flip the radio * pd_group : visible iff the hint was PD * mpc_group : visible iff the hint was MPC (_FORM_FIELD_COUNT is 19 now, matching the new chat_outputs list.) Programmatic value changes don…78896de -
Gradio UI polish: clean header, MPC controller, conversational chatbox
Three user-requested changes on the Gradio frontend: 1. Header. Drop the developer-facing build-ID subtitle ('Build gradio-2026-05-29-a · scientific-core import OK · runs locally and on Hugging Face Spaces (16 GB CPU worker)') and the 'Gradio frontend' suffix. The page now opens with just 'CDPR Simulator' and a one-paragraph scientific summary covering kinematics, the wrench / tension-distribution QP, rigid-body dynamics, three constitutive cable models (massless / Kelvin-Voigt / Irvine + hybrid), PD/MPC feedback, parametric trajectories, and the Phase-2 PINN/MLP/PPO/SAC data layer. A new how-to card directly under it explains the three tabs in plain language. The BUILD_ID constant is kept for manifests and surfaced in the per-run Console output, not the page header. 2. CSS. Hand-tuned styling for a reserved, instrument-style look (no glass, no rainbows, no animations): slate gradient header with monospace accents on technical terms, left-bor…b6e3041 -
Move Gradio theme to launch() per Gradio 6.0 deprecation
The build succeeded but the worker log carried: UserWarning: The parameters have been moved from the Blocks constructor to the launch() method in Gradio 6.0: theme. Gradio 6.0 deprecates the Blocks(theme=...) form in favour of launch(theme=...). Moved the theme accordingly: * gradio_app.py: Blocks() no longer takes theme; the __main__ block passes theme=gr.themes.Soft() to launch() for the local 'python gradio_app.py' workflow. * app.py: the HF Spaces entrypoint also passes theme=gr.themes.Soft() to launch(), so the deployed Space gets the Soft theme too. Locally: 'python gradio_app.py' still starts at http://127.0.0.1:7860 with the Soft theme. On HF: next rebuild has zero deprecation warnings. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>eafcb90 -
Drop '.' from requirements.txt so HF Spaces build succeeds
HF Spaces' auto-generated Gradio Dockerfile sets WORKDIR /app and runs pip install -r /tmp/requirements.txt with the repo's root contents copied to /, not /app. pip then processes '.' from the requirements file with cwd=/app, looks for pyproject.toml there, finds nothing, and aborts with: ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found. Both gradio_app.py and streamlit_app.py already prepend src/ to sys.path at startup (see the comment 'Lift the src/ layout onto sys.path' in each file), so the cdpr package does NOT need to be pip-installed --- the sys.path injection is enough for both deployed apps. Updated requirements.txt now: * drops the '.' line (the actual fix) * adds gradio>=4.40 so HF doesn't need to inline-install it * adds sympy>=1.12, torch>=2.2, gymnasium>=0.29, stable-baselines3 so Phase-2 model paths work on the hosted Space * adds python-dotenv>=1.0 so cdpr.llm reads .env / Space secrets Verified locally that app.py builds …3a63415 -
Diagnose HF push: surface token role + fine-grained scope + email status
The first pass of the diagnostic only verified identity (token user matches Space owner) and existence. The user's actual failure had identity + ownership both correct, so the cause must be in: * token role (Read vs Write vs Fine-grained), or * email verification status, or * fine-grained scope coverage of the target Space. This pass reads auth.accessToken.role and auth.accessToken.fineGrained from /api/whoami-v2, plus emailVerified, then prints a tailored fix ladder per case: - read-scope token -> 'create Write token' (return 8) - fine-grained, no Space -> 'add space:JoeTach/cdpr-simulator to token permissions, or make a classic Write token' (return 9) - unverified email -> 'click HF's verify-email link' (return 7) - everything OK -> push should work; if it doesn't, look at Space settings / HF status page Also fixed the SyntaxWarning from \d in the module do…b2af897 -
Add scripts/diagnose_hf_push.py to definitively diagnose the HF auth failure
The 'pre-receive hook declined' pattern combined with successful object upload means the token authenticates but the token's account lacks write permission on JoeTach/cdpr-simulator. This script calls HF's REST API directly with the user's token and reports: 1. Whether the token is valid (whoami-v2) 2. Which HF account the token actually belongs to 3. Whether the target Space exists and who owns it 4. The exact mismatch and three concrete fix paths Uses only stdlib urllib --- no install required. Token never echoes in any output; only the last 6 characters appear in the diagnostic header. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>0ee834d -
LLM provider abstraction + conversational simulation builder + token leak fix
Implements the directive's LLM integration layer cleanly: five providers, zero hard SDK dependencies, never crashes when no key is configured. Also fixes the immediate security issue: the previous deploy attempt embedded a write-scope HF token directly in the git remote URL (visible to anyone running git remote -v). Security fix The token-embedded remote URL was sanitised: git remote set-url space https://huggingface.co/spaces/JoeTach/cdpr-simulator The leaked token MUST also be revoked manually at https://huggingface.co/settings/tokens . See the runbook in docs/hf-auth-troubleshoot.md for the full rotation procedure. src/cdpr/llm/ --- provider-agnostic LLM layer base.py LLMProvider Protocol + LLMMessage / LLMResponse dataclasses + LLMUnavailableError. config.py LLMConfig.from_env() that reads .env via dotenv (optional dep), with canonical env-var names (GEMINI_API_KEY, OPENROUTER_API_KEY, OLLAMA…1f10b7b
-
Smart data ingestion + figure safety + synthetic manifest + HF auth fix
Addresses the directive's six Major Problems without disturbing the primary Gradio workflow at http://127.0.0.1:7860. Major Problem 1 — robust multi-format CSV ingestion New module cdpr.ingest.smart_loader provides load_dataset() and ProfileReport across CSV / TSV / TXT / XLSX / XLS / ODS / Parquet / Feather. Auto-detects format from extension and magic bytes; missing engine surfaces a clean ImportError with the install command rather than a tangled traceback. Timestamp handling: any column whose normalised name matches the alias table (time/timestamp/ts/sec/date/...) OR any string column whose first non-null values parse as datetime is converted to seconds-from-first-sample under a new 't' column. The directive's exact failure case --- 2025-05-07 15:01:27.548198 --- yields t = 0, 1, 2, 3, 4 (seconds). Missing-value handling: recognises the full sentinel set the directive listed (none/None/NULL/NaN/nan/N/A/missing/blank plus common spreadshe…2ad96a7 -
Stabilize multi-UI repo: HF-ready gradio_app + token-based HF deploy guide
Recovery work after an interactive rebase + HF-push attempt failed mid-flight. Per the directive, the rebase was aborted (all work is safe, every previously-shipped commit is preserved) and the broken state replaced with a clean, deployable shape. gradio_app.py Module-level ``demo = build_ui()`` is now executed at import time so Hugging Face Spaces can do ``from gradio_app import demo`` without modification --- and app.py (the tiny shim already in the tree) routes HF's ``app_file: app.py`` declaration straight to this module's demo. The ``__main__`` block stays for local launch at http://127.0.0.1:7860. docs/hf-deployment.md Token-based HF Spaces deployment that does NOT require the huggingface CLI. Covers the three errors the previous attempt hit: in-flight interactive rebase, non-fast-forward push rejection, and missing CLI. The force-push step is scoped to the *first* push only (overwrites HF's auto-README with the local README that already carr…110335d -
Prepare HF Space deployment
f556852 -
Dash dashboard: honest re-assessment ships the better frontend for science
Joseph correctly pushed back on the v19 verdict that picked Gradio purely from a generic comparison matrix. Re-evaluating on the actual workload --- long sims, 14-figure plots, many parameter sliders, ML training, scientific researchers as users --- Dash is structurally the better fit for the local research dashboard. Gradio remains the better fit for the public one-click demo. They complement, not compete. Six workload-specific tests that decided the verdict (docs/frontend-architecture-revised.md): 1. Slider tick --- Streamlit full-script rerun (2s), Gradio full event re-render, **Dash only the affected callback updates** (two orders of magnitude less work per tick). 2. Zoom into cable_tensions plot at t=5.2s --- Streamlit/Gradio render matplotlib PNGs (no interaction), **Dash renders native Plotly figures** with built-in zoom/pan/hover/crosshair/PNG-SVG export. Category difference for research workflows. 3. Live loss curves during 30s PINN --- Streaml…d43322a -
Multi-frontend architecture + Gradio alternative + universal terminal guide
The directive asked for an honest architectural assessment of the Streamlit instability rather than more patching, two best-in-class alternatives, multi-frontend coexistence, and universal terminal support. All five requirements satisfied without disturbing the existing CLI / Streamlit / FastAPI stack. Architectural assessment (docs/frontend-architecture.md): * Root cause analysis: Streamlit Cloud's 1 GB / 1 vCPU / WebSocket-only free tier is mismatched to a numpy + scipy + matplotlib + torch workload that imports >600 MB before the first widget renders. Local Streamlit is fine; the cloud tier is the wrong free host. * Comparison matrix scores 6 alternatives across the 15 axes the directive specified. Totals: FastAPI + vanilla JS 65 (max stability, max custom-code cost) Gradio + HF Spaces 62 (best bang-per-integration-hour) Dash + Render 61 (great for Plotly dashboards) Panel 51 (strong locally, weak on free hosts) NiceGUI …4935703
-
Five built-in CDPR_SIMULATOR examples (3 trajectories + 2 data-driven)
Implements the directive's selectable demonstration set as built-in tutorials accessible identically from PowerShell and the Streamlit GUI. The registry in scripts/examples.py is the single source of truth. Phase 1 — physics-based motion simulation: * circle --- 3-DoF planar circular tracking on the dissertation_8cable robot. 0.05 m radius, 2 revolutions, ~12.6 s, quintic time-scaling for smooth start / stop. * spiral --- 6-DoF helical sweep (the directive's "one example with all six DoFs" requirement). 3-revolution spiral at z = 0.65 m +/- 0.04 m with bounded sinusoidal yaw (+/-17°), pitch (+/-6°) and roll (+/-3°) at distinct phase offsets. Bounded amplitudes (not monotonic rotations) are essential under pure PD: without orientation feedforward, a growing angle saturates the QP --- bounded oscillation keeps the angular error inside the cable wrench envelope…4a660db -
Phase-2 hardening sweep: parametric robots, URL CSVs, schema aliases
Implements all 14 improvements proposed in the post-mortem of the dissertation_8cable CSV failure log: #1 Register dissertation_8cable in the canonical build_robot() factory. The directive geometry moved from scripts/run_simulation.py into src/cdpr/robots/dissertation.py and is now reachable through the same public API as the catalog robots. Replay / PPO / SAC no longer crash on CSVs produced by --preset dissertation-circle. #2 Persist the full robot description (anchors, attachments, mass, inertia, tension bounds) in manifest.json under a new "robot_spec" block. A manifest-aware helper, robot_from_manifest_or_catalog, rebuilds any robot from this block --- catalog OR custom JSON OR inline override. Phase-2 workflows now work on any run_simulation.py output regardless of geometry source. #3 Cable-indexed column filter requires a numeric suffix. ``Layer`` no longer crashes the loader with int('ayer'). Same fix in train_from_csv, compare_…bdbf666 -
Physics-correct circular tracking: closed-loop PD + bounded tensions
The previous Phase-1 runs were producing tensions of 1289 N and 11778 N under nominally 5-500 N constraints. Two distinct defects were masquerading as one symptom: 1. `simulate()` was being called with ``controller=None``, which in the simulator means *ignore the reference trajectory and just hold the initial pose*. The reference was being constructed but never tracked. The QP was then asked to balance gravity at the start pose only. 2. The catalog robot's tension limits (IPAnema = 20-2000 N, CoGiRo = 50-20000 N) were what the QP enforced --- not the directive's 5-500 N spec. The 1289 N number was lawful under the catalog's bounds, just not the directive's. Fixes (scripts/run_simulation.py): * New CLI flags: ``--controller {none,pd,ct}``, ``--kp-pos``, ``--kp-rot``, ``--kd-pos``, ``--kd-rot``, ``--t-min``, ``--t-max``, ``--preset dissertation-circle``. Default controller is now PD. * New ``--robot dissertation_8cable`` factory builds the directive's exact…48653ae -
Unified Phase-1 + Phase-2 workflow with dual web/PowerShell parity
This commit fulfils the unified recovery directive: Phase-1 defined- trajectory simulation and Phase-2 CSV-driven training are now first- class on both the PowerShell terminal and the Streamlit web interface, with the CLI as the guaranteed scientific fallback while the deployed Streamlit Cloud worker remains intermittently flaky. Phase-1 (scripts/run_simulation.py): * 13 publication-grade figures per run (was 6) --- position, velocity, angular_velocity, acceleration, cable_tensions, cable_lengths, cable_stretch, tracking_error, rms_error_evolution, condition_number, trajectory_xy/_xz/_yz, scene_3d. Each plot wrapped in try/except so a single failure never drops the others; matplotlib figures are explicitly closed after savefig to bound worker memory. Phase-2 (scripts/train_from_csv.py + scripts/compare_models.py): * Five workflows on the CSVs Phase-1 emits: replay (analytic re-sim), mlp + pinn (supervised inverse-dynamics fit, z-scored I/O so loss curves are interpretab…310e4a9 -
Add PowerShell CLI escape hatch + Streamlit diagnostic fallback
The deployed Streamlit Cloud worker keeps blanking on every interaction even after the GUI was reconciled with the real SimulationRequest / TrajectorySpec contract --- the issue is now almost certainly in Streamlit Cloud's runtime, not in the Python script. Render, Cloudflare Pages, Supabase, and GitHub Actions are all green; only the Streamlit worker is unreliable. This commit lands two escape hatches plus one diagnostic toggle so the user is not blocked by the Cloud-side flakiness: scripts/run_simulation.py PowerShell-friendly local driver: python scripts/run_simulation.py --robot ipanema_class --kind circle produces every plot the Streamlit GUI would have shown, plus a timeseries CSV and a manifest with the git hash, into ./out/<robot>-<kind>-<timestamp>/. Each plot is wrapped in its own try/except so a single render failure does not drop the others. scripts/call_render.ps1 PowerShell wrapper around the live FastAPI on Render: .\scripts\call_render.…6045fb3 -
gui: match SimulationRequest contract exactly
The previous rewrite invented field names that SimulationRequest / TrajectorySpec / build_robot / PlatformState do not have. The new in-page error surface caught it on first try ("got an unexpected keyword argument 'tension_min'"). Reconciled the GUI with the actual spec dataclasses: * Robot identifiers now use the canonical names from cdpr.interface.specs --- ``point_mass_3d``, ``planar_translational``, ``ipanema_class``, ``cogiro_class`` (build_robot rejects the short ``ipanema`` etc. forms). * Removed the ``tension_min`` / ``tension_max`` inputs --- they are not SimulationRequest fields. Limits live in the tension distribution solver and are exposed through the tension_objective choice instead. * ``gravity`` is a 3-tuple, not a bool. Added a single "Apply gravity" checkbox that toggles between ``(0,0,-9.81)`` and ``(0,0,0)``. * Circle params use ``axis`` + ``angle_span`` (not ``period``); Lissajous uses ``amplitudes`` / ``frequencies`` / ``phases`` plural. All match…f2c274d -
Fix CI on 3.11+3.12 and harden Streamlit against any-rerun blank
CI was failing for two unrelated reasons that the new verbose pytest log finally surfaced: * **Python 3.12 — TypeError in KelvinVoigtModel.diagnostics().** ``@dataclass(slots=True)`` replaces the original class object with a freshly constructed slotted one. The ``__class__`` cell that zero-arg ``super()`` captures at compile time still points to the pre- replacement class, but ``self`` is an instance of the post-replacement class --- so the runtime check ``isinstance(self, __class__)`` raises ``TypeError: super(type, obj): obj must be an instance or subtype of type``. Replaced with an explicit ``CableModel.diagnostics(self, ...)`` call; this is correct here because ``CableModel`` is the single base class (no diamond inheritance). * **Python 3.11 — SyntaxError in cdpr/reports/bundle.py:216.** An f-string slot contained ``r.scenario_name.replace('_', r'\_')``. PEP 701 lifted the "no backslash in f-string expression" rule only in 3.12. Hoisted the ``.replace()`` …5cc4e7f -
Streamlit lazy per-tab render + CI diagnostics
GUI (src/cdpr/interface/gui.py): - matplotlib.use("Agg", force=True) defensively in case the module is imported through a non-streamlit_app entry-point. - CDPR_GUI_FRUGAL env knob trims the default workload to 0.5 s / 5 ms so the free-tier Streamlit Cloud worker (~1 GB) does not OOM on the first Run simulation click. - Result tabs are now lazy: each tab renders its figure only after the user clicks "Render <key>", and the figure is cached in session_state for the rest of the session. Previously six matplotlib figures — including the 3D scene — were rendered on every script rerun, which silently killed the worker and left a blank page. - 3D scene is marked "heavy" with an explicit caption; its trajectory is subsampled to 200 points to bound memory. - Plot helpers import matplotlib / plots2d / scene lazily so the initial module load stays cheap. - _log() writes to stderr so the Streamlit Cloud manage-app log shows what the worker was doing right before it died. - Ever…d02aecd
-
Streamlit GUI: form-batched parameters + visible error surfacing
The previous GUI re-ran the entire script on every widget change. When the trajectory kind toggled between hold/line/circle/lissajous, the dynamically-appearing slider blocks (Ax/Ay/Az/fx/fy/fz, or radius, or the text inputs) caused widget-key collisions and intermediate runs that crashed silently on Streamlit Cloud's free tier --- leaving a blank page after any sidebar interaction. Fixes: - All parameter widgets live inside a single st.form('params_form'). Streamlit only re-runs the script when the user clicks 'Apply parameters'. Editing a slider mid-form no longer triggers a rerun. - Every widget carries an explicit key= so state persists cleanly across reruns regardless of which conditional branch is active. - All kind-specific widgets are always rendered (just read selectively based on kind). Avoids the appear/disappear race. - _parse_xyz wraps the text inputs in a try/except --- a half-typed '0.1, 0.' no longer raises ValueError. - render() wraps everything in try/exc…206bfca -
docs: add live deployment-status report
Snapshot of the connection map + URLs + remaining loose ends after the GitHub/Render/Streamlit/Cloudflare/Supabase wiring is in place. Auto-published to https://cdpr-simulator.pages.dev/deployment-status on push (Cloudflare Pages serves docs/ as-is).b0b011e -
CI: use --prefer-binary + consistent python -m pip
The Ubuntu runner has been failing because pip was compiling scipy / matplotlib from source instead of taking the prebuilt wheels. Same class of failure that bit the Render Docker build before we fixed it. Also switched the pytest invocation to `python -m pytest` so it runs through the same interpreter setup-python pinned, not whichever `pytest` shim landed first on PATH.d5b54b8 -
Streamlit Cloud fix: lean requirements.txt + inline 'all' extra
Streamlit Community Cloud's Poetry-based installer rejected cdpr[all] because the all extra self-referenced as 'cdpr[viz,viz-extras,learn,rl,...]' --- Poetry detects a cycle and fails. Two fixes: 1) requirements.txt: lean dep list (streamlit + httpx + viz + data + scipy + the local cdpr package via '.') that Streamlit Cloud picks up automatically and uses instead of pyproject extras. 2) Inline the 'all' extra: drop the self-reference, list the underlying packages directly. Pip handles either form fine; this keeps Poetry happy too. Also point project URLs at Tachia/cdpr_simulator (the actual repo).3dd67c5 -
FastAPI: friendly root route at GET / (was 404)
Adds a JSON service descriptor listing the available endpoints and linking to the auto-generated OpenAPI docs at /docs and /redoc. The 404 at root was correct but unhelpful when someone visits the Render URL in a browser. All five API tests still pass.04f9f25 -
Simplify Dockerfile: single-stage build with --prefer-binary
The previous two-stage build pre-built wheels under /wheels and then ran `pip install --no-index --find-links=/wheels .` at runtime, but the project's hatchling build backend wasn't in /wheels and pypi was disabled, so the runtime install failed to bootstrap the backend. Single stage avoids the hand-off entirely; --prefer-binary keeps pip from compiling scipy / matplotlib from source on Render's small builder. Switched the base image from python:3.12-slim to python:3.11-slim for slightly broader wheel coverage on transitive deps.4f323ba -
Add Supabase storage adapter with lazy dual-write mirror
- cdpr.storage.supabase: optional SupabaseMirror that copies experiment metadata into Supabase when SUPABASE_URL + SUPABASE_SERVICE_ROLE_KEY are set; local disk stays the source of truth. - recorder.record_simulation gains mirror_to_supabase / supabase_metrics kwargs; defaults preserve Phase 1-6 behaviour (no cloud writes). - supabase/config.toml links the project (ref nohbtlhhisfiajjsbguy). - supabase/migrations/20260526000001_initial_schema.sql replicates the schema as a CLI-runnable migration. - pyproject: [storage] extra installs the supabase Python client. Recording tests pass (5/5); module imports cleanly without supabase-py installed (lazy guard returns False).52db224 -
Initial commit: cdpr Phases 1-7 + deployment scaffolding
Scientific core (Phase 1): - Pose/Twist/Wrench primitives, SE(3) algebra - Robot configuration (anchors, attachments, inertia, cable limits) - Inverse + forward kinematics, structure matrix - Tension distribution (bounded QP), wrench feasibility - Three per-cable physics: massless, linear-elastic, Irvine catenary - Rigid-body Newton-Euler dynamics, RK4 + semi-implicit integrators - Workspace analysis (WCW, WFW, voxel grid) - Parametric trajectories with retiming - Reference robot catalogue (IPAnema-class, CoGiRo-class) Visualisation + ingestion + reports (Phase 2): - 2D analytics, 3D scene with tension heatmap and singularity indicator - Animation (playback, frame stepping, live streaming) with MP4/GIF export - Workspace volume rendering - Experiment recording (CSV + JSON metadata + reproducibility manifest) - Replay engine + dataset comparison - Publication-grade reports: LaTeX figures, booktabs tables, Markdown - FastAPI service + Streamlit research console - Optional external-physi…5f38e95