Spaces:
Sleeping
Sleeping
File size: 1,054 Bytes
5f38e95 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | """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",
]
|