You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The StereoCam reactor defines a function luxonisThread in the preamble, that schedules a actionReadDisparityMap inside a while True loop. After invoking schedule in every iteration it sleeps for 5s.
The StereoCam reactor defines three reactions, the startup reaction, that creates a thread and passes the luxonisThread as it thread function. It also sets the necessary flags (captureThreadEnable state) to trigger the while loop in the luxonisThread function. The actionReadDisparityMap reaction when triggered extracts the counter value that is set during each iteration of luxonisThread. The extracted value is then pushed via the output port disparityMap. The shutdown if for cleanup functions.
The plotter reactor takes the disparityMap from StereoCam reactor and prints its value.
The get the following problem after running the python code.
Basically the print(f"{getLocalTime()}@Captured disparity {frameCnt}") never executes. So I am guessing that it is stuck in actionReadDisparityMap.schedule(0,(lf.time.physical_elapsed(),frameCnt)).
I am running the generated python code in Raspberry-Pi4 (Linux pios3 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux). The lfc compiler is also invoked from the same host.
I was able to recreate the problem, using a much simpler LF program below.
Source Code
The StereoCam reactor defines a function
luxonisThread
in the preamble, that schedules aactionReadDisparityMap
inside awhile True
loop. After invokingschedule
in every iteration it sleeps for 5s.The
StereoCam
reactor defines three reactions, thestartup
reaction, that creates a thread and passes theluxonisThread
as it thread function. It also sets the necessary flags (captureThreadEnable
state) to trigger the while loop in theluxonisThread
function. TheactionReadDisparityMap
reaction when triggered extracts the counter value that is set during each iteration ofluxonisThread
. The extracted value is then pushed via the output portdisparityMap
. Theshutdown
if for cleanup functions.The
plotter
reactor takes thedisparityMap
fromStereoCam
reactor and prints its value.The get the following problem after running the python code.
Basically the
print(f"{getLocalTime()}@Captured disparity {frameCnt}")
never executes. So I am guessing that it is stuck inactionReadDisparityMap.schedule(0,(lf.time.physical_elapsed(),frameCnt))
.I am running the generated python code in Raspberry-Pi4 (
Linux pios3 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux
). Thelfc
compiler is also invoked from the same host.Originally posted by @Arka2009 in #1116 (comment)
The text was updated successfully, but these errors were encountered: