Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python API: setDO and waitDI cause crash
#2
Hi David,

This is supposed to work. I was unable to reproduce the crash.

If you want to manipulate inputs/outputs on the robot (Run on robot option) you can trigger robot.Connect() before you operate on the robot variable.

Another option would be to add this snippet of code to force changing the run mode if you are connected to the robot:

Code:
status, message = robot.ConnectedState()
if status == ROBOTCOM_READY:
# RDK.setRunMode(RUNMODE_RUN_ON_ROBOT)
robot.Connect() # this already changes the run mode

Can you provide an RDK project that reproduces your crash?

Albert


Messages In This Thread
RE: Python API: setDO and waitDI cause crash - byAlbert- 06-03-2019, 03:13 PM



Users browsing this thread:
1 Guest(s)