Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get the result of calling get_inverse_kin_has_solution #114

Open
blackhorsewu opened this issue Jun 29, 2023 · 4 comments
Open

how to get the result of calling get_inverse_kin_has_solution #114

blackhorsewu opened this issue Jun 29, 2023 · 4 comments

Comments

@blackhorsewu
Copy link

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
Copy link

ShanMallinathan commented 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
Copy link
Author

@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!

@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
Copy link

@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
Copy link
Author

@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.

@ShanMallinathan
Thank you very much and I will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants