You just trained an AI model and now you want to use it to control your robot.

Here is how to do it with minimum effort.

Setup an inference server

First, you need to setup an inference server. This servers runs on a beefy machine that can run the AI model. It can be your own machine, a cloud server, or a dedicated server.

If you chose a remote location, chose the closest location to minimize latency.

To setup the inference server, follow the instructions in the link below:

Setup the inference server

How to setup the inference server?

Update the inference Settings

If you haven’t already, start the phosphobot server.

phosphobot run

In your browser, in the phospshobot dashboard, go to the Admin Settings.

Update the Inference Settings with the URL (or IP adress) and port of your inference server. This is the address where the phosphobot server sends the images to get the next action to take.

Start automatic control

Make sure the robot is in a safe position before starting the automatic control.

Use the /auto/start endpoint to start the automatic control.

The phospshobot server calls the inference server to get the next action to take.

Stop automatic control

Use the /auto/stop endpoint to stop the automatic control.