SintefManufacturing / python-urx

Python library to control a robot from 'Universal Robots' http://www.universal-robots.com/
GNU Lesser General Public License v3.0
526 stars 275 forks source link

It's hard to receive tcp_force continuously #76

Open ifanma opened 5 years ago

ifanma commented 5 years ago

When I was receiving data of tcp_force, I found that data would stop update after around 30 second.

import urx
import time
rob = urx.Robot("192.168.50.60")
rob.set_tcp((0, 0, 0.1, 0, 0, 0))
rob.set_payload(2, (0, 0, 0.1))
time.sleep(0.2)
a= rob.get_realtime_monitor()
while 1:
    print a.tcf_force()
    time.sleep(0.001)