RTDE IO causing 'One of the RTDE input registers are already in use' issue

So I’ve been getting this error every since I wrote this line of code (self.io = rtde_io.RTDEIOInterface(host)) in the init part:

RuntimeError: One of the RTDE input registers are already in use! Currently you must disable the EtherNet/IP adapter, PROFINET or any MODBUS unit configured on the robot. This might change in the future.

If I remove the line of code (self.io = rtde_io.RTDEIOInterface(host)), I do not get this error.

This is what I’ve tried to resolve this but haven’t been successful:

  • All the Enternet, Prfinet and MODBUS endpoints are disabled.
  • I tried SSHing into the robot to check active connections but I get the error could not understand: 'netstat --all --program | grep 30004'
  • Restarting robot

Does anyone know what can be done to troubleshoot this error?

This does not work probably because you are running the command after you SSHed into robot system where the netstat is not installed?

Can you share more code regarding the above error? are you using some kind of package?