Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

A non-blocking movement command is still blocking my code

#4
Each movement for the same robot is not executed unless the previous move is complete.

To do what you are planning to accomplish it would be better if you intercalate the movements for each robot:
Code:
R1.MoveJ(R1_T1,False) #1 Move first robot R1 to target R1_T1
R2.MoveJ(R2_T1,False) #2 Move second robot R2 to target R2_T1

R1.MoveJ(R1_T2,False) #3 Move first robot R1 to target R1_T2
R2.MoveJ(R2_T2,False) #4 Move second robot R2 to target R2_T2
You can also stop the robot movement by triggering R1.Stop(). You may need to trigger this from a separate thread and you would have to wrap your Movement within a try/catch if you don't want your script to stop.


Messages In This Thread
RE: A non-blocking movement command is still blocking my code - byAlbert- 09-09-2022, 06:52有空



Users browsing this thread:
1 Guest(s)