|
Re: Using a Kinect as a primary camera for drivers
There are numerous threads asking how to communicate between devices on the robot.
I've attached an image to show how the networking can be accomplished in LV.
The TCP and UDP icons are in the Data Communication/Protocols directory. When you don't need to receive all data, and are sending smallish amounts, I prefer to use UDP. It is really simple to use. You need to identify how to encode the data. You can use json, xml, or flattened binary. Just have the read side match and have it check for timeout errors.
TCP is similar -- but different. Large amounts of data, above a few Kbytes will typically use TCP instead of UDP, and if you are sending a protocol where all elements must be processed in order, TCP is your friend.
Greg McKaskle
|