Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   NetworkTables rPi (http://www.chiefdelphi.com/forums/showthread.php?t=144496)

axton900 23-02-2016 06:30

NetworkTables rPi
 
Hi!
Is it possible to install NetworkTables(c++) for our pi? We want to run c++ openCV scripts and use NetworkTables to grab the values and bring them back to the Rio.
Thanks!

weaversam8 23-02-2016 06:42

It is possible, I believe. We run it in Python with the pynetworktables library, so I'm sure there's one for C++.

virtuald 23-02-2016 10:58

Re: NetworkTables rPi
 
https://github.com/PeterJohnson/ntcore

axton900 23-02-2016 18:57

Re: NetworkTables rPi
 
That requires the use of toolchains which is not supported by Raspbian. Is there any other way?

virtuald 23-02-2016 23:42

Re: NetworkTables rPi
 
Quote:

Originally Posted by axton900 (Post 1545406)
That requires the use of toolchains which is not supported by Raspbian. Is there any other way?

I would recommend searching these forums, I'm sure someone else has done it.

axton900 27-02-2016 13:21

Re: NetworkTables rPi
 
If anyone knows how, if they could explain the process of doing this or point me in the right direction, then I would be very grateful!

Thanks!!

Thad House 27-02-2016 13:33

Re: NetworkTables rPi
 
Quote:

Originally Posted by axton900 (Post 1547970)
If anyone knows how, if they could explain the process of doing this or point me in the right direction, then I would be very grateful!

Thanks!!

I was able to do it a while ago. As long as you are running the lastest raspbian, it should have GCC 4.9, and compile correctly. It just takes a while. You might have to use cmake, I don't remember.

simon-andrews 27-02-2016 13:37

Re: NetworkTables rPi
 
As Thad said, you can compile directly on the Raspberry Pi. CMake is definitely the easier option.

Should be something like:
Code:

cd ntcore
cmake .
make
sudo make install

Then when you compile you would add the "-lntcore" flag to G++.

I remember Java giving some trouble with compiling. If it does run "cmake . -DWITHOUT_JAVA=true" instead.

axton900 27-02-2016 17:37

Re: NetworkTables rPi
 
Thanks for the help! We really appreciate it!

JefferMC 27-02-2016 22:54

Re: NetworkTables rPi
 
There is a version of ntcore built for the Raspberry Pi 2/Debian for use with GRIP. You might want to look at:

https://github.com/WPIRoboticsProjec...eases/tag/v0.1

axton900 01-03-2016 15:33

Re: NetworkTables rPi
 
I'm running into an error after installing and compiling and using the -lntcore prefix but I'm getting the error, "error while loading libraries, libntcore.so.1 cannot open shared object file: No such file or directory" What should I do?

simon-andrews 05-03-2016 10:42

Re: NetworkTables rPi
 
You need to append /usr/local/lib to your library path. CMake installs libntcore.so to /usr/local/lib which is not on the library path by default. This answer on StackOverflow answers the question better than I can.

Sorry for the late response and I hope this helps!

billbo911 05-03-2016 10:49

Re: NetworkTables rPi
 
I have a quick question for you. Depending on your response, I might have an alternate solution that works well for us.
I believe I know the answer, but the question is, are you running your RPi on the robot? In other words, are you doing your vision processing on the RPi on the robot.?

axton900 22-03-2016 17:02

Re: NetworkTables rPi
 
Yes, yes we are. We seemed to have it working now but we are eager to hear your alternate solution :) Sorry for the late response!!


All times are GMT -5. The time now is 09:50.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi