Get_inverse_kin() without Robot connection

U could use URSim with a local RTDE Connection to achieve this:
https://www.universal-robots.com/how-tos-and-faqs/how-to/ur-how-tos/real-time-data-exchange-rtde-guide-22229/

or you could also do the math on your own:

2 Likes