View Single Post
  #1   Spotlight this post!  
Unread 04-02-2017, 18:38
Anon10W1z Anon10W1z is offline
Registered User
FRC #3256 (WarriorBorgs)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2017
Location: San Jose, CA
Posts: 3
Anon10W1z is an unknown quantity at this point
TX1 pynetworktables not connecting to SmartDashboard

Our team is trying to get our Jetson TX1 to connect to the SmartDashboard network table using pynetworktables. It is unable to connect with the following code:

Code:
from networktables import NetworkTables
import logging

logging.basicConfig(level=logging.DEBUG)
NetworkTables.setIPAddress('10.32.56.2')
NetworkTables.setClientMode()
NetworkTables.initialize()
table = NetworkTables.getTable('SmartDashboard')
while True:
    print table.getNumber('gyro', 0)
as we get a constant output of 0. The SmartDashboard is updating, as we can see through the OutlineViewer and SmartDashboard. We are using static IP's. We are able to ping the roboRIO from the Jetson, so we are unsure what we are doing wrong.
Reply With Quote