Go to Post Play FRC like Bruce Lee, not an MMA fighter. - Jessica Boucher [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 18-01-2013, 14:26
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,040
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
pynetworktables: python wrappers for NetworkTables

The RobotPy project has a new github repo that contains SIP-based python wrappers for NetworkTables that will work on your PC. Currently only the server (robot) side of the wrappers work, but in theory the client side should work with a bit of patching. I won't be able to work on fixing that until next week.

https://github.com/robotpy/pynetworktables

Feedback and patches welcome.
__________________
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

Last edited by virtuald : 18-01-2013 at 14:37.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2013, 17:52
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,040
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: python wrappers for NetworkTables

Ok, found the client bug in WPILib. The python wrappers now will do server and client mode, and there are samples included with the source code that demonstrate this functionality.

For the bug, see http://firstforge.wpi.edu/sf/go/artf...3589813396 74 .
__________________
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 24-01-2013, 22:24
PaulDavis1968's Avatar
PaulDavis1968 PaulDavis1968 is offline
Embedded Software/Systems Engineer
AKA: Master of Complexity
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Endicot NY
Posts: 91
PaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nice
Re: pynetworktables: python wrappers for NetworkTables

Quote:
Originally Posted by virtuald View Post
The RobotPy project has a new github repo that contains SIP-based python wrappers for NetworkTables that will work on your PC. Currently only the server (robot) side of the wrappers work, but in theory the client side should work with a bit of patching. I won't be able to work on fixing that until next week.

https://github.com/robotpy/pynetworktables

Feedback and patches welcome.
I am curious if I could do this with Python 2.7 (I know SIP supports it)?

I ask because I was thinking about using SimpleCV for vision and it would make life much easier.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-01-2013, 22:49
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,040
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: python wrappers for NetworkTables

Quote:
Originally Posted by PaulDavis1968 View Post
I am curious if I could do this with Python 2.7 (I know SIP supports it)?

I ask because I was thinking about using SimpleCV for vision and it would make life much easier.
I haven't tried it, but I don't have any reason to believe it wouldn't work.
__________________
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
  #5   Spotlight this post!  
Unread 25-01-2013, 19:07
PaulDavis1968's Avatar
PaulDavis1968 PaulDavis1968 is offline
Embedded Software/Systems Engineer
AKA: Master of Complexity
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Endicot NY
Posts: 91
PaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nice
Re: pynetworktables: python wrappers for NetworkTables

Use the following commands to build pynetworktables. Do the following on
Windows:

set ROBOTPY=c:\path\to\robotpy\src

What do you mean by src

Why is this different than the unix version?
Reply With Quote
  #6   Spotlight this post!  
Unread 25-01-2013, 19:13
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,040
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: python wrappers for NetworkTables

Quote:
Originally Posted by PaulDavis1968 View Post
Use the following commands to build pynetworktables. Do the following on
Windows:

set ROBOTPY=c:\path\to\robotpy\src

What do you mean by src

Why is this different than the unix version?

Read it out loud. It is not meant to be a literal path. It is the path to the robotpy source directory. It is different from the unix one by accident.
__________________
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
  #7   Spotlight this post!  
Unread 25-01-2013, 19:21
PaulDavis1968's Avatar
PaulDavis1968 PaulDavis1968 is offline
Embedded Software/Systems Engineer
AKA: Master of Complexity
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Endicot NY
Posts: 91
PaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nice
Re: pynetworktables: python wrappers for NetworkTables

I did read it out loud being different is what confused me. Thanks I got it.
Reply With Quote
  #8   Spotlight this post!  
Unread 26-01-2013, 02:42
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,040
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: python wrappers for NetworkTables

Quote:
Originally Posted by PaulDavis1968 View Post
I did read it out loud being different is what confused me. Thanks I got it.
Excellent. I've changed the documentation too, so it doesn't confuse anyone else
__________________
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
  #9   Spotlight this post!  
Unread 02-02-2013, 10:31
tkbletsc tkbletsc is offline
Registered User
FRC #4561
 
Join Date: Jan 2013
Location: Raleigh, NC
Posts: 10
tkbletsc is just really nicetkbletsc is just really nicetkbletsc is just really nicetkbletsc is just really nice
Re: pynetworktables: python wrappers for NetworkTables

Rookie team here, very confused.

First, is this necessary to use SmartDashboard from Python?

Second, RobotPy has a simple installable on firstforge which we used. Is there something comparable for this pynetworktables, or do I need to build from scratch?

Third, if I do have to build it, do I need to build+install robotpy from source too, or does the pynetworktables build process give me something I add on to my robotpy install?

Thanks!
Reply With Quote
  #10   Spotlight this post!  
Unread 02-02-2013, 12:59
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,040
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: python wrappers for NetworkTables

This allows you to use NetworkTables/SmartDashboard from python on your PC. This code does not run on the Robot.

This code would be useful if you had something on your driver station or programming laptop that wanted to communicate with your robot code via NetworkTables, or if you were running unit tests on your PC (using fake-wpilib) that use SmartDashboard.

There currently are no binary distributions of pynetworktables, so if you wanted to use it, then you would need to compile it yourself.
__________________
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
  #11   Spotlight this post!  
Unread 03-02-2013, 06:15
tkbletsc tkbletsc is offline
Registered User
FRC #4561
 
Join Date: Jan 2013
Location: Raleigh, NC
Posts: 10
tkbletsc is just really nicetkbletsc is just really nicetkbletsc is just really nicetkbletsc is just really nice
Re: pynetworktables: python wrappers for NetworkTables

Ah, so smart dashboard should work from stock robotpy without modification? ... then I have some debugging to do... :-)

Thanks!
Reply With Quote
  #12   Spotlight this post!  
