I needed to perform a task where using the frames from the intel camera, I need to navigate the robot to perform collision avoidance. However, my code is unable to perform the task simultaneously. Both the .m files for serial communication of the bot (bot_serial.m) and for acquiring camera frames (values1.m) are attached.
I tried creating a function too for the camera frames and then called it in the bot_serial files but with this logic I am getting a single frame each time a condition is triggered in the bot_serial files and thus the camera cannot stream continuously and neither is the bot able to run continuously.
Please, help me with any possibility to continuously stream the camera and also run the bot at the same time. The values v1,v2 and v3 in values1.m file should be continuously updated and fed to the bot for it navigate accordingly.