Go to Post I don't have enough vacation time for them to start allowing video replay. - TJP123 [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 08-01-2012, 20:42
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Finding where you are in the field

Have anyone thought about doing robot localization this year to help shooting?

It seems that the sensors we are allowed to use are limited to the ultra sonic range sensor and the camera/kinect, and class I laser sensor (Does someone have more information on Class I laser sensors?)

Here are some problems with each:
  • Ultrasonic Sensor: Interferance from other team's sensors
  • Camera/Kinect: Stereo vision is tough to do. Kinect setup on the robot is equally as difficult.
  • Laser sensor: Class I may also be outlawed as it's not suppose to blind the drivers.

Has anyone thought about solving these problems?

Also, how are you guys thinking about programming the robot to localize itself? I'm thinking of a particle filter with the ultrasonic sensor, but I don't know about its effectiveness due to other team's sensors.

Ideas?
  #2   Spotlight this post!  
Unread 08-01-2012, 20:48
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Finding where you are in the field

http://www.frc.ri.cmu.edu/projects/c.../gyropaper.pdf
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #3   Spotlight this post!  
Unread 08-01-2012, 21:11
Djur's Avatar
Djur Djur is offline
WPILib
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Massachusetts
Posts: 182
Djur will become famous soon enough
Re: Finding where you are in the field

I coded this using a combination of the ADXL345_I2C in the KoP and Ultrasonic rangefinders, but we're not going to use it because it's fairly useless to know where the robot is in this game. For shooting, all you need to know is the width/height of the rectangle on the backboard and the angle to it.
__________________
WPILib dev (RobotBuilder, SmartDashboard, GRIP)

Last edited by Djur : 08-01-2012 at 21:17.
  #4   Spotlight this post!  
Unread 08-01-2012, 21:18
pfreivald's Avatar
pfreivald pfreivald is offline
Registered User
AKA: Patrick Freivald
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2001
Location: Naples, NY
Posts: 2,295
pfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond repute
Re: Finding where you are in the field

Why would it be fairly useless to know where the robot is? You always know where the hoops are, so if you know where the robot is (and how it's oriented), you know where to shoot!
__________________
Patrick Freivald -- Mentor
Team 1551
"The Grapes of Wrath"
Bausch & Lomb, PTC Corporation, and Naples High School

I write books, too!
  #5   Spotlight this post!  
Unread 08-01-2012, 21:24
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Finding where you are in the field

Personally, I would do this: We know the size of the rectangle to a margin of error of a couple millimeters. We can calculate the relative distance from the basket by seeing the angle of rotation and size on the image.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #6   Spotlight this post!  
Unread 08-01-2012, 21:25
Djur's Avatar
Djur Djur is offline
WPILib
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Massachusetts
Posts: 182
Djur will become famous soon enough
Re: Finding where you are in the field

Quote:
Originally Posted by pfreivald View Post
Why would it be fairly useless to know where the robot is? You always know where the hoops are, so if you know where the robot is (and how it's oriented), you know where to shoot!
Using the camera and the code supplied by National Instruments to find position and angle is much easier and more accurate than using the gyro (off by up to 7* in either direction) and ultrasonics, which can be interfered with by other ultrasonics. Also, this.
__________________
WPILib dev (RobotBuilder, SmartDashboard, GRIP)
  #7   Spotlight this post!  
Unread 08-01-2012, 21:32
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Re: Finding where you are in the field

Quote:
Originally Posted by Djur View Post
Using the camera and the code supplied by National Instruments to find position and angle.
First of all, Where is this code?

Second of all... Oh come on where is the fun in using their code! ;p (even though if it works.. I probably will)
  #8   Spotlight this post!  
Unread 08-01-2012, 21:39
Djur's Avatar
Djur Djur is offline
WPILib
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Massachusetts
Posts: 182
Djur will become famous soon enough
Re: Finding where you are in the field

Stick this in whichever class you have camera tracking:
Code:
import edu.wpi.first.wpilibj.image.*;
NI's code is in NIVision.java

If you don't use Java, I can't help you.
__________________
WPILib dev (RobotBuilder, SmartDashboard, GRIP)
  #9   Spotlight this post!  
Unread 08-01-2012, 21:40
pfreivald's Avatar
pfreivald pfreivald is offline
Registered User
AKA: Patrick Freivald
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2001
Location: Naples, NY
Posts: 2,295
pfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond repute
Re: Finding where you are in the field

Quote:
Originally Posted by Djur View Post
Using the camera and the code supplied by National Instruments to find position and angle is much easier and more accurate than using the gyro (off by up to 7* in either direction) and ultrasonics, which can be interfered with by other ultrasonics. Also, this.
You're not thinking what I'm thinking.
__________________
Patrick Freivald -- Mentor
Team 1551
"The Grapes of Wrath"
Bausch & Lomb, PTC Corporation, and Naples High School

I write books, too!
  #10   Spotlight this post!  
Unread 08-01-2012, 21:46
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Re: Finding where you are in the field

Quote:
Originally Posted by Djur View Post
Stick this in whichever class you have camera tracking:
Code:
import edu.wpi.first.wpilibj.image.*;
NI's code is in NIVision.java

If you don't use Java, I can't help you.
I am using Java.

Looking at the documentations.... there are a very scarce amount of it for the class..
  #11   Spotlight this post!  
Unread 08-01-2012, 21:48
Djur's Avatar
Djur Djur is offline
WPILib
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Massachusetts
Posts: 182
Djur will become famous soon enough
Re: Finding where you are in the field

Check out this thread.
__________________
WPILib dev (RobotBuilder, SmartDashboard, GRIP)
  #12   Spotlight this post!  
Unread 12-01-2012, 22:59
Se Hyun Han Se Hyun Han is offline
Registered User
FRC #1261 (Robolions)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Suwanee, GA
Posts: 1
Se Hyun Han is an unknown quantity at this point
Re: Finding where you are in the field

I've been pondering, why would stereo vision be difficult? Is it due to the improbability of connecting two cameras to the D-Link or is it due to the difficulty in simply using the two cameras?
  #13   Spotlight this post!  
Unread 13-01-2012, 08:24
Jared Russell's Avatar
Jared Russell Jared Russell is online now
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Finding where you are in the field

Vision tracking using Java this year will be more difficult than in the other languages, unfortunately. Unless there is an update released soon, not all of the NIVision capabilities useful for rectangle tracking have been wrapped by WPILibJ (whereas in C++, they are all available).

It is unfortunate that despite the supposed "equal" capabilities of each officially supported language, in 2012 there are very unequal capabilities when it comes to vision processing.

We are looking into offboard (Driver Station laptop or separate single board computer on the robot) solutions to vision processing, but these capabilities are very poorly documented at the moment. We have written/modified JavaCV/OpenCV code to reliably track the goals, and are now playing around to find a way to get that code to send back it's "answers" to the cRIO, using either NetworkTables or a separate socket interface.
  #14   Spotlight this post!  
Unread 13-01-2012, 09:17
Ross3098's Avatar
Ross3098 Ross3098 is offline
Programmer
AKA: Colin Ross
FRC #3098 (The Captains)
Team Role: Programmer
 
Join Date: Sep 2011
Rookie Year: 2010
Location: Waterford
Posts: 41
Ross3098 will become famous soon enoughRoss3098 will become famous soon enough
Re: Finding where you are in the field

Quote:
Originally Posted by shuhao View Post
Have anyone thought about doing robot localization this year to help shooting?
Ive been thinking about setting up localization/field coordinate system for this game. The only problem I can see is the bump causing some of the wheels to be off the ground and the encoders giving inaccurate measurements.

I'm trying very hard to figure a way around this issue because I have absolutely no idea how to do vision tracking in C++ this year.
__________________
2012 FRC Championship: 4th pick, Quarterfinalist: Thanks 1507, 51!
2012 Michigan State Championship: 4th Seed, 3rd Alliance Captain, Semifinalist: Thanks 33 and 2137!
2012 Northville District: 3rd Pick, Quarterfinalist. Thanks 302, 4405!
2012 Waterford District: 2nd Pick, Finalist. Thanks 573, 3601!
2011 Waterford District: 8th seed, 1st pick, Semi Finalist. Thanks to 573 and 3770
2011 Ann Arbor District: 2nd seed, Finalist. Thanks to 548 and 247.
2011 Michigan State Championship: Semi Finalist. Thanks to 548 (Again) and 74.
2011 FIRST World Championship: 8th seed, Quarterfinalist. Thanks to 74(Again) and 846.
  #15   Spotlight this post!  
Unread 13-01-2012, 09:25
sloteera's Avatar
sloteera sloteera is offline
Registered User
AKA: Rafa
FRC #1860 (Cephatron)
Team Role: Coach
 
Join Date: Mar 2007
Rookie Year: 2004
Location: Brazil
Posts: 190
sloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud of
Re: Finding where you are in the field

Quote:
Originally Posted by Ross3098 View Post
Ive been thinking about setting up localization/field coordinate system for this game. The only problem I can see is the bump causing some of the wheels to be off the ground and the encoders giving inaccurate measurements.

I'm trying very hard to figure a way around this issue because I have absolutely no idea how to do vision tracking in C++ this year.
Could you use one accelerometer located in the same axis of your wheels in order to reset the reference of enconder when the robot pass through the barrier?
You'll know that barrier is in the center of the field, so, you can start again a new measurement with this new reference!
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 15:24.

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