Posts: 4
Threads: 1
Joined: Oct 2023
Reputation:
0
I am considering real-time robot control using a camera with the Python API.
Is there a way to change the target during robot movement using MoveL(target, block=False)?
Currently, Robot is repeating movement and stop actions because the next action starts after MoveL is completed.
Please let me know if there is a way to achieve smooth motion.
Posts: 3,103
Threads: 2
Joined: Apr 2018
Reputation:
155
To make the robot move to new targets it is better to create a new target and a new program that moves to the position you want to move to. When the program completes you can delete the target and/or the program.
You should also be able to move the robot directly to a given pose without having to create a program.
Posts: 4
Threads: 1
Joined: Oct 2023
Reputation:
0
Thank you for your response.
First I want to be able to move on the x, y axis while I press the arrows on my keyboard.
To achieve this, do I create a new target and move program and repeat running this program?
Please let me know if you have a minimum program that can be used as a reference.
Thanks
Posts: 319
Threads: 2
Joined: Jun 2021
Reputation:
25
The examples are incremental, meaning that the robot will move one step at a time. You will have to edit the code to have smooth movements.
Posts: 4
Threads: 1
Joined: Oct 2023
Reputation:
0
10-15-2023, 10:59 PM
(This post was last modified: 10-15-2023, 11:00 PM by TToyoda.)
thank you for your reply.
I tried setRounding, but it keeps moving and stopping.
How should I fix it?
Posts: 319
Threads: 2
Joined: Jun 2021
Reputation:
25
You will have to refactor much of the code itself, as the code provided only supports small step increments.