|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||||
|
||||||
|
NetworkTables on PC
I'm trying to prototype some code using NetworkTables on my PC, without needing a cRIO. However, when I run it, I get an exception pointing to the following line in edu.wpi.first.wpilibj.networktables.ConnectionMana ger.java
Code:
server = (ServerSocketConnection) Connector.open("socket://:" + PORT);
|
|
#2
|
||||
|
||||
|
Re: NetworkTables on PC
You can compile the Squawk VM to run on desktop platforms. Instructions are given at http://java.net/projects/squawk/pages/BuildingSquawk with the small caveat that the SVN repository has moved to https://svn.java.net/svn/squawk~svn/trunk/. Note that this isn't a complete answer because a lot of the WPILib/FRC Framework functionality require native library calls, but it should get you very close if all you need is the NetworkTables.
Alternately, there's an effort going on at http://sourceforge.net/projects/frcsimulator/ with some alpha code to develop a "cRIO simulator" for the Java platform. |
|
#3
|
||||||
|
||||||
|
Re: NetworkTables on PC
I found an easier way. In the smartdashboard SVN on firstforge, there is a NetworkTable Client, Server, and Robot folder. The Server did what I needed and ran on my PC.
I could only find these in the 2012 tag. They seem to have been deleted in trunk. Last edited by Joe Ross : 09-27-2012 at 01:51 PM. |
|
#4
|
|||
|
|||
|
Re: NetworkTables on PC
My understanding is that this is being reorganized to better share the implementation. In the past there were basically 3 separate code-bases that all needed to be kept in sync.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|