Go to Post Fame... Fortune... Bleh I'm inspired and thats all that matters to me - Noah Melamed [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 23-03-2016, 14:28
Hadi379's Avatar
Hadi379 Hadi379 is offline
Registered User
FRC #0379
 
Join Date: Jan 2007
Location: Girard
Posts: 169
Hadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to behold
Camera Tracking Issues

During the Buckeye Regional, and prior to, we had vision tracking working with our robot. Everything worked when we were at home, on the practice field, tethered, and tethered during calibration time on the actual competition field Thursday.

Although, as soon as we went wireless on the competition field, our robot would just keep tracking, spinning in circles.

Our setup:

Axis 206 IP camera via ethernet to switch/radio
Switch/radio via ethernet to roborio

Camera Settings:
Image size 240x360
15 FPS
(currently, I believe compression is set to 0)
This should mean our data rate is approx 4.2 Mbps

Something tells me it has to do with the accessible ports on the competition field.


Any info would be greatly appreciated
Reply With Quote
  #2   Spotlight this post!  
Unread 23-03-2016, 14:32
TylerS's Avatar
TylerS TylerS is offline
Registered User
AKA: Tyler Stark
FRC #1747 (Harrison Boiler Robotics)
Team Role: Mentor
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Indiana
Posts: 65
TylerS will become famous soon enough
Re: Camera Tracking Issues

Would it be correct to assume the vision processing is done on the laptop?

If that's the case are you using networktables to communicate?

Are you receiving a camera image back to the DS?

If you can answer those questions it'll make diagnosing the issues a lot easier.
__________________
Purdue University 2019 - Aerospace Engineering
2016 - Team 1747 - Design & Build Mentor
2015 - Team 303 - Coach/Build Captain
2014 - Team 303 - Build Captain
2013 - Team 303 - Driver
2012 - Team 303 - Programming Leader
Reply With Quote
  #3   Spotlight this post!  
Unread 23-03-2016, 15:28
Hadi379's Avatar
Hadi379 Hadi379 is offline
Registered User
FRC #0379
 
Join Date: Jan 2007
Location: Girard
Posts: 169
Hadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to behold
Re: Camera Tracking Issues

I believe the vision processing is done on the roborio.

Not using network tables.

And yes, we are getting the live feed on the DS.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-03-2016, 16:08
Josh Tatum Josh Tatum is offline
Registered User
FRC #0303 (T.E.S.T team)
Team Role: Electrical
 
Join Date: Feb 2016
Rookie Year: 2014
Location: New Jersey
Posts: 10
Josh Tatum is an unknown quantity at this point
Re: Camera Tracking Issues

We also had vision tracking issues at buckeye. Everything worksd fine in our shop, however, buckeye was much brighter than our shop. We fixed our issues by adding another led ring around our camera and using a combination of a Pepsi cup and the inside of a Tostitos bag to help reflect the light at the goal.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-03-2016, 16:55
AWoL's Avatar
AWoL AWoL is offline
Lvl. 225 Dark Code Mage (Java Type)
AKA: Adam Wolnikowski
FRC #0225 (TechFire)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2014
Location: York, Pennsylvania
Posts: 116
AWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond reputeAWoL has a reputation beyond repute
Re: Camera Tracking Issues

How are you connected to your camera? If it's an IP camera or a USB camera connected to a coprocessor that you're connecting to with IP, make sure that everything (RIO, camera, coprocessor, heck, even driver station) has a static IP address. We had a similar problem during early matches last weekend but realized it was NetworkTables not working because of mDNS, and fixed it by setting everything to static IPs.
__________________
2016 Competition Results (Co-captain, Driver, and Lead Programmer; Junior)
Springside-Chestnut Hill District Event - WINNER / #2 Seed, #1 Seed's First Pick / Gracious Professionalism Award
Westtown District Event - WINNER / #1 Seed / Industrial Design Award
MAR District Championship - WINNER / #1 Seed / Industrial Design Award / Dean's List Finalist Award (Me)
World Championship, Carson Subdivision - QUARTERFINALIST / #3 Seed, #2 Seed's First Pick
Indiana Robotics Invitational - FINALIST / #14 Seed, #2 Seed's Second Pick
Reply With Quote
  #6   Spotlight this post!  
Unread 23-03-2016, 17:13
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Camera Tracking Issues

Quote:
Originally Posted by Hadi379 View Post
I believe the vision processing is done on the roborio.

Not using network tables.
Nothing about the field's network port restrictions would interfere with that setup.

The only thing I can think of immediately is the way you're addressing the camera. The mDNS name of an Axis 206 includes its serial number by default; you would have to change it to just "axis-camera" in order for it to work properly both on the field and in the pit after your radio was reprogrammed for the competition. The other option is to set everything to static IP addresses -- roboRIO, camera, and Driver Station computer -- but that makes the field connection slightly less "friendly" to the rest of the system.
Reply With Quote
  #7   Spotlight this post!  
Unread 24-03-2016, 17:56
Hadi379's Avatar
Hadi379 Hadi379 is offline
Registered User
FRC #0379
 
Join Date: Jan 2007
Location: Girard
Posts: 169
Hadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to behold
Re: Camera Tracking Issues

I believe we set everything to static at buckeye with the help of the CSA and FTA, but that didn't seem to work. I'll have to check the camera name, what if we changed to an axis 1013? Would that make any difference?

We are using labview, which I forgot to mention earlier.

