URscript with arduino

Hello, I have a custom gripper with servo and arduino. Can I control the servo by urscript via TCP/IP?
Many thanks

You can always host an XMLRPC server in the arduino to control the gripper. You can then set up an RPC factory on the robot in URscript and then send commands to the gripper over RPC which uses TCP/IP for the communication layer. There is information in the script manual for how to set up the RPC factory in script.

I’ve controlled a Robotiq gripper this way using a raspberry pi as the interface just to see if it could be done. The robot talked to the pi and then the pi communicated with the gripper over serial modbus.

You can learn more about implementing RPC in the arduino at Simple RPC implementation for Arduino. — simpleRPC documentation

1 Like