View Single Post
  #6   Spotlight this post!  
Unread 19-01-2013, 16:56
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Using Network Tables

Quote:
Originally Posted by SuperMario View Post
I'm not sure what you are asking, but you can access the ip of the camera and see the feed from any computer.
k, nevermind, thread derail again... (Forgot to add the axis intenet camera module)

how do i instantiate a network table?

cameraTable = NetworkTable.getTable("RoboRealm");

gives me an error

Illegal State Exception : network table already initialized

(if i catch the error, it does nothing)

e/ nevermind.

current problem =

Code:
public void testPeriodic() {
        enabledPeriodic();
        NetworkTable server = NetworkTable.getTable("SmartDashboard");
	try
	{
			System.out.println(server.getNumber("IMAGE_COUNT", -1.0));
	}
	catch (TableKeyNotDefinedException ex)
	{
	}

    }
continually prints -1

my robo builder setup:

Axis_Internet_Camera 10.16.84.11
Threshhold 200-255 (sat)
Fill 500
Convex Hull
set IMAGE_COUNT = /SmartDashboad/IMAGE_COUNT
Network_Tables (port 1765, ip 10.16.84.2, send : IMAGE_COUNT)

Last edited by Arhowk : 19-01-2013 at 17:24.
Reply With Quote