Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   2016 Clientside NetworkTables lib (http://www.chiefdelphi.com/forums/showthread.php?t=144996)

Arhowk 01-03-2016 07:16

2016 Clientside NetworkTables lib
 
Hi! I'm writing a driver station in C++ but I can't find the build for the client side network tables if we aren't running win driver. Does anyone know where the new instructions / build kit are?

restouffer 01-03-2016 07:23

Re: 2016 Clientside NetworkTables lib
 
Is this what you're looking for?

https://github.com/PeterJohnson/ntcore

It has both a cmake and gradle build script, and compiles on Linux without any issues. You can select client mode with the NetworkTable::SetClientMode() call.

Arhowk 01-03-2016 07:59

Re: 2016 Clientside NetworkTables lib
 
Quote:

Originally Posted by restouffer (Post 1549420)
Is this what you're looking for?

https://github.com/PeterJohnson/ntcore

It has both a cmake and gradle build script, and compiles on Linux without any issues. You can select client mode with the NetworkTable::SetClientMode() call.


That looks like what I need (unless it turns out that I don't need jquery to run the js version :D) Thanks!

restouffer 01-03-2016 08:16

Re: 2016 Clientside NetworkTables lib
 
There is already an open source C++ / Qt driver station that you could look at to get ideas, or even to contribute to. It is multi-platform, so looking at how it handles network communication could be helpful for your project.

Arhowk 01-03-2016 08:58

Re: 2016 Clientside NetworkTables lib
 
Quote:

Originally Posted by restouffer (Post 1549430)
There is already an open source C++ / Qt driver station that you could look at to get ideas, or even to contribute to. It is multi-platform, so looking at how it handles network communication could be helpful for your project.

Interesting, didn't know that exists (spot on, this is a Qt project I'm working on). However, that project doesn't use network tables at all (the entire dashboard is done, the only thing I'm missing is just letting the robot know whats happening on the dashboard). Thanks for the link! Definitely something to look at for the offseason.

JohnM 31-03-2016 12:29

Re: 2016 Clientside NetworkTables lib
 
I'm trying to use cmake and mingw32 to build the library, but it doesn't seem to be compiling correctly. I know it says to use the Visual Studio compiler, but I'm not planning on using Visual Studio for my project. Here are the errors I get when I run "mingw32-make" on the command line.

spat 10-04-2016 12:08

Re: 2016 Clientside NetworkTables lib
 
Do you have your code available on GitHub? If so, I would be glad to help you out.

As a sidenote, the QDriverStation uses a separate library (also done by me :D) to handle all the client-to-robot communications, loading different communication protocols and registering joystick input. The library is also written with Qt and can be easily integrated to your project. Basically, you should only make the GUI and wire it to the library.

Links:

Arhowk 11-04-2016 19:57

Re: 2016 Clientside NetworkTables lib
 
Quote:

Originally Posted by spat (Post 1570285)
Do you have your code available on GitHub? If so, I would be glad to help you out.

As a sidenote, the QDriverStation uses a separate library (also done by me :D) to handle all the client-to-robot communications, loading different communication protocols and registering joystick input. The library is also written with Qt and can be easily integrated to your project. Basically, you should only make the GUI and wire it to the library.

Links:

I decided to switch to the basics and use a QTcpSocket :P thanks though.


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

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