Some doubts about URScript: get_tcp_foce

You can use joint currents that are directly proportional to torques.
It’s recommended to use RTDE interface instead of realtime, or primary interfaces, as they are for internal UR use primarily.
There are actual_current, target_current, and target_moment fields available.