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/move with {"axis": str, "offset": int}

  • POST /robotic/zero

  • POST /robotic/set-waypoint with {"name": str}

  • POST /robotic/to-waypoint with {"name": str}

  • GET /robotic/waypoints

  • DELETE /robotic/waypoint/{name}

How It WorksΒΆ

  • s6.app.robotic.server loads ConnectionConfig from configs/connection.config.json and uses config.robotic.port for the listen port.

  • The FastAPI app includes s6.robotic.service.robotic_router.

  • The router is backed by the RoboticConfig-driven stepper helpers in s6.robotic.service, which persist waypoint and axis state in configs/robotic.config.json.