06-03-2019, 03:13 PM
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:
Can you provide an RDK project that reproduces your crash?
Albert
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