Go to Post To me, FIRST is about having students realize that there IS an answer to the age old high school question: "when are we ever going to use this crap?" - Chris Hibner [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-09-2012, 23:30
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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);
I'm assuming it's because the NetworkTable code was targeted for the robot and JavaME. Is there some way to run this code on my computer, like a JavaME SDK, or emulator, or something?
Reply With Quote
  #2   Spotlight this post!  
Unread 26-09-2012, 23:47
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
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.
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote
  #3   Spotlight this post!  
Unread 27-09-2012, 11:56
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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 : 27-09-2012 at 13:51.
Reply With Quote
  #4   Spotlight this post!  
Unread 27-09-2012, 13:31
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: NetworkTables on PC

Quote:
Originally Posted by Joe Ross View Post
I could only find these in the 2012 tag. They seem to have been deleted in trunk.
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:14.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi