Go to Post FIRST is inspiration. No matter how you do it, you learn something. Stop being silly. Stop making accusations. Go build robots. Now. - Aignam [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 14-01-2017, 13:26
RileyC3826 RileyC3826 is offline
Registered User
FRC #3826 (Sequim Robotics Federation)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2013
Location: Sequim, Washington
Posts: 9
RileyC3826 is an unknown quantity at this point
Processing video feed with GRIP on DS Laptop

Our team wants to pursue vision processing this year. So far, I have been able to create a GRIP pipeline able to detect the position of the retro-reflective tape, and generate code to use with our main program. When running our robot, we can print the position of the tape to the smartdashboard, but we believe processing on the rio itself is causing problems (Too much CPU usage which causes motors to stutter when trying to drive them based on tape's position). We can view the cam's feed on the smartdashboard, but I don't know how to get the video feed into GRIP to process it.
We are using the Microsoft HD Lifecam 3000 and I believe have all the latest software installed, but I could have missed something.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2017, 21:28
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 144
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: Processing video feed with GRIP on DS Laptop

Quote:
Originally Posted by RileyC3826 View Post
Our team wants to pursue vision processing this year. So far, I have been able to create a GRIP pipeline able to detect the position of the retro-reflective tape, and generate code to use with our main program. When running our robot, we can print the position of the tape to the smartdashboard, but we believe processing on the rio itself is causing problems (Too much CPU usage which causes motors to stutter when trying to drive them based on tape's position). We can view the cam's feed on the smartdashboard, but I don't know how to get the video feed into GRIP to process it.
We are using the Microsoft HD Lifecam 3000 and I believe have all the latest software installed, but I could have missed something.
Hi there! You can stream the USB camera to your dashboard by following the "Simple camera server program" example here:
https://wpilib.screenstepslive.com/s...e-roborio-2017

In GRIP you can then add an IP camera with the URL of the video stream that the robot creates. You can find this URL in OutlineViewer ({user.home}/wpilib/tools/OutlineViewer.jar).

Also, do you mind posting (or PMing me) your code? I would like to see if there is a way to get your code to run on the roboRIO without issue.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2017, 10:41
grainne grainne is offline
Lead Programmer
FRC #0811 (Team 811 Cardinals)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: New Hampshire, United States
Posts: 10
grainne is an unknown quantity at this point
Re: Processing video feed with GRIP on DS Laptop

Our team had this problem last year. We fixed it by running our grip file on a raspberry pi that we put on the robot so as to not overload the roborio. We were then able to stream our video feed to the driver station by connecting an IP camera through smart dashboard.
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2017, 11:03
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 136
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: Processing video feed with GRIP on DS Laptop

Quote:
Originally Posted by AustinShalit View Post
You can find this URL in OutlineViewer ({user.home}/wpilib/tools/OutlineViewer.jar).
You can also run OutlineViewer directly from Eclipse if you have the WPILib plugins installed. Just go to the WPILib menu and hit "Run OutlineViewer"
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2017, 15:04
RileyC3826 RileyC3826 is offline
Registered User
FRC #3826 (Sequim Robotics Federation)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2013
Location: Sequim, Washington
Posts: 9
RileyC3826 is an unknown quantity at this point
Re: Processing video feed with GRIP on DS Laptop

Thanks for the replies, the stuttering-motor issue was not due to RoboRio CPU usage, but from motor controllers receiving multiple signals due to a couple misplaced brackets.

Quote:
Originally Posted by AustinShalit View Post
Also, do you mind posting (or PMing me) your code? I would like to see if there is a way to get your code to run on the roboRIO without issue.
The code was nothing special, just our original code with the code used in the wpilib tutorials:
https://wpilib.screenstepslive.com/s...raserver-class
and
https://wpilib.screenstepslive.com/s...-robot-program
The GRIP code was just a simple pipeline to find retro-reflective tape.
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:34.

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