Go to Post FIRST is the only high-school sport where everyone can become a pro - David Brinza [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 16-01-2013, 19:55
Merfoo's Avatar
Merfoo Merfoo is offline
Registered User
FRC #0955 (CV Robotics)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: America
Posts: 48
Merfoo is an unknown quantity at this point
Implementing NetworkTables

As the title says how would I implement Network tables to send/receive data from the robot? I keep seeing posts where they say "Robot code" and "Smartdashboard code". I understand how to use Network tables in the robot code, but what I don't understand is the Smartdashboard code part. Like where do I write that?
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2013, 12:16
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,590
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: Implementing NetworkTables

If all you want do do is display and send numeric data (or use one of the built in widgets), you don't need to code anything for SmartDashboard. All you need to do is call SmartDashboard.putNumber early in the code (so that it pops up in the SmartDashboard) and then SmartDashboard.getNumber to retrieve the number from the SmartDashboard.

There's some documentation about the SmartDashboard here: http://wpilib.screenstepslive.com/s/3120/m/7932
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2013, 15:55
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Implementing NetworkTables

NetworkTables is the underlying networking technology to send and receive values between the robot and the SmartDashboard and LabVIEW dashboard. It can also be used by your own programs to distribute values between the robot and clients, for example, vision processing or custom dashboards. In this example:

http://wpilib.screenstepslive.com/s/...client-pc-side

you can see how to write a robot-side and client-side (PC) program that reads and writes some values to NetworkTables.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2013, 15:55
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Implementing NetworkTables

Quote:
Originally Posted by Joe Ross View Post
If all you want do do is display and send numeric data (or use one of the built in widgets), you don't need to code anything for SmartDashboard. All you need to do is call SmartDashboard.putNumber early in the code (so that it pops up in the SmartDashboard) and then SmartDashboard.getNumber to retrieve the number from the SmartDashboard.

There's some documentation about the SmartDashboard here: http://wpilib.screenstepslive.com/s/3120/m/7932
What about not just using SmartDashboard? For example, using the regular dashboard with NetworkTables? How do you create a client on the cRIO to connect to it?

EDIT: Brad replied with it, thanks

Brad, thank you for finally getting this documentation up. NetworkTables looks like a powerful resource, but without documentation like this it was virtually unusable. Thank you so much for finally getting this up, so far it looks like it's exactly what teams need to be able to functionally use NetworkTables and exactly what I was hoping you guys would put out. Hopefully updates to the Java API documentation comes next!

Last edited by jesusrambo : 17-01-2013 at 15:58.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2013, 17:02
ktrobotcreator's Avatar
ktrobotcreator ktrobotcreator is offline
Programmer
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Jul 2012
Rookie Year: 2007
Location: Colorado
Posts: 38
ktrobotcreator is an unknown quantity at this point
Re: Implementing NetworkTables

How do you use it with image processing from RoboRealm though? On this page, it says that you need to set up a desktop program. My question is what template you use to make it and where it goes in what classpath. Thanks!
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 12:48.

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