08-14-2023, 12:32 PM
I am working on a project where I start RoboDK through the python API with the NOUI flag.
If I now want to take a snapshot with a camera, I first run the following code:
since the documentation seems to indicate that this is necessary (and I don't get a correct snapshot if I leave this out). But, if you run RoboDK in NOUI mode, this call hangs and nothing happens.
In terms of debug prints, a successful call when NOUI is not passed looks like this:
while my current output is this (with NOUI):
Is this intended behavior? Or, should the camera's also work when you run without a UI?
If I now want to take a snapshot with a camera, I first run the following code:
Code:
camera.setParam('Open', 1)
since the documentation seems to indicate that this is necessary (and I don't get a correct snapshot if I leave this out). But, if you run RoboDK in NOUI mode, this call hangs and nothing happens.
In terms of debug prints, a successful call when NOUI is not passed looks like this:
Code:
Setting item parameter: "Open" = "1"
Adding new docked window: "Camera"
Camera context created successfully
Ready to render new camera context...
Done
Camera parameters updated
while my current output is this (with NOUI):
Code:
Setting item parameter: "Open" = "1"
Adding new docked window: "Camera"
Camera context created successfully
Is this intended behavior? Or, should the camera's also work when you run without a UI?