Go to Post While FIRST's goal is to inspire young people, it will be much easier to do that if we also inspire all the older people as well. - E. Wood [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
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 29-02-2016, 19:54
kylelanman's Avatar
kylelanman kylelanman is offline
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 185
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
pynetworktables not working.

We are attempting to get pynetworktables running on a BeagleBone Black. We are currently trying to run the sample code to get it working.

https://github.com/robotpy/pynetworktables/blob/master/samples/nt_driverstation.py


When using the correct IP address we get the following output.
Code:
root@beaglebone:~# python main2.py 10.24.81.100
robotTime: N/A
robotTime: N/A
INFO:nt:Client 0x00164648 entered connection state: CONNECTED_TO_SERVER
robotTime: N/A
robotTime: N/A
robotTime: N/A
robotTime: N/A
When using the incorrect IP address we get the following output.
Code:
root@beaglebone:~# python main2.py 10.24.81.101
robotTime: N/A
robotTime: N/A
robotTime: N/A
robotTime: N/A
robotTime: N/A
robotTime: N/A
Based on the logs I feel like it is connecting to the roboRio correctly but when using OutlineViewer we don't see robotTime which makes sense given we are getting a KeyError in the code above.

Has anyone else ran into problems like this?
__________________
"May the coms be with you"

Is this a "programming error" or a "programmer error"?

Reply With Quote
  #2   Spotlight this post!  
Unread 29-02-2016, 20:22
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,032
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: pynetworktables not working.

Are you running LabVIEW on the robot? The stock version of pynetworktables is not compatible with LabVIEW NT implementations, you'll need to use the alpha release instead.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #3   Spotlight this post!  
Unread 29-02-2016, 20:40
kylelanman's Avatar
kylelanman kylelanman is offline
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 185
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
Re: pynetworktables not working.

Quote:
Originally Posted by virtuald View Post
Are you running LabVIEW on the robot? The stock version of pynetworktables is not compatible with LabVIEW NT implementations, you'll need to use the alpha release instead.
No...but the version was the problem. A another team member setup the first BeagleBone and used version 2015.3.0 I setup the second one using pip and ended up with version 2016.0.0alpha1 Downgrading to 2015.3.1 fixed the problem.

Thanks!!!
__________________
"May the coms be with you"

Is this a "programming error" or a "programmer error"?

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 21:39.

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