I have a situation where I'm controlling my robot, which has a Kinect, via Matlab. I also have matlab code that gets depth information directly from Kinect. The robots actuators behave in synchronous fashion, i.e., the Matlab code won't return unless the action is completed. Thus, during action execution, I'm not getting depth information.
I would like to keep getting depth info from the kinect (perception) in thread/process 1 and would like to send signals to actuators, if necessary, in another thread/process. The tricky part is that the perception and action may or may not communicate with each other, i.e., they may or may not be independent. This being said, parfor etc in Matlab is not a good option for me since this is not parallel computation, rather two parallel processes that are completely different.
I'm using Freenect wrapper for perception and iCreate_toolbox wrapper for actuation, in Matlab.