Go to Post Don't like the predictions? Go out there and prove me wrong! - Looking Forward [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-05-2013, 14:04
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 56
java4first is an unknown quantity at this point
Getting RoboRealm to Work w/ NetworkTables

Hi -

Java for robot programming.
2.50.24 for RoboRealm version (just updated this morning).

We have been using RoboRealm and the SocketCommunication module to get the variables down to the robot (so we had a server thread running on the bot). I wanted to move to NetworkTables ... in part to free up the port for something else.

However, when I added the NetworkTables module to RoboRealm according to the instructions (see the attached picture of the settings, which seem to be right based on what I read), I get exceptions thrown on the robot (pasted in at the end of this post). I took a quick look through the NetworkTables code, and nothing jumpted out at me.

It appears to be 'connecting', as it offers up all the rest of the variables we have in the table from the robot as something to read. And, when playing around with it, during a reboot and a power cycle, I get messages in RoboRealm about "Write Failure! Disconnected from server".

At this point I have no code in the robot trying to read them. But if I run the TableViewer application, the variables from RoboRealm never show up in it - which I am assuming they would if it were working.

I'm assuming it is something really simple ...

Thanks!
Stu

edu.wpi.first.wpilibj.networktables2.server.Server ConnectionAdapter@1e entered connection state: GOT_CONNECTION_FROM_CLIENT
[frcrun] [cRIO] edu.wpi.first.wpilibj.networktables2.server.Server ConnectionAdapter@1e entered connection state: CONNECTED_TO_CLIENT
[frcrun] [cRIO] Uncaught exception in Thread.run():
[frcrun] [cRIO] on thread Server Connection Reader Thread
[frcrun] [cRIO] java.lang.IllegalStateException: Cannot set the Id of a table entry that already has a valid id
[frcrun] [cRIO] at edu.wpi.first.wpilibj.networktables2.NetworkTableE ntry.setId(NetworkTableEntry.java:147)
[frcrun] [cRIO] at edu.wpi.first.wpilibj.networktables2.server.Server NetworkTableEntryStore.addEntry(ServerNetworkTable EntryStore.java:32)
[frcrun] [cRIO] at edu.wpi.first.wpilibj.networktables2.AbstractNetwo rkTableEntryStore.offerIncomingAssignment(Abstract NetworkTableEntryStore.java:146)
[frcrun] [cRIO] at edu.wpi.first.wpilibj.networktables2.server.Server ConnectionAdapter.offerIncomingAssignment(ServerCo nnectionAdapter.java:106)
[frcrun] [cRIO] at edu.wpi.first.wpilibj.networktables2.connection.Ne tworkTableConnection.read(NetworkTableConnection.j ava:147)
[frcrun] [cRIO] at edu.wpi.first.wpilibj.networktables2.connection.Co nnectionMonitorThread.run(ConnectionMonitorThread. java:30)
[frcrun] [cRIO] at edu.wpi.first.wpilibj.networktables2.thread.Defaul tThreadManager$PeriodicNTThread$1.run(DefaultThrea dManager.java:18)
[frcrun] [cRIO] at java.lang.Thread.run(231)
[frcrun] [cRIO] in virtual method #47 of com.sun.squawk.VMThread(bci=42)
[frcrun] [cRIO] in static method #3 of com.sun.squawk.VM(bci=6)
Attached Thumbnails
Click image for larger version

Name:	RoboRealm-GUI.png
Views:	71
Size:	75.0 KB
ID:	14896  
Closed Thread


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 03:04.

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