Log in

View Full Version : Network table problems


Sherrardtr
07-05-2013, 20:12
Hello everyone,
I have been trying to develop an off board image processing program for my team. The actual image processing works fine but when I try to send the data back to the robot, it gets a little sketchy. On the laptop side I am putting number onto the network table with the following( in a nutshell ):


NetworkTable table;
Table.getTable("key").putnumber("X" , -1);

Everytime I try to put the number to the table, which is when it sees a square, the video feed freezes. However when I remove the square from the view of the camera, e feed resumes.

I guess what I am asking is, what would be the proper way to transmit data from the laptop (driverstation) to the robot?
Thank you!

otherguy
08-05-2013, 12:08
Can you provide a little more info on when you're calling:
Table.getTable("key").putnumber("X" , -1);

And a description of the hardware setup might help too.

Just a guess without knowing a little more about your situation...
When a target is in the view of your camera, are you flooding the dashboard/robot with data? The video freezing on the dashboard is indicative of something between the camera and dashboard getting real busy. Again, just a guess.

joelg236
08-05-2013, 12:58
The video freezing on the dashboard is indicative of something between the camera and dashboard getting real busy. Again, just a guess.

If your dashboard is a simple display of the stream from the camera, this would be it.

If your dashboard is a display of your "processed" image, then it could be a problem in how you are sending your data. I don't have experience with sending images, so maybe someone else can fill that in for me.