Universal Robots Forum

Moving cobot with a slider

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.

2 Likes