URScript Error: freedrive_mode takes exactly 0 arguments (2 given))

Hi all,
I am trying to write a UR script program controlled by Python with RTDE that enables me to go from recording movements in freedrive mode to playing the recorded movements with a UR10e. I have got the freedrive_mode working, but I can’t seem to specify the freeAxes parameter (and feature parameter) without the teaching pendant giving the error: freedrive_mode takes exactly 0 arguments (2 given)

The line of code is:
freedrive_mode(freeAxes=[1,1,0,0,0,0], feature=p[0,0,0,0,0,0])

Here is a picture of the problem happening.

Thanks for your help!
sam

What Polyscope version are you using?

The freedrive_mode() function did not accept any arguments before Polyscope version 5.10
See Here:
Changelog 5.10.0: Section Controller
Existing freedrive_mode() script function is extended with 2 new parameters:

So all you need to do is update to Polyscope 5.11 or higher and it should work.

Hi robin_gdwl,

I’m running 5.9.3 (Sep 22, 2020). This is definitely the issue! I will give it a try and report.

Thanks so much for your help,

sam

Updating the polyscope to 5.16.0 solved my issue.

1 Like