You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
how to get the result of calling get_inverse_kin_has_solution #114
I want to check poses are reachable before moving the robot to it. URScript starting from version 3.15 provide a function get_inverse_kin_has_solution. I know how to send that as a program to the robot but do not know how to get the result if the pose is reachable or not. Any help would be very much appreciated.
@ShanMallinathan Thank you very much for your reply. My problem is how can I read the result? It should be a Boolean, either True or False. How can this be sent back to my PC running python?
@blackhorsewu
Store the boolean in a variable in the URScript and send it to the server (PC) using the socket_send_string command. receive it on your PC using recv(). I tried it in the simulator and it worked just fine.
@blackhorsewu Store the boolean in a variable in the URScript and send it to the server (PC) using the socket_send_string command. receive it on your PC using recv(). I tried it in the simulator and it worked just fine.
Activity
ShanMallinathan commentedon Jul 4, 2023
@blackhorsewu
I could not find this functionality with the urx package but I was able to run this using a socket connection with the robot manually. Follow the below link for more reference
https://www.zacobria.com/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3/index.php/universal-robots-script-client-server-example/
Cheers!
blackhorsewu commentedon Jul 5, 2023
@ShanMallinathan Thank you very much for your reply. My problem is how can I read the result? It should be a Boolean, either True or False. How can this be sent back to my PC running python?
ShanMallinathan commentedon Jul 5, 2023
@blackhorsewu
Store the boolean in a variable in the URScript and send it to the server (PC) using the socket_send_string command. receive it on your PC using recv(). I tried it in the simulator and it worked just fine.
blackhorsewu commentedon Jul 6, 2023
@ShanMallinathan
Thank you very much and I will try it.