Spaces:
Sleeping
Sleeping
Download src/cdpr/viz/__init__.py from JoeTach/cdpr-simulator: direct link, hf CLI and curl.
- Browser
- Download file 894 Bytes
-
https://huggingface.co/spaces/JoeTach/cdpr-simulator/resolve/main/src/cdpr/viz/__init__.py
- Command line
-
hf download hf://spaces/JoeTach/cdpr-simulator/src/cdpr/viz/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/JoeTach/cdpr-simulator/resolve/main/src/cdpr/viz/__init__.py
894 Bytes
| """Visualisation layer for the CDPR framework. | |
| Strict consumer-only relationship to the scientific core: nothing in this | |
| package re-implements physics or kinematics. Inputs come from Phase 1 types | |
| (``Pose``, ``Robot``, ``SimulationResult``, ``GridResult``, ``Trajectory``) | |
| and outputs are :class:`matplotlib.figure.Figure` objects plus export-ready | |
| files (PNG / SVG / PDF / MP4 / GIF). | |
| Matplotlib is required (``pip install 'cdpr[viz]'``). Plotly / PyVista are | |
| optional ``viz-extras`` for the few rich-3D helpers that benefit from them; | |
| the core 3D rendering uses Matplotlib so that headless CI servers work out | |
| of the box. | |
| All entry-point modules below import lazily --- importing :mod:`cdpr.viz` | |
| itself does *not* import Matplotlib, so the scientific core remains usable | |
| on systems without it installed. | |
| """ | |
| from cdpr.viz._lazy import require_matplotlib | |
| __all__ = ["require_matplotlib"] | |