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

暂停和重新启动指令使用Python script

#1
I would like to know how to implement the instruction "Pause" and "Restart" using a Python script.
He means, is the instruction showing attached photo possible to implement through Python as well?
If so, please guide us how to do it.
#2
Hi Hiroe,

There is no image attached.

Jeremy
#3
Sorry about that, but the attachment is just a toolbar icon.
My team member would like to instruct pause/restart through Python.


Attached Files
.xlsx image.xlsx(Size: 32.21 KB / Downloads: 414)
#4
Hi Hiroe,

Yes, this is possible. You can use setSimulationSpeed:
//www.sinclairbody.com/doc/en/PythonAPI/robo...ationSpeed

For example, to pause the simulation you can do:
RDK.setSimulationSpeed(0)

To continue with normal simulation you can do:
RDK.setSimulationSpeed(5)

Albert
#5
Dear Albert,

My team member succeeded in his project thanks for your instruction.
Thank you.




Users browsing this thread:
1 Guest(s)