Spaces:
Sleeping
Sleeping
Download src/cdpr/interface/__init__.py from JoeTach/cdpr-simulator: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/spaces/JoeTach/cdpr-simulator/resolve/main/src/cdpr/interface/__init__.py
- Command line
-
hf download hf://spaces/JoeTach/cdpr-simulator/src/cdpr/interface/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/JoeTach/cdpr-simulator/resolve/main/src/cdpr/interface/__init__.py
1.05 kB
| """Human-and-machine interfaces to the CDPR framework. | |
| Two surfaces are provided: | |
| * :mod:`cdpr.interface.api` -- a FastAPI service that exposes simulation, | |
| workspace analysis, and plotting as HTTP endpoints. Returns JSON | |
| everywhere; figures are inlined as base64 PNG. Install with | |
| ``pip install 'cdpr[api]'`` and run with ``uvicorn cdpr.interface.api:app``. | |
| * :mod:`cdpr.interface.gui` -- a Streamlit research console with structured | |
| parameter selectors, a simulation trigger, live plot pane, and experiment | |
| upload. Install with ``pip install 'cdpr[gui]'`` and run with | |
| ``streamlit run -m cdpr.interface.gui``. | |
| Both surfaces are *consumers* of the scientific core --- no physics lives | |
| in this package. | |
| """ | |
| from cdpr.interface.specs import ( | |
| PlotKind, | |
| RobotName, | |
| SimulationRequest, | |
| TrajectorySpec, | |
| WorkspaceRequest, | |
| build_robot, | |
| build_trajectory, | |
| ) | |
| __all__ = [ | |
| "RobotName", | |
| "PlotKind", | |
| "TrajectorySpec", | |
| "SimulationRequest", | |
| "WorkspaceRequest", | |
| "build_robot", | |
| "build_trajectory", | |
| ] | |