NetworkTables - Decatur-Robotics/Common-Library-And-Wiki GitHub Wiki
What are NetworkTables?
NetworkTables is a tool we use to communicate from the Pi to the Rio. We could use it to communicate between any two devices, but that’s our main use case. You set up tables with values (each has a specific key).
| Function | Python | Java |
|---|---|---|
| Send to Table | rioComms.send(Table, Key, Value) | |
| Get from Table | TeamUtils.getFromNetworkTables(Table, Key) |
Reading the data:
When you run the code under the function “Get from Table”, here’s how it works:
The parameters “Table” and “Key” are strings corresponding to the table (ex. apriltags) and key (tag1 X position).