Unread 19-02-2013, 19:38
PaulDavis1968's Avatar
PaulDavis1968 PaulDavis1968 is offline
Embedded Software/Systems Engineer
AKA: Master of Complexity
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Endicot NY
Posts: 91
PaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nice
Re: pynetworktables: python wrappers for NetworkTables

I am trying to build the network tables using the instructions on a ODROID-U2 ubuntu - linaro 12.3

linaro@linaro-ubuntu-desktop:~/pynetworktables$ ROBOTPY="/home/linaro/robotpy/" python setup.py build
running build
running build_ext
building 'pynetworktables' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablescmodule.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablescmodule.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesEntryValue.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesEntryValue.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesSmartDashboard.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesSmartDashboard.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesSendableChooser.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesSendableChooser.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesNamedSendable.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesNamedSendable.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesSendable.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesSendable.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesWriteManager.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesWriteManager.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesTransactionDirtier.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesTransactionDirtier.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesOutgoingEntryReceiver_NULL_t.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesOutgoingEntryReceiver_NULL_t.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesNetworkTableEntry.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesNetworkTableEntry.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesOutgoingEntryReceiver.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesOutgoingEntryReceiver.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesTableListenerManager.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesTableListenerManager.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesStringArray.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesStringArray.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesNumberArray.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesNumberArray.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesNetworkTableEntryTypeManager.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesNetworkTableEntryTypeManager.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesNetworkTableEntryType.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesNetworkTableEntryType.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesBooleanArray.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesBooleanArray.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesArrayEntryType.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesArrayEntryType.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesComplexEntryType.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesComplexEntryType.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesArrayData.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesArrayData.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesComplexData.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesComplexData.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesPeriodicNTThread.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesPeriodicNTThread.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesNTThread.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesNTThread.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/linaro/pynetworktables/src -I/home/linaro/pynetworktables/sip -I/home/linaro/robotpy/Packages/wpilib -I/home/linaro/robotpy/Packages/wpilib/WPILib -I/usr/include/python2.7 -I/usr/include/python2.7 -c build/temp.linux-armv7l-2.7/sippynetworktablesDefaultThreadManager.cpp -o build/temp.linux-armv7l-2.7/build/temp.linux-armv7l-2.7/sippynetworktablesDefaultThreadManager.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
/home/linaro/robotpy/Packages/wpilib/WPILib/networktables2/thread/DefaultThreadManager.h: In member function ‘virtual NTThread* sipDefaultThreadManager::newBlockingPeriodicThread (PeriodicRunnable*, const char*)’:
/home/linaro/robotpy/Packages/wpilib/WPILib/networktables2/thread/DefaultThreadManager.h:23:20: error: ‘virtual NTThread* DefaultThreadManager::newBlockingPeriodicThread(Pe riodicRunnable*, const char*)’ is private
build/temp.linux-armv7l-2.7/sippynetworktablesDefaultThreadManager.cpp:68:69: error: within this context
/home/linaro/robotpy/Packages/wpilib/WPILib/networktables2/thread/DefaultThreadManager.h: In function ‘PyObject* meth_DefaultThreadManager_newBlockingPeriodicThrea d(PyObject*, PyObject*)’:
/home/linaro/robotpy/Packages/wpilib/WPILib/networktables2/thread/DefaultThreadManager.h:23:20: error: ‘virtual NTThread* DefaultThreadManager::newBlockingPeriodicThread(Pe riodicRunnable*, const char*)’ is private
build/temp.linux-armv7l-2.7/sippynetworktablesDefaultThreadManager.cpp:95:100: error: within this context
/home/linaro/robotpy/Packages/wpilib/WPILib/networktables2/thread/DefaultThreadManager.h:23:20: error: ‘virtual NTThread* DefaultThreadManager::newBlockingPeriodicThread(Pe riodicRunnable*, const char*)’ is private
build/temp.linux-armv7l-2.7/sippynetworktablesDefaultThreadManager.cpp:95:143: error: within this context
error: command 'gcc' failed with exit status 1
linaro@linaro-ubuntu-desktop:~/pynetworktables$

Any Ideas?

Thanks,

Paul Davis
Reply With Quote
  #13   Spotlight this post!  
Unread 20-02-2013, 00:44
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,040
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: python wrappers for NetworkTables

You need the current git head of RobotPy to compile pynetworktables. RobotPy uses git submodules now, and if you don't check it out correctly then pynetworktables will not compile for you.

Code:
git clone https://github.com/robotpy/robotpy.git robotpy
cd robotpy
git submodule init
git submodule update
I've gotten it to work on Windows and Linux for Python 2 and 3.
__________________
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
  #14   Spotlight this post!  
Unread 20-02-2013, 01:38
PaulDavis1968's Avatar
PaulDavis1968 PaulDavis1968 is offline
Embedded Software/Systems Engineer
AKA: Master of Complexity
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Endicot NY
Posts: 91
PaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nice
Re: pynetworktables: python wrappers for NetworkTables

That explains allot. Thanks
Reply With Quote
  #15   Spotlight this post!  
Unread 21-02-2013, 11:27
PaulDavis1968's Avatar
PaulDavis1968 PaulDavis1968 is offline
Embedded Software/Systems Engineer
AKA: Master of Complexity
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Endicot NY
Posts: 91
PaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nice
Re: pynetworktables: python wrappers for NetworkTables

Quote:
Originally Posted by virtuald View Post
You need the current git head of RobotPy to compile pynetworktables. RobotPy uses git submodules now, and if you don't check it out correctly then pynetworktables will not compile for you.

Code:
git clone https://github.com/robotpy/robotpy.git robotpy
cd robotpy
git submodule init
git submodule update
I've gotten it to work on Windows and Linux for Python 2 and 3.
Thanks that worked.
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 19:51.

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