# How to move robot

**URL:** <https://forum.universal-robots.com/t/how-to-move-robot/3377>\
**Category:** URCaps SDK\
**Created:** [January 3, 2019, 6:21am UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377 "2019-01-03T06:21:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon44063275](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@anon44063275](https://forum.universal-robots.com/u/anon44063275)\
**Post date:** [January 3, 2019, 6:21am UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377/1 "2019-01-03T06:21:53Z")

</div>

Is there any example code to move a robot in URcap code?

---

<div class="post-metadata">

**Author:** ![sko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/sko/32/573_2.png) [@sko](https://forum.universal-robots.com/u/sko)\
**Post date:** [January 3, 2019, 7:43am UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377/2 "2019-01-03T07:43:00Z")

</div>

What kind of movement do you want to achieve?  
The approach would be different depending on a movement before or after the Robot Program was started.

---

<div class="post-metadata">

**Author:** ![anon44063275](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@anon44063275](https://forum.universal-robots.com/u/anon44063275)\
**Post date:** [January 3, 2019, 7:53am UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377/3 "2019-01-03T07:53:31Z")

</div>

I want to move the x, y, z coordinates I set.

---

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [January 3, 2019, 7:55am UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377/4 "2019-01-03T07:55:09Z")

</div>

I will recommend using the `RobotMovement` user interaction provided in the API.  
This is demonstrated in the Ellipse example.

---

<div class="post-metadata">

**Author:** ![anon44063275](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@anon44063275](https://forum.universal-robots.com/u/anon44063275)\
**Post date:** [January 9, 2019, 8:36am UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377/5 "2019-01-09T08:36:40Z")

</div>

If you set only the pose that you want to move robot to RobotMovement function and put it as parameter, do you go to the set pose?

---

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [January 9, 2019, 10:24am UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377/6 "2019-01-09T10:24:41Z")

</div>

When `requestUserToMoveRobot()` the user is brought to the Auto Move screen.  
When the user has completed this movement (i.e. holding the Auto button), the `onComplete()` method in the `RobotPositionCallback` argument in the request.

---

<div class="post-metadata">

**Author:** ![anon44063275](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@anon44063275](https://forum.universal-robots.com/u/anon44063275)\
**Post date:** [January 10, 2019, 1:59am UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377/7 "2019-01-10T01:59:15Z")

</div>

Does the user have to press auto to move?  
Is there any way to change the pose of a robot simply by calling one function?

---

<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:** [January 10, 2019, 1:22pm UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377/8 "2019-01-10T13:22:45Z")

</div>

you could use the ClientSendScript Class: [URCap Sample: Send Script with button push URCap](https://forum.universal-robots.com/t/sample-send-script-with-button-push-urcap/1203)  
and send a move command over the Secondary Client Interface with your Pose data. This would immediately move the robot without automove function needed (though i won’t recommend doing so).

---

<div class="post-metadata">

**Author:** ![anon44063275](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@anon44063275](https://forum.universal-robots.com/u/anon44063275)\
**Post date:** [January 22, 2019, 6:42am UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377/9 "2019-01-22T06:42:37Z")

</div>

If you use move script with Send Script, the robot turns off after the robot moves.  
I want to know what turns it off.

---

<div class="post-metadata">

**Author:** ![anon44063275](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@anon44063275](https://forum.universal-robots.com/u/anon44063275)\
**Post date:** [January 24, 2019, 7:48am UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377/10 "2019-01-24T07:48:16Z")

</div>

![KakaoTalk_20190124_164424275](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/7/70dcd4b7edd7b1b13079c62cb0edc7db5c0f3513.jpeg)

String myPose = “p[” + String.format ("%f", x2) + “,” + String.format ("%f", y2) + “,” + String.format ("%f", z2) + “,” + String.format ("%f", rx) + “,” + String.format ("%f", ry) + “,” + String.format ("%f", rz) + “]”;

scriptSender.sendMoveJ(myPose);

As shown in the above code, when I move the robot through the send script, I get the error shown in the screenshot I posted.

---

<div class="post-metadata">

**Author:** ![anon24273550](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@anon24273550](https://forum.universal-robots.com/u/anon24273550)\
**Post date:** [November 6, 2022, 11:51am UTC](https://forum.universal-robots.com/t/how-to-move-robot/3377/11 "2022-11-06T11:51:14Z")

</div>

will this provide the movement node with its UI as well. I am developing a program and want to use the move node in my program but don’t want to reinvent the wheel and write the UI and contribution for the move, rather use the move command already provided
