Go to Post "You know, if we shoot the flame thrower out of the back of the car while driving down Main Street at 2:00am, we are probably going to get in a lot of trouble..." - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 16-01-2017, 17:52
buckskinner1776 buckskinner1776 is offline
Registered User
FRC #3098
 
Join Date: Jan 2015
Location: Waterford
Posts: 8
buckskinner1776 is an unknown quantity at this point
JAVA GUI W/Camera(s)

Our team has previously done dashboards in smart dashboard and labview. Smart dashboard leaves a lot to be desired and labview is another monster. Last year we wrote a Java swing GUI that would communicate via network tables and send and receive integers. I'm guessing that will make it closing to doing doubles and Booleans as well.

We would like to do vision on board the bot this year. The goal is to have one or two cameras sending video to an onboard PC AND back to the dashboard GUI. I am the mentor and haven't done this type of thing before. I'm looking for some direction if anyone has experience with this.

We're looking at using Java FX this year to develop the GUI. Past that I'm wondering about two camera(s) that could be connected to either the roborio or the onboard PC. Grip will be processing on the onboard PC. From this I'm assuming we could stream one of the two camera feeds back to the dashboard. How do we stream video? How do we receive the stream in FX? Should the cameras be attached to the RoboRio or the onboard PC?

Thanks for any input ahead!
Rob
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2017, 22:05
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Student
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 353
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
Re: JAVA GUI W/Camera(s)

The whole purpose of the onboard PC is so that you can do your vision processing (grip, openCV, take your pick) without the latency and issues with the FMS. With having the onboard PC and doing GRIP on your driver station you have the disadvantages to both without any advantages other than offloading from the roboRIO. Either you can run GRIP on that on board PC or just skip the on board PC and stream directly to the driver station. If you're going to the effort of the PC, that's the much preferable situation. I'm going to assume you're doing that for the rest of this explanation.

Again, edit once I realized I was wrong and misunderstood you. The two tutorials below have instructions on how to set it up, and you can just use the same IP listed in the tutorials to be on your smart dashboard. There are lots of examples of how to display MJEG streamer, the simplest just being a browser window.

I wrote an entire two page simple tutorial, realized I was wrong, then realized GRIP had a much better tutorial here: https://github.com/WPIRoboticsProjec...Raspberry-Pi-2

It says Raspberry Pi 2, but most of these will have the exact same instuctions (minus a few things that we can help with). There's also this tutorial on the official FRC documentation that is PC based instead of Pi based: https://s3.amazonaws.com/screensteps...pdf?1482933081

If you need any further help, feel free to respond.
__________________

F4 Network Website Designer

2010-2012: A Whole Buncha FLL Teams; Team Spirit, Gracious Professionalism Award winner
2015-Current: FRC 1982, Captain, Electrical Lead
Beginning FIRST Volunteer

Moderator on the FIRSTwiki

Last edited by Bkeeneykid : 16-01-2017 at 22:08.
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 12:35.

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