Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Unable to get the camera frame and at the same time perform serial communication with the bot without excessive delay.

1 vue (au cours des 30 derniers jours)
Hi,
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.
Thanks.
  8 commentaires
Ahad Maqsood
Ahad Maqsood le 16 Sep 2019
What can be the other way to connect to it and perform the operation?
Ahad Maqsood
Ahad Maqsood le 16 Sep 2019
Modifié(e) : Ahad Maqsood le 16 Sep 2019
I have downsized the image to 72x148 pixels. Greater pixels doesn't really matter as it is a threshold image. The frames can now be obtained much faster. The only think I need to do now is to use the values v1, v2 and v3 obtained from the frame in the other function i.e. bot_serial where I am performing serial communication.

Réponses (0)

Produits


Version

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by