![]() |
Network Tables?
Was just hoping someone could give me the down low on what they are used for/ how to use them?
|
Re: Network Tables?
NetworkTable object can be used to pass data to/from robot code and another program running on another computer on the network. SmartDashboard uses it to pass data to/from robot.
We use it to pass data from image processing software running on the driver station back to the robot. Here is example code: Code:
//======================================== |
Re: Network Tables?
Quote:
1. On the Robot side, I can see WPILib has provided the NetworkTable class, so that part seems straight forward. 2. On the PC side, who provides the NetworkTable class. Is there an SDK of some sort we need to download? We are planning to develop with C++ on the PC side with Microsoft Visual Studio (C# is fine too if necessary). |
Re: Network Tables?
1 Attachment(s)
NetworkTable is part of smartdashboard, available at
http://firstforge.wpi.edu/svn/repos/smart_dashboard We were looking at a number of solutions to get from PC into smartdashboard or directly to robot. Just the other day I came across IKVM. http://www.ikvm.net/ You can use this tool to "convert" a jar file into a .net assembly. run IKVM.exe NetworkTable_Client.jar and you get NetworkClient_Table.dll. Add it as a reference to your managed code project and start "talking" to your robot (see attached screen shot) |
Re: Network Tables?
Thanks. I don't have svn at work so I will download the smartdashboard code tonight and take a look. Without looking at the code, I am hoping the NetworkTable_Client.jar file is not overly long and complex. If so, in theory, I could just port it to C++ by hand. C++ and Java are similar enough that it should not be too difficult.
BTW, I did try to look for the NetworkTable_Client.jar file over the web browser interface but the source tree has many branches and very deep. Do you happen to know the path to that file? Thanks. |
Re: Network Tables?
Here is the full url to NetworkTable_Client:
http://firstforge.wpi.edu/svn/repos/...ent/Java/trunk It was more than I wanted to recode. |
Re: Network Tables?
I just figured out how to put and read data on the preferences grid of the Smartdashboard using Network Tables but there's is this harmless yet annoying issue that's bugging me.
I changed the name of the Key / Value in my code but instead of it replacing the old one, it made a second one. the old one is still there on the smartdashboard preferences grid and i can't figure out how to get rid of it.... any ideas? |
Re: Network Tables?
There is a python implementation of NetworkTables available in RobotPy. See the source tree in github.
|
Re: Network Tables?
Quote:
Code:
package org.usfirst.frc.team2585.robot; |
| All times are GMT -5. The time now is 10:19 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi