View Full Version : Writing a NetworkTables Client in C++
William Kunkel
22-01-2013, 11:11
Is there any good documentation for writing NetworkTables clients in C++? As far as I can tell, the ScreenStepsLive documentation only tells you how to access them from the server (robot) in C++, and has documentation for a client in Java. I've tried reading through the class reference, but I don't really understand the architecture of the system.
virtuald
23-01-2013, 16:59
Check out the mid-season update (http://firstforge.wpi.edu/sf/frs/do/viewRelease/projects.wpilib/frs.2013_frc_update_for_c.mid_season_c_software_up date).
virtuald
23-01-2013, 17:20
Never mind. It just has a java library.
https://github.com/robotpy/pynetworktables is a python wrapper of the C++ libraries for a PC. Currently only the server (robot) works, but I'm hoping to get the client part working by later this week.
virtuald
23-01-2013, 17:51
Ok, found the client bug in WPILib. The python wrappers (https://github.com/robotpy/pynetworktables) now will do server and client mode, and there are samples that let you do this.
Presumably you could extract the magic glue from my python wrappers to compile yourself a C++ version of NetworkTables.
For the bug, see http://firstforge.wpi.edu/sf/go/artf1600?nav=1&_pagenum=1&returnUrlKey=1358981339674
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.