Editing Poses while running a program

Can I call the ‘Edit Post’ function while running a program to teach a new position?

For example, when I am in the Program tab and not running a program, I can select a Waypoint and click ‘Edit Pose’. This takes me to the move tab and I can drive the robot to a new pose and hit ‘Ok’. I want my program to do guide or prompt the user to ‘Edit Pose’.

Would this be adding a Script? Is there a list of available scripts available to the use?

I don’t believe that is possible to do while the program is running. You could potentially add in a freedrive function to be able to move the robot and have an input tell the robot when stop freedriving and then write the position to a variable position using get_actual_tcp_pose script.
What is the overall goal of your program?

It sounds like what you want to do is set up your program structure and guide the user through to set it up properly the first time and then it will run through from there?

If that is the case, I would just have the structure in place and have some guided popups telling the user what to do at each point in the program.

You cannot edit anything while the program is running. You used to be able to save a modified program while it was running but you can’t even do that any more. :sigh:

If the poses you want to modify are static you could use a Select Case function to select a desired pose or a desired offset amount.

If the poses are dynamic it will be much more difficult. Per dbarton above, I didn’t know you could initiate freedrive while a program is running. Moving then storing the position may be your best option.

More info on what you’re trying to do will help.

Thanks for the input. My overall goal is to create a program designed for a worker with less experience and training with the Polyscope. The scope of work is:
-Put the robot in position
-Allow the worker to teach the robot -
+‘HOME’ pose
+‘MOVE’ pose

  • ‘TASK’ pose for a particular job
    Then the worker can reposition the robot and repeat the operation for another job.

I want would like the program to guide the user using Pop-ups rather than have the worker edit the poses in the program. I can make it work using dbarton’s suggestion using FreeDrive and ‘get_actual_tcp_pose’ and a variable.

Can I do it using robot move commands from the teach pendent? My ideal situation would be to call the same function that is done when editing a pose in the Program tab.

1 Like

Sounds like you need to create a URcap with an insert node with a wizard based walkthrough similar to something you would see from Robotiq or the UR palletizing wizard or similar.