# Moving between two points with a slider control - interpolate

**URL:** <https://forum.universal-robots.com/t/moving-between-two-points-with-a-slider-control-interpolate/4448>\
**Category:** URCap Development\
**Tags:** interpolate\
**Created:** [June 4, 2019, 3:08pm UTC](https://forum.universal-robots.com/t/moving-between-two-points-with-a-slider-control-interpolate/4448 "2019-06-04T15:08:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon53543594](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@anon53543594](https://forum.universal-robots.com/u/anon53543594)\
**Post date:** [June 4, 2019, 3:08pm UTC](https://forum.universal-robots.com/t/moving-between-two-points-with-a-slider-control-interpolate/4448/1 "2019-06-04T15:08:17Z")

</div>

Hi guys,

We are trying to build a simple application that allows the user to move the robot from point A to point B with a slider. I mean 100% slider space means that point B is reached. 0% is point A. I just want your suggestions on how to do that, and which functions use. Especially the movement of the robot, whether it is possible with this API or not?

---

<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:** [June 5, 2019, 6:32am UTC](https://forum.universal-robots.com/t/moving-between-two-points-with-a-slider-control-interpolate/4448/2 "2019-06-05T06:32:36Z")

</div>

i think the script function interpolate\_pose should do the trick.  
it divides your Path from A to B with a specific alpha value.  
as alpha is a value of 0 to 1.0 you can just map your UI slider to the alpha value and use [ClientSendScript](https://forum.universal-robots.com/t/sample-send-script-with-button-push-urcap/1203) class to send a move command triggered by an ON\_CHANCE command by your UI slider.

---

<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 27, 2021, 1:49am UTC](https://forum.universal-robots.com/t/moving-between-two-points-with-a-slider-control-interpolate/4448/3 "2021-01-27T01:49:25Z")

</div>

Closed on January 27, 2021, 1:49am UTC

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