Go to Post I sure hope kickoff comes soon. Otherwise, you're all getting sent for therapy ;) - Rich Kressly [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 13-02-2007, 14:32
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Moving to a point between lights with autonomous

Quote:
Originally Posted by Donut View Post
Indeed it is, and I know our team is going that route. We looked at trying to score on in between legs early on, but decided it really wasn't worth it unless we had alot of extra time to work on that.
We're counting on filling in the gaps between the other teams going for the ones under the lights...
  #17   Spotlight this post!  
Unread 13-02-2007, 14:54
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,972
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: Moving to a point between lights with autonomous

Quote:
Originally Posted by minfranco View Post
I was just wondering if anyone has discovered a way to get the robot to a column between lights while in autonomous. A pointer in the right direction would be very helpful!
I'm not the programmer for our team, but ....


In order to be able to place a keeper between the spider legs that have the lighted targets your camera needs to detect 2 targets (*note: that may not happen depending on initial setup).

Once you have 2 targets (since they have range data) you need to do some trig. You need to calculate the center of the line between the lights, then calculate the offset of the spider leg from that line. Then you need to plot a course from your current position to that position.


@ kaszeta

Since he specifically asked for the spider leg between the target lamps, how are you going to know which legs have target lamps and which ones dont without a way of detecting the lamp???
  #18   Spotlight this post!  
Unread 13-02-2007, 15:03
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Moving to a point between lights with autonomous

Quote:
Originally Posted by Daniel_LaFleur View Post
Since he specifically asked for the spider leg between the target lamps, how are you going to know which legs have target lamps and which ones dont without a way of detecting the lamp???
Several techniques, but we're basically counting on the other teams on our alliance going for the ones on lights, and avoiding them. We've got several coordination strategies that should take care of interfering with alliance partners in case they have different strategies.... Right now, only time will really prove how well they work.
  #19   Spotlight this post!  
Unread 15-02-2007, 00:37
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,069
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Moving to a point between lights with autonomous

How about, instead of constantly checking your position on the field using the camera you only check once and figure out where you need to go. if you have some sort of guidance system (more accurate then time) then it is very possible to dead reckon to a position on the field and place from there. Simply calculate the way the moved the rack based off what you SHOULD be seeing as opposed to what you ARE seeing. Think about how the deep space probes navigate, they have a star map so they know what they should be seeing and if they get something different they react accordingly. One huge advantage is the decrease in the amount of code the processor has to run so it can run faster because it doesnt have to run through the math library every time. Though I like what kaszeta has been saying, if you cant figure it out with the camera there are other options out there. Perhaps your scoring mechanism will automatically find the spider leg... just think outside the box. The idea i posted just now is what I intend on doing (for at least one of the approaches) this year. Hope that wasn't too cryptic and actually helped a little.
  #20   Spotlight this post!  
Unread 15-02-2007, 00:57
dpick1055's Avatar
dpick1055 dpick1055 is offline
David Pick
FRC #1739 (Chicago Knights)
Team Role: Alumni
 
Join Date: May 2005
Rookie Year: 2004
Location: Chicago
Posts: 75
dpick1055 is on a distinguished road
Send a message via AIM to dpick1055
Re: Moving to a point between lights with autonomous

The problem with attempting dead reconing based off where the lights start is that it is very hard to account for slippage of your wheels and what other robots will be doing. If your alliance has 3 robots going for the rack at once and you hit another robot on your way without some sort of feedback you will have no way of correcting yourself and getting back on target.
__________________
Always remember to take your powered wheels off the ground when first testing code. Otherwise you'll end up with holes in the wall like us
  #21   Spotlight this post!  
Unread 15-02-2007, 07:45
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Re: Moving to a point between lights with autonomous

Quote:
Originally Posted by dpick1055 View Post
The problem with attempting dead reconing based off where the lights start is that it is very hard to account for slippage of your wheels and what other robots will be doing. If your alliance has 3 robots going for the rack at once and you hit another robot on your way without some sort of feedback you will have no way of correcting yourself and getting back on target.
Dead reckoning doesn't mean just setting some motor outputs and waiting for a specified amount of time. Dead reckoning in this case refers to the process of estimating the position of your robot based solely on speed and direction of travel and time elapsed since the last known position. The "reckoning" part referes to the fact that you can't get new known position information based on the location of the rack. You can, however, account for wheel slippage by using accelerometers and a gyro, which track absolute--not commanded--speed and heading since you left where you know you were. This system can be very accurate if implemented correctly.

Robinson Levin
__________________
'... who are you, then?'
'I am part of that power which eternally
wills evil and eternally works good.'
Goethe, Faust
  #22   Spotlight this post!  
Unread 15-02-2007, 14:00
lkdjm's Avatar
lkdjm lkdjm is offline
Registered User
AKA: David Mazza
FRC #0564 (Digital Impact)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Middle Island, NY
Posts: 31
lkdjm will become famous soon enough
Send a message via AIM to lkdjm Send a message via Yahoo to lkdjm
Re: Moving to a point between lights with autonomous

Thank you all for you suggestions so far. Damien1247, I think I am going to do something similar to what you suggested, however, dpick1055 does have a valid point about the inaccuracy. To solve both problems, why not use the camera to get close to the rack, and then do "dead reckoning" based on where the camera tells you you are at that point. Anyway, thanks again, keep the suggestions and ideas pouring in!
__________________
Longwood's Digital Impact

  #23   Spotlight this post!  
