arrival-ltd / catalyst-rl-tutorial

Using Catalyst.RL to train a robot to perform peg-in-hole insertion in simulation.
MIT License
151 stars 14 forks source link

how to implement it on real system? #6

Closed abdul-mannan-khan closed 3 years ago

abdul-mannan-khan commented 3 years ago

My question is regarding its implementation. How can we implement it on real robot? Could you also please provide some description.

It is very interesting simulation example and it is highly appreciated.

Thank you for sharing.

fedor-chervinskii commented 3 years ago

Hi @abdul-mannan-khan, thanks for your interest in our work. Here we intentionally do not share here the implementation for testing this on a real robot, however, you can find it in our Medium post that we did tests on the real robot (in our case UR-5).

Although we can't share the implementation here, what you can do basically is to write another environment class that will wrap around the API calls for the robot. (a good example of wrapping around UR-5 can be found for example in this repo Then, after training an agent to perform well on a simulation environment, using Catalyst you can roll out your trained agent on the "Real" environment, so the agent will send commands to the real robot.

Hope this helps, let me know if any more questions. And good luck!