Go to Post If you ever find yourself thinking that you are the most brilliant person in a situation, you are doing something wrong. - EricVanWyk [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 07-02-2009, 23:59
Garii's Avatar
Garii Garii is offline
Registered Abuser
AKA: Jared Hankle
FRC #3044 (BE4)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: New York
Posts: 27
Garii is an unknown quantity at this point
Send a message via AIM to Garii
Rookie Team Prgramming [autonomous]

Hello everyone,

As a Rookie Team this year our team has alot to accomplish and we are recieving little help when it comes to the programming. So to keep this short and sweet ill explain our situation.

Currently we are using a set of autonomous modes that we can switch between via switches that will hopefully be mounted on the robot if the rules permit it. we have seperate VIs to control the Acceleromoter inputs and Camera Tracking. I have coded a few things [ie, acceleromoter controlled tracktion control and bump control] but i havent gotten any data yet as i have not been able to test the acceleromoter as of now. plus this being the first year ive been exposed tro labview i havent quite gotten the hang of it.

what i need to know is as follows:
-is there a way to use camera code to track not only colors but objects [ie other robots and barriers] and use that code so we can avoid those obejects

-is using the acceleromoter as traction control a good idea? its seems iffy to me.

-if the above is true, how?

thanks in advance!
__________________
-The Garii- aka Jared Hankle
Ballston Spa Labview Programmer
new team slogan-"Can I Get Some Linux With These Fries?"



Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2009, 09:11
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,748
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: Rookie Team Prgramming [autonomous]

The vision processing can locate objects if you can write an algorithm to distinguish them from everything else. Some things like the edge of the field might be pretty straightforward. But the camera doesn't know what objects are, just pixels. The color processing is the inexpensive way we are identifying the target this year.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2009, 10:08
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,748
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Rookie Team Prgramming [autonomous]

Well if you have all that coded, you are doing good. Of course the hard part is testing and getting it working.

There is a really good thread on traction control on CD, search for it. While you are searching... The accelerometer is one way to gather the data you need for one method of traction control and it is as good as other ways of gather accelration data. When you use the accel. you are looking for an excessive change in rate of accel., you could also do this with POTS on the drive system. When the rate of accel. exceeds a threshold, you reduce power to the motor until you return to the target rate of accel (solution crys out for a PID loop).

The other way of doing traction control is to measure true ground speed, compare it to motor speed. When the motor speed is greater than what the ground speed should be, you are slipping and need to reduce the motor speed until they are within some tolerance. The math should be easy when both sides are slipping at the same rate, when your slipping to the left or right, then I think the math will get tougher.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2009, 13:23
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Rookie Team Prgramming [autonomous]

Quote:
Originally Posted by Garii View Post
what i need to know is as follows:
-is there a way to use camera code to track not only colors but objects [ie other robots and barriers] and use that code so we can avoid those obejects
A fairly robust way of doing this that I can think of is to make use of the fact that a majority of the playing field is white this year, and that almost all teams that I have seen use-non white bumpers. Try taking a picture of your robot sitting on a white surface and import it into Vision Assistant, then play around with the Color Threshold filter.

To get a sense of where these obstacles might be, mount your camera at the bottom of your robot, and point it slightly downward. The y-position of the obstacles you identify will be roughly proportional to the distance they are away from you. A related algorithm is the Polly algorithm, more info here with some good pictures for visualization; you'll just be using white/non-white pixels instead of doing edge detection to find obstacles.

EDIT: Note, that this method will mean that you can't track trailers at the same time, as your camera has to be pointed at the floor. If you want to track trailers, I'd advise that you use the camera only for that, in which case you could consider using something like an ultrasonic range sensor to detect obstacles, although this is a much coarser way of doing it.

If you have any more questions, feel free to post back in this forum, and I'll try to help you out.

--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor

Last edited by RyanCahoon : 08-02-2009 at 13:44.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2009, 14:08
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: Rookie Team Prgramming [autonomous]

When it comes to finding obstacles and avoiding them with a camera... well, there are million dollar prizes for designing cars that can do just that. So far, no one has won any of them. you can do a decent job, but to be excellent, you need amazing programming skills, time, and better hardware then we have.
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
solenoid prgramming Skyman7 Pneumatics 4 09-02-2009 08:53
Rookie Team - Autonomous Mode Question EE_I_B Programming 8 06-02-2008 16:17
Rookie autonomous modes StephLee General Forum 6 30-04-2005 13:16
Autonomous opinions for a rookie JamesBrown Programming 13 07-01-2005 21:48
TEAM 121 and a rookie team on CBS SAT MORNING! Joe Menassa General Forum 7 21-03-2002 00:47


All times are GMT -5. The time now is 15:12.

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