Go to Post Now, everyone, say it with me: "It's just a TV show and FRC is just a robotics program. My life is a lot bigger than both of those things." Once you say this, I swear most of the arguments here would fade into oblivion. - itsjustjon [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 20-01-2017, 17:10
vScourge's Avatar
vScourge vScourge is offline
Videogame Developer
AKA: Adam Pletcher
FRC #4096 (Ctrl-Z)
Team Role: Coach
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Champaign, IL
Posts: 42
vScourge will become famous soon enough
Re: Running GRIP on Raspberry Pi 3

Where are you testing for the output from the RPi? In the robot code running on the roboRIO?

How is your RPi connected to the roboRIO? Are they both connected to the radio with ethernet cables, for instance?

If so, have you verified the RPi is connected to the roboRIO over the local network? You should be able to SSH into either device and ping the other successfully.

If that's not working then the NetworkTables client on the RPi will not be able to connect to the server on the roboRIO.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2017, 17:41
brad.harker's Avatar
brad.harker brad.harker is offline
Registered User
FRC #5546
 
Join Date: Jan 2017
Location: Petersburg, Virginia
Posts: 2
brad.harker is an unknown quantity at this point
Re: Running GRIP on Raspberry Pi 3

Quote:
Originally Posted by vScourge View Post
Where are you testing for the output from the RPi? In the robot code running on the roboRIO?

How is your RPi connected to the roboRIO? Are they both connected to the radio with ethernet cables, for instance?

If so, have you verified the RPi is connected to the roboRIO over the local network? You should be able to SSH into either device and ping the other successfully.

If that's not working then the NetworkTables client on the RPi will not be able to connect to the server on the roboRIO.
We are running the NetworkTables successfully. We have the rpi connected to a router that the roboRio is also connected to. We have input a test line into the NetworkTables and it showed up in our drivers station. The problem lies with the grip code. We can ping the roboRio from the pi and we can ping the pi from the roboRio. We just recently changed the values in our hsl filter and generated the code and it no longer works. We then changed the values manually in the working grip file and it worked. So the code in the GRIP program works fine but when it is generated and transferred to the pi, it does not produce any contours. If we edit the code on the pi and change the hsl filter to something with a much wider range, it works fine and outputs a bunch of contours in networktables. So something between GRIP on our computer and GRIP/OpenCV on the pi is inconsistent. We aren't sure what is going on.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2017, 23:08
vScourge's Avatar
vScourge vScourge is offline
Videogame Developer
AKA: Adam Pletcher
FRC #4096 (Ctrl-Z)
Team Role: Coach
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Champaign, IL
Posts: 42
vScourge will become famous soon enough
Re: Running GRIP on Raspberry Pi 3

I would suggest posting an issue on the GRIP GitHub tracker.
https://github.com/WPIRoboticsProjects/GRIP/issues
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2017, 17:32
Crew Cox's Avatar
Crew Cox Crew Cox is offline
Electrical team Captain
FRC #5546 (A.R.T)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Petersburg Virginia
Posts: 60
Crew Cox is a jewel in the roughCrew Cox is a jewel in the roughCrew Cox is a jewel in the rough
Re: Running GRIP on Raspberry Pi 3

I usually don't bump, but we really need help here.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2017, 20:49
blueboss blueboss is offline
Registered User
FRC #4904
 
Join Date: Jan 2016
Location: Bay Area, California
Posts: 4
blueboss is an unknown quantity at this point
Re: Running GRIP on Raspberry Pi 3

List of things I think could cause this (in order of likelihood):
  1. The code is different. My team missed this during some tests. Be absolutely certain that the way you are receiving an image and processing it is exactly the same on the pi as it is on your PC. Copy all the code over.
  2. The image is different. Perhaps something messed up because the pi has a different view, webcam, or camera settings. Make sure they are identical. Try using a sample image to ensure this.
  3. The camera on the pi isn't sending an image (unlikely). If it worked on the pi in the past this is probably not the case. You might want to test it anyways.
  4. Your OpenCV is not the same version across your devices
    You can test this with
    Code:
    cv2.__version__
    in python or
    Code:
    CV_VERSION
    in C++
  5. OpenCV works differently on the pi. My team has not encountered any difference in running generated GRIP code on different devices (including the pi and a Mac), but I cannot be certain.
Let me know if this helps.
Good luck!
-Team 4904
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2017, 16:12
cottoncandyman's Avatar
cottoncandyman cottoncandyman is offline
Registered User
FRC #5546
 
Join Date: Jan 2017
Location: Petersburg, Virginia
Posts: 1
cottoncandyman is an unknown quantity at this point
Re: Running GRIP on Raspberry Pi 3

We have tried many things. We are now trying to run it on the roboRio itself. I will keep this updated.
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 15: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