# Make sure a list of poses can run without exception

**URL:** <https://forum.universal-robots.com/t/make-sure-a-list-of-poses-can-run-without-exception/1304>\
**Category:** Technical Questions\
**Tags:** robotics, mechanical\
**Created:** [November 7, 2017, 1:13am UTC](https://forum.universal-robots.com/t/make-sure-a-list-of-poses-can-run-without-exception/1304 "2017-11-07T01:13:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon21910823](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon21910823](https://forum.universal-robots.com/u/anon21910823)\
**Post date:** [November 7, 2017, 1:13am UTC](https://forum.universal-robots.com/t/make-sure-a-list-of-poses-can-run-without-exception/1304/1 "2017-11-07T01:13:14Z")

</div>

Hello all,

I have an external program that loads lots of poses and sends it to the robotic controller to be run via TCP-IP. The issue is sometimes the motion will be cut off due to initial positioning of the robot (i.e cannot reach) or speed/acceleration exceeds the limits, or a singularity is found.

Is there a way to make sure all the poses can be excuted based on the current posistion of the robot before I send it to be run? It always seems to be where I position the arm (and how the joints are positioned). Sometimes if I move the arm slightly, it will run all the poses without any issues.

Thank you,  
Saree

---

<div class="post-metadata">

**Author:** ![ocohen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/ocohen/32/2067_2.png) [@ocohen](https://forum.universal-robots.com/u/ocohen)\
**Post date:** [February 24, 2020, 10:52pm UTC](https://forum.universal-robots.com/t/make-sure-a-list-of-poses-can-run-without-exception/1304/2 "2020-02-24T22:52:11Z")

</div>

I second that request.  
My program have a list of poses and tries to move through all of them individually. If one of them fails for any reason (out of reach / collision / limits reached / singularity) I want to let the program know, and continue on to the next pose.  
Currently in these cases the program would just stop completely and an error message will be shown to the ui.

Is there anyway to know if a move command is going to succeed before sending it?

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [February 25, 2020, 7:35am UTC](https://forum.universal-robots.com/t/make-sure-a-list-of-poses-can-run-without-exception/1304/3 "2020-02-25T07:35:12Z")

</div>

you can use the script function is\_within\_safety\_limits() to check if a pose is out of reach before executing the move. I never tested if it prevents singularity poses tho 😉

---

<div class="post-metadata">

**Author:** ![inu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/inu/32/732_2.png) [@inu](https://forum.universal-robots.com/u/inu)\
**Post date:** [February 25, 2020, 1:24pm UTC](https://forum.universal-robots.com/t/make-sure-a-list-of-poses-can-run-without-exception/1304/4 "2020-02-25T13:24:39Z")

</div>

@m.birkholz The is\_within\_safety\_limits() is a great check to see if the motion is within the safety parameters, ie any safety planes or other safety restrictions. But it won’t look for singularities. You’ll probably want to check for both though.

The only way to check for singularities I can think of is running your own kinematic model and cross referencing it to the robot positions. I know there are a few products that have done this, however it sounds like this would be a great feature request. I’ll make a note of it for the team.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/system/32/1_2.png) [@system](https://forum.universal-robots.com/u/system)\
**Post date:** [January 19, 2021, 4:09pm UTC](https://forum.universal-robots.com/t/make-sure-a-list-of-poses-can-run-without-exception/1304/5 "2021-01-19T16:09:25Z")

</div>

Closed on January 19, 2021, 4:09pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