Unread 15-02-2007, 17:57
mjbrauck mjbrauck is offline
Registered User
FRC #0768 (Techno Warriors )
 
Join Date: Jan 2006
Rookie Year: 2005
Location: maryland
Posts: 23
mjbrauck has a spectacular aura aboutmjbrauck has a spectacular aura about
Re: Moving to a point between lights with autonomous

I might be wrong about this but if you use the old camera code that dose not actually know when it sees 2 lights but thinks it is 1 big light, and you lower the confidence necessary to track it should track directly between the 2 lights almost acting like a 3rd light in the middle
  #24   Spotlight this post!  
Unread 15-02-2007, 21:22
lkdjm's Avatar
lkdjm lkdjm is offline
Registered User
AKA: David Mazza
FRC #0564 (Digital Impact)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Middle Island, NY
Posts: 31
lkdjm will become famous soon enough
Send a message via AIM to lkdjm Send a message via Yahoo to lkdjm
Re: Moving to a point between lights with autonomous

Just in case someone hasn't seen this yet, check out this thread to see what I am talking about for tracking 2 lights: http://www.chiefdelphi.com/forums/sh...ad.php?t=52467
__________________
Longwood's Digital Impact

  #25   Spotlight this post!  
Unread 17-02-2007, 12:40
ebowla's Avatar
ebowla ebowla is offline
The Overmind
FRC #2016
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Ewing High School
Posts: 15
ebowla is on a distinguished road
Re: Moving to a point between lights with autonomous

Yea, Donut has a point. Our team started this year and I do most of the programming. I haven't been able to figure out a way to pin down the spot between lights due to the movement of the rack with a camera and encoders, but I can get a tube on any spot under lights, thats 12 spots we can get. So even if you can only get the ones under the lights, it doesn't mean that you're at that big of an disadvantage. (although if your team can get 3 keepers in a row horizontally you are in pretty good shape)
__________________
Progamming Master
Disclaimer: May not be actually as good as claimed, not reliable for advice, and shirks away any real work.
  #26   Spotlight this post!  
Unread 17-02-2007, 14:18
CircularLogic CircularLogic is offline
Registered User
FRC #1546 (Chaos Inc)
Team Role: Leadership
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Baldwin
Posts: 38
CircularLogic will become famous soon enoughCircularLogic will become famous soon enough
Re: Moving to a point between lights with autonomous

Disclaimer: I do not have a robot, nor have I seen a robot the entire season (stupid graduating High School to go to college). However I have been thinking about this for quite some time.

Note: I fully thought it out around kick off. This is what I remember. Hopefully it can get you thinking in a good direction.


The first thing you need to have planned for in your autonomous is knowing your starting position, because that will make a difference later on.

When the autonomous period starts, have your camera track the closest light. Figuring out which light is the closest should be able to do be done relatively easily based off of the fact that you know all cameras are a constant distance apart. Then simply do an an angle check of the pan on the camera. If its too great, tell the camera to search the other way.

Now, once you have that target, you can make some reasonable estimates about the position of the off-light row. Using trig (specifically the law of cosines) you should be able to calculate the distance you need to adjust your robot in the X axis direction. That requires some ability to make reasonably accurate turns and movements (if you dont have some type of closed loop system, I would say go with the slowest viable speed to make those movements). Once you are aligned in the X direction, deploy your mechanism and drive forward the estimated distance that will get the ringer on the spider. I realize that you will be approaching the spider at an angle, but worst case scenario is about a 45 degree approach to it, which most arm designs should be able to handle.


Its not the best way. Its probably not fully thought out. It absolutely isnt tested. But the the thing it has going for it is that the math will work. There are a number of known things about the field when you first start the match, you have to use those to your advantage. It involved a lot of angle calculations. It involves creating lots of triangles to figure out distance accurately. When looking to make those triangles, remember a couple of things. Your robot will always be approximately the same distance away from the rack regardless of orientation but dependent on starting position.

The straight line distance is between spiders is a very useful thing for creating triangles.


Good luck.
__________________
Team 1546 Chaos Incorporated
2005- SBPLI Rookie All Stars
2006- SBPLI Sportsmanship award.

Gotta hand it to the straight line autonomous mode, the most effective defense out there.

Proud beyond belief of the accomplishments of the second year, 20th ranked, 6 wins and 6 losses Chaos Incorporated.
  #27   Spotlight this post!  
Unread 17-02-2007, 14:24
1768's Avatar
1768 1768 is offline
Registered User
FRC #1768
 
Join Date: Jan 2007
Location: USA
Posts: 10
1768 is an unknown quantity at this point
Re: Moving to a point between lights with autonomous

Our team can (probably) score between lights. I made a rom table of trig values and used that to approximate where each light is. Knowing two lights and their relative positions to each other, it can find the center of the rack and angle of rotation, and therefore where leg #3 is. Of course, this is still untested.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera tracking between two lights Ankush Dhar Programming 2 12-02-2007 23:44
Moving robot while tracking with camera questions... Steve Orr Programming 6 02-02-2006 22:24
Anybody have a code for an autonomous mode to go to the 50 point bar???? and... chaoticprout Programming 9 06-11-2004 12:22
Teams with 100 point average in Atlanta Qualifying rounds DougHogg Championship Event 0 21-04-2004 01:03
problems with receiving signals between radios (need help0 chrisw Technical Discussion 4 11-01-2002 10:35


All times are GMT -5. The time now is 00:25.

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