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

Bug in function set_payload #72

Closed jferdelyi closed 1 year ago

jferdelyi commented 5 years ago

In the file urrobot.py the function set_payload (line 121) need to have '[' instead of '('

Before

if cog:
            cog = list(cog)
            cog.insert(0, weight)
            prog = "set_payload({}, ({},{},{}))".format(*cog)

After

if cog:
            cog = list(cog)
            cog.insert(0, weight)
            prog = "set_payload({}, [{},{},{}])".format(*cog)