OCCRA
Go to Post FIRST doesnt care about the weather, and we still need a working robot. - Mike Heinowski [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 12-05-2017, 11:29 AM
mrjagdad mrjagdad is offline
Mentor - Team 4361 Roxbotix
FRC #4361 (Roxbotics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Roxbury, NJ
Posts: 16
mrjagdad is an unknown quantity at this point
Vision on Raspberry Pi - Starting out

I have started testing running vision processing on
a Raspberry Pi 3 running Raspbian using Java.
Camera is a Microsoft USB LifeCam

At this time I do not have access to a RoboRio.

Started with the 2017 FRC Control System Vision processing
document on the web site.

I got the code compiled on a Ubuntu system transferred to
the Pi and it ran !! At least I think so the blue light on the
camera came on.

In the doc it states
"This sample program only serves video as an http mjpg stream to a web browser or your SmartDashboard and serves as a template."

Question:
1) How can I access the stream from the web browser ? Does the browser
have to be running on the Pi or one from my Ubuntu system.

Next step is to take the code generated from GRIP and run it on the Pi.
This would include creating the Network Tables.

Question:
How can I access the Network Tables from the Ubuntu system to
see the values and if the change when I move the target?

Question:
Finally is there a RoboRio simulator?

Thanks in advance to those who answer.
__________________
Mark Tayler
Mentor
Team 4361 - Roxbotix
Reply With Quote
  #2   Spotlight this post!  
Unread 12-05-2017, 02:21 PM
MuskieProgramme MuskieProgramme is offline
Registered User
FRC #6420 (Fire Island Robotics)
Team Role: Alumni
 
Join Date: Dec 2016
Rookie Year: 2014
Location: Muscatine, IA
Posts: 195
MuskieProgramme is just really niceMuskieProgramme is just really niceMuskieProgramme is just really niceMuskieProgramme is just really niceMuskieProgramme is just really nice
Re: Vision on Raspberry Pi - Starting out

1) Visit the raspberry pi's ip address with the appropriate port number (assigned in the code). This can be done on the pi itself, or any system connected to the same network (such as your Ubuntu system).

2) https://wpilib.screenstepslive.com/s...-networktables

3) None that are functional at the moment, AFAIK.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 12-05-2017, 09:19 PM
stephenw stephenw is offline
Registered User
FRC #1885
 
Join Date: Dec 2017
Location: Haymarket, VA
Posts: 4
stephenw is an unknown quantity at this point
Re: Vision on Raspberry Pi - Starting out

As long as your Ubuntu machine has an mDNS handler installed (such as avahi-daemon), you should be able to access the stream at raspberrypi.local:<port>/?action=stream. The default port for a camera stream is 1180.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-07-2017, 03:19 PM
mrjagdad mrjagdad is offline
Mentor - Team 4361 Roxbotix
FRC #4361 (Roxbotics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Roxbury, NJ
Posts: 16
mrjagdad is an unknown quantity at this point
Re: Vision on Raspberry Pi - Starting out

Thanks all for your help.
__________________
Mark Tayler
Mentor
Team 4361 - Roxbotix
Reply With Quote
  #5   Spotlight this post!  
Unread 12-07-2017, 05:54 PM
jboynton6329 jboynton6329 is offline
Registered User
FRC #6329
 
Join Date: Mar 2017
Location: Bucksport Maine
Posts: 8
jboynton6329 is a jewel in the roughjboynton6329 is a jewel in the roughjboynton6329 is a jewel in the roughjboynton6329 is a jewel in the rough
Re: Vision on Raspberry Pi - Starting out

There are a lot of people who know more about vision than me on here, but speaking as someone who has worked on getting a vision code following a similar path to you last season, I would highly recommend using a different camera. We switched to a pi camera this off season and got our code to work instantly. Being able to alter the camera settings on the pi camera really helped us to consistanly find the target. Good luck!
Reply With Quote
  #6   Spotlight this post!  
Unread 12-08-2017, 09:10 PM
JefferMC JefferMC is offline
Registered User
AKA: Jeff Corbett
FRC #1319 (Flash)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2005
Location: United States
Posts: 125
JefferMC has a spectacular aura aboutJefferMC has a spectacular aura about
Re: Vision on Raspberry Pi - Starting out

We ran the Life Cam on the RPi3 last year (we actually ran two). Yes, it was a challenge to find the correct parameters to lock the brightness at an appropriate setting for vision, but we eventually did that and had reasonable success tracking.
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 01:58 AM.

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