Go to Post When we learn physics, we almost always "ignore friction". The real world never does... - Mike Betts [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2016, 15:35
dpotteiger dpotteiger is offline
Registered User
FRC #2377
Team Role: Mentor
 
Join Date: Dec 2014
Rookie Year: 2015
Location: Pasadena Maryland
Posts: 4
dpotteiger is an unknown quantity at this point
Guidance For Approach To Feed Video Stream From Raspberry Pi With HD3000 To Dashboard

Has anyone tried sending MJPG video from a Raspberry Pi to the Dashboard?

We are developing our robot to use a single USB HD3000 camera. The camera is connected to a Raspberry Pi running Python along with OpenCV support. Our thought is to send the camera frame data to both our image processing logic and the dashboard. We can send it through the Roborio but it appears we would have to modify the Camera Server code somewhat. We were planning on connecting the Pi to a the on board Ethernet, so we had another thought to pipe it to the dashboard directly. Thank you in advance for your thoughts.
  #2   Spotlight this post!  
Unread 20-01-2016, 16:06
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Guidance For Approach To Feed Video Stream From Raspberry Pi With HD3000 To Dashb

You can modify the dashboard code to point to the Pi instead of the RoboRIO (not sure what language you're using). You'll need to have the Pi transmit the images as the driverstation is expecting.

The dashboard is expecting to read a 4 byte value coresponding to the length of the image and then received a JPG which is that value in length. Alternatively you could write your own receiver.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
  #3   Spotlight this post!  
Unread 20-01-2016, 23:33
dpotteiger dpotteiger is offline
Registered User
FRC #2377
Team Role: Mentor
 
Join Date: Dec 2014
Rookie Year: 2015
Location: Pasadena Maryland
Posts: 4
dpotteiger is an unknown quantity at this point
Re: Guidance For Approach To Feed Video Stream From Raspberry Pi With HD3000 To Dashb

Thank you for your reply. We were definitely considering this approach... Our native code on the Robot is Java. We are using the Smart Dashboard. Any thoughts how to modify Dashboard code?
  #4   Spotlight this post!  
Unread 21-01-2016, 06:45
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Guidance For Approach To Feed Video Stream From Raspberry Pi With HD3000 To Dashb

Unfortunately I don't use Java (LabView team). At worst, you could open a port in Java to connect to the Pi and display the image in a popup window. If you post a copy of the stock default Java dashboard I may be able to find the setting.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
  #5   Spotlight this post!  
Unread 25-02-2016, 07:28
coyotepod coyotepod is offline
Registered User
FRC #3603 (Cyber Coyotes)
Team Role: Teacher
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Hersey, MI
Posts: 1
coyotepod is an unknown quantity at this point
Re: Guidance For Approach To Feed Video Stream From Raspberry Pi With HD3000 To Dashb

I'd love to learn more about this! Any updates or tutorial suggestions for pi and JAVA communication? We are new to JAVA this year (Iterative but considering Command Base). We have a pi and HD3000 but don't yet know how to stream a video to the Java dashboard.
  #6   Spotlight this post!  
Unread 25-02-2016, 09:41
DubstepLion1's Avatar
DubstepLion1 DubstepLion1 is offline
Registered User
FRC #5518 (Techno Wolves)
Team Role: Leadership
 
Join Date: Feb 2015
Rookie Year: 2015
Location: United States
Posts: 15
DubstepLion1 is an unknown quantity at this point
Re: Guidance For Approach To Feed Video Stream From Raspberry Pi With HD3000 To Dashb

There is a plugin available for the SmartDashboard. Put the jar folder in the C:\Users\[USER]\SmartDashboard\extensions folder (on Windows). You should be able to add the extension and edit its properties such as the IP address and port number.
Attached Files
File Type: zip MJPGStream_SDExtension.zip (5.3 KB, 16 views)
Closed Thread


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 09:53.

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