Control robot with AI models
How to make an AI model control your robot?
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?
Call your inference server from a python script
We provide clients for ACT servers and Pi0 servers.
You can implement the ActionModel
class with you own logic here.
At this point, go to your phosphobot dashboard > docs and launch the auto/start endpoint that will communicate with the inference server to automatically control the robot.
You can stop at any time by calling the auto/stop endpoint.
Example script for ACT
Example script for Pi0
Was this page helpful?