In regards to the network ports, do you need to reference which ports you intend on using in the vision code?
Reply With Quote
  #8   Spotlight this post!  
Unread 24-03-2016, 20:47
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Camera Tracking Issues

Quote:
Originally Posted by Hadi379 View Post
I'll have to check the camera name, what if we changed to an axis 1013? Would that make any difference?
The Axis 10xx cameras have the name "axis-camera" by default. That's what the vision code will be looking for, assuming you haven't changed it to an explicit static 10.TE.AM.11 address.

Quote:
In regards to the network ports, do you need to reference which ports you intend on using in the vision code?
No, the IP camera support uses http: and always the same port.
Reply With Quote
  #9   Spotlight this post!  
Unread 25-03-2016, 20:25
Hadi379's Avatar
Hadi379 Hadi379 is offline
Registered User
FRC #0379
 
Join Date: Jan 2007
Location: Girard
Posts: 169
Hadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to behold
Re: Camera Tracking Issues

In the attached image, should the camera open VI have the "axis-camera.local" or should it have the static IP of "10.3.79.11" as its constant?

The host name for the camera is just "axis-camera" in the camera settings.
Attached Thumbnails
Click image for larger version

Name:	image.jpeg
Views:	65
Size:	1.99 MB
ID:	20445  
Reply With Quote
  #10   Spotlight this post!  
Unread 25-03-2016, 20:31
Hadi379's Avatar
Hadi379 Hadi379 is offline
Registered User
FRC #0379
 
Join Date: Jan 2007
Location: Girard
Posts: 169
Hadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to behold
Re: Camera Tracking Issues

And this is in our dashboard code:
Attached Thumbnails
Click image for larger version

Name:	image.jpeg
Views:	60
Size:	1.43 MB
ID:	20446  
Reply With Quote
  #11   Spotlight this post!  
Unread 26-03-2016, 23:14
Hadi379's Avatar
Hadi379 Hadi379 is offline
Registered User
FRC #0379
 
Join Date: Jan 2007
Location: Girard
Posts: 169
Hadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to behold
Re: Camera Tracking Issues

bump, I'm desperate for ideas
Reply With Quote
  #12   Spotlight this post!  
Unread 27-03-2016, 11:18
Gary Dillard's Avatar Unsung FIRST Hero
Gary Dillard Gary Dillard is offline
Generator of Entropy
AKA: you know, the old bald guy
FRC #2973 (The Mad Rockers)
Team Role: Engineer
 
Join Date: Nov 2001
Rookie Year: 1998
Location: Huntsville, AL
Posts: 1,582
Gary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond repute
Send a message via AIM to Gary Dillard
Re: Camera Tracking Issues

We had issues on the competition field as well this weekend but nowhere else, but ours was the opposite problem. We were unable to recognize the cameras and couldn't track at all. We have 2 cameras and 2 pcduinos, all static ip addresses (10.team.......). Ran fine at home and tethered.

Still my biggest complaint about competitions - there is nowhere to test and debug your entire system except on the field while running a match. The radio is a HUGE part of the system. All the components work fine.
__________________
Close enough to taste it, too far to reach it
Reply With Quote
  #13   Spotlight this post!  
Unread 27-03-2016, 11:25
Owen Busler's Avatar
Owen Busler Owen Busler is offline
Build Captain
FRC #0303 (Test Team)
Team Role: Leadership
 
Join Date: Aug 2014
Rookie Year: 2014
Location: Bridgewater, NJ
Posts: 137
Owen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant futureOwen Busler has a brilliant future
Re: Camera Tracking Issues

Team 303 had a similar issue at buckeye. Our green led ring was not strong enough for the camera to distinguish between the green reflected light and the very very bright stadium lights. Our camera worked fine at our workshop because its much darker there. You can see how we fixed this here:

https://www.instagram.com/p/BDMOOHal...-by=frcteam303

We added a second ring and attempted to direct the green light and shield the camera from the ambient stadium lights with the reflective cup. You guys could try something like this but you really couldn't test it until your next event.
__________________
2016: Deans List Semi-Finalist/MAR Mount Olive District Engineering Inspiration Award/Buckeye Regional Second Alliance Captain/MAR Montgomery District Event Imagery Award/MAR Championship Gracious Professionalism Award
2015: MAR Mount Olive District Chairman's Award/MAR North Brunswick District Winners/MAR Championship Finalists
2014: MAR Clifton District Chairman's Award/MAR Championship Regional Chairman's Award
Reply With Quote
  #14   Spotlight this post!  
Unread 27-03-2016, 12:57
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Camera Tracking Issues

Hadi. I don't have my computer with me, but it looks like you have both an ip/dashboard loop and a duplicate mjpeg background loop. I would have to make a similar edit to test what happens with competing access loops like this. You may want to try commenting the bg loop out.

It looks like you also made a db edit to use the constant name instead of the one from the DS. I don't think this would do any harm, but it is a difference

Honestly, I would want to look at the camera settings since I that is usually where the issue lies

Greg McKaskle
Reply With Quote
  #15   Spotlight this post!  
Unread 27-03-2016, 13:02
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Camera Tracking Issues

Gary. How was communication routed? Specifically, starting from the cameras, where did images and info flow. To what devices on what ports? The biggest difference is that the field only has a few ports open for teams to use, and the timing of bootstrapping can be very different.

Greg McKaskle
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 19:56.

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