External force RTDE injection not working with get_tcp_force() for ursim 5.9.4 & 5.4.0

Hi

When using enable_external_ft_sensor(True) / ft_rtde_input_enable(True) for ursim 5.9.4 and 5.4.0 I cant get the values when calling get_tcp_force().

I can get the same code to work for the CB3 ursim 3.10.1.

Code to reproduce:
force_inject.zip (67.7 KB)

Software version : 5.9.4 and 5.4.0
Robot generation : ur5 E

Steps to reproduce :
Start ursim
run python3 force_inject.py
run external_force_test.urp in sim

Expected behavior :
In log:
Force: p[0,0,0, -0.999685, -0.0000470508, -0.0250784]
CB3

Actual behavior :
Force: p[0,0,0,0,0,0]

I’ve looked at External force-torque sensor implementation and REAL-TIME DATA EXCHANGE (RTDE) GUIDE but could not find a solution.

Hi @miol

Thank you for you input! We will take a look at your findings.

Ebbe

Hi @Ebbe
I tried this out on 5.11.1 which gives the same results.

I was hoping to make some unit test in a simulation with a UR cap using force/tourqe control. Do you think the ft_rtde_input_enable in ursim is something that will be looked into?

Best regards
Mikkel

Hi Mikkel,

It should be fix in version 5.11.2.

Best Regards
Ebbe

1 Like