Use the Queue Operations functions to communicate between processes in a robotics application when transferring data on a single target. Processes that communicate using Queue Operations functions can run in parallel while also running at different rates.
The following figure shows an example of a robotics application that uses queues.
The following events occur in the previous figure.
|The obstacle detection process acquires data at a rate of 200 times per second and stores those data points in a queue.|
|Because the path planning process is computationally intensive, it runs approximately two times per second and waits until the queue obtains 100 data points.|
|When the queue contains 100 data points, the path planning process calculates a path for the robot.