Universal Robots Forum

Moving between two points with a slider control - interpolate

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?

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 class to send a move command triggered by an ON_CHANCE command by your UI slider.


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