robotic/server β Robotics REST API serverΒΆ
Expose robotics motion and waypoint operations over HTTP with FastAPI and uvicorn.
UsageΒΆ
# Bind to a chosen host; the port comes from configs/connection.config.json
s6 robotic server --host 0.0.0.0
# Or via Python
python -m s6.app.robotic.server --host 0.0.0.0
EndpointsΒΆ
All routes are mounted under /robotic:
POST /robotic/movewith{"axis": str, "offset": int}POST /robotic/zeroPOST /robotic/set-waypointwith{"name": str}POST /robotic/to-waypointwith{"name": str}GET /robotic/waypointsDELETE /robotic/waypoint/{name}
How It WorksΒΆ
s6.app.robotic.serverloadsConnectionConfigfromconfigs/connection.config.jsonand usesconfig.robotic.portfor the listen port.The FastAPI app includes
s6.robotic.service.robotic_router.The router is backed by the
RoboticConfig-driven stepper helpers ins6.robotic.service, which persist waypoint and axis state inconfigs/robotic.config.json.