Go to Post If FIRST is going to succeed in its goals, then we need to help it. - jcatt [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
  #1   Spotlight this post!  
Unread 11-01-2009, 18:42
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Detecting trailer position

Due to the differences in maneuverability when the trailer is at different positions, I realized that some sensor to determine what angle the trailer is at could be quite useful. However, being unable to modify the trailer, and the trailer hitch being outside the maximum robot dimensions, I was unsure of how to do this.
Any suggestions?
(I was considering using SONAR on one side, but I wanted to know if there was a better way)
__________________
-- Marshal Horn
  #2   Spotlight this post!  
Unread 11-01-2009, 18:51
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: Detecting trailer position

Your camera can detect trailer position relative to your robot easily. Unless you are using it for something else
  #3   Spotlight this post!  
Unread 11-01-2009, 19:06
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Detecting trailer position

Of course, that's always the problem.
Unless I find it beneficial to have the turret pointed at the trailer the whole time, I'll be using the camera to aim the turret.
__________________
-- Marshal Horn
  #4   Spotlight this post!  
Unread 11-01-2009, 22:15
IKE's Avatar
IKE IKE is offline
Not so Custom User Title
AKA: Isaac Rife
no team (N/A)
Team Role: Mechanical
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Michigan
Posts: 2,149
IKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond reputeIKE has a reputation beyond repute
Re: Detecting trailer position

Using an ultra-sonic was the first thing that cam to my mind.
  #5   Spotlight this post!  
Unread 11-01-2009, 22:26
popnbrown's Avatar
popnbrown popnbrown is offline
FIRST 5125 HOTH Lead Mentor
AKA: Sravan S
FRC #5125 (Hawks on the Horizon)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Illinois
Posts: 367
popnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond repute
Re: Detecting trailer position

Using Ultra-Sonic or Sonar would'nt give you the best results however because if a ball flies in the way or if another robot comes, it would block it. I would try to put something say an encoder and connect it inside the trailer hitch to the pin.
__________________
I am an employee of FIRST. However, the postings on this site are of my own perspective as a FIRST mentor and volunteer and do not necessarily reflect the views of FIRST.

FIRST Team 5125 Hawks on the Horizon Lead Mentor
FRC Team 4096 Ctrl-Z Former Mentor
FTC Team 5203 #19@! Former Mentor
FRC Team 1403 Cougar Robotics Alumni
  #6   Spotlight this post!  
Unread 11-01-2009, 22:35
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,363
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Detecting trailer position

2 30 cm sharp Ir sensors could do it .
  #7   Spotlight this post!  
Unread 12-01-2009, 12:42
Freeztech's Avatar
Freeztech Freeztech is offline
Registered User
FRC #0401 (Hokie Guard)
Team Role: Electrical
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Blacksburg, Va
Posts: 9
Freeztech is an unknown quantity at this point
Re: Detecting trailer position

Quote:
Originally Posted by Gdeaver View Post
2 30 cm sharp Ir sensors could do it .
the problem I see with IR sensors is that you can't attach them to the trailer, unless you though of something I completely missed.


The thing that came to my mind was actually a photocell stuck in the trailer hitch and the angle determines how much light it gets and is based off of that. unless there is a rule saying you can't mount things inside the trailer hitch, I didn't see anything against it.
__________________
Dubito, egro Cogito, egro sum.
  #8   Spotlight this post!  
Unread 12-01-2009, 12:51
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
Re: Detecting trailer position

I was hoping that we would mount the camera far enough back, so that it would cover the majority of the field we could fire in. Position would be detected by change in said objects size. Movement would be calculated after 2 frames, and acceleration in 3 frames. Naturally the later info for acceleration would allow us to figure where the trailer would be in say a couple tenths of a second that it would take the ball to get there, and for a second ball to get there so we could lead enough for say 7 or so balls to reach the trailer. Oh lots of trig to do this. The cRIO can do floating point right?
__________________
Is now an engineer thanks to FIRST.
  #9   Spotlight this post!  
Unread 12-01-2009, 17:19
Joshamuffin Joshamuffin is offline
Programmer
FRC #1723 (FBI)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Missouri
Posts: 24
Joshamuffin will become famous soon enough
Send a message via MSN to Joshamuffin
Re: Detecting trailer position

Put some sort of rotation sensor on the bolt the hitch attatches to or something.
  #10   Spotlight this post!  
Unread 12-01-2009, 18:44
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Detecting trailer position

Quote:
Originally Posted by XXShadowXX View Post
I was hoping that we would mount the camera far enough back, so that it would cover the majority of the field we could fire in. Position would be detected by change in said objects size. Movement would be calculated after 2 frames, and acceleration in 3 frames. Naturally the later info for acceleration would allow us to figure where the trailer would be in say a couple tenths of a second that it would take the ball to get there, and for a second ball to get there so we could lead enough for say 7 or so balls to reach the trailer. Oh lots of trig to do this. The cRIO can do floating point right?
Due to the trajectory of the balls, I would estimate half a second to reach a trailer. Unfortunately, this allegedly 30 fps camera seems to have been reduced to 10 fps (frames per second), and with horrible blurring.
Labview has a standard of 64-bit floating point integers (dbl), but there is an option of 32-bit floating point integers (sgl).

I don't believe it is legal to attach anything to the trailer or trailer hitch, as this would likely be outside the allowable limits for the robot. Assuming the trailer hitch tongue is steel, you could possibly use a very strong neodymium magnet on a spring-loaded potentiometer to detect which side it is on. More likely, though, would be looking down the tongue and dealing with reflectivity. I'm rather surprised FIRST didn't allow a reliable way for us to detect this.
__________________
-- Marshal Horn
  #11   Spotlight this post!  
Unread 11-01-2009, 22:42
writchie writchie is offline
Engineering Mentor
AKA: Wally Ritchie
FRC #2152 (Team Daytona)
Team Role: Coach
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Daytona Beach, Florida
Posts: 148
writchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond reputewritchie has a reputation beyond repute
Re: Detecting trailer position

A pair of sharp IR sensors should work well for this.
  #12   Spotlight this post!  
Unread 11-01-2009, 23:33
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: Detecting trailer position

Quote:
Originally Posted by writchie View Post
A pair of sharp IR sensors should work well for this.
That's what I'd tend to go with. Maybe have them on servos so that the left one is slightly offset to the left and the right one is slightly offset to the right, so you can tell which way it's moving and track it. It would probably work best to point them at the bar that goes to the trailer hitch, because that's less likely to have a ball fly past it.
  #13   Spotlight this post!  
Unread 12-01-2009, 10:43
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Detecting trailer position

Quote:
Originally Posted by kamocat View Post
...I realized that some sensor to determine what angle the trailer is at could be quite useful.
Just curious, what will you do with the trailer position information?
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
detecting your own alliance(C++) nathanww C/C++ 17 11-01-2009 17:13
Low-Cost trailer drawings? (was: Trailer) DM7000 General Forum 2 07-01-2009 16:54
Detecting Hybrid \ Teleoperated king vash Programming 4 14-07-2008 13:15
Detecting Start of TeleOp Mode Danny Diaz Programming 4 26-02-2008 01:37
detecting life in batteries wkethman Electrical 5 07-03-2006 08:04


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

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