Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Getting RoboRealm to Work w/ NetworkTables (http://www.chiefdelphi.com/forums/showthread.php?t=117094)

java4first 27-05-2013 14:04

Getting RoboRealm to Work w/ NetworkTables
 
1 Attachment(s)
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)


All times are GMT -5. The time now is 03:04.

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