Go to Post "So Ken Patton, Paul Copioli, and John V-Neun walk into a bar..." - JVN [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 16-01-2010, 11:12
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Any Programmers Have The Same Feeling As Me?

The others have explained it pretty well-

The reason is because many teams lack the coding prowess to do a lot of that by themselves.

However, in my experience, truly implementing the code they give you well is the more challenging part. Sure they give you the code that runs the encoders and camera, but doing something with that data (and doing it well) requires a lot of time, patients, and know-how.

For example, last year they gave everyone the two-color camera tracking code. Yet even with that, very few teams were able to effectively follow the trailers.

And once you get some of that working, ask yourself what else you can do. The next step could involve PID loops. Some teams have even included ultrasonic or IR sensors, GPS devices, and more. There is always more you can in your code (with some electronic assistance) to make your job more challenging.
__________________
Team 2052- Knightkrawler
Mentor and volunteer
  #2   Spotlight this post!  
Unread 16-01-2010, 11:54
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: Any Programmers Have The Same Feeling As Me?

The default vision code is actually rather thin. It is built on top of NI IMAQ and then does some normalization and simple scaling.

The PID drive should work on a given set of robots that are built like the ones in the video, but weight, wheel, or even center of gravity changes will require the code to be retuned. Also keep in mind that the default code will simply point, no kicking, no pushing, no scoring.

So, the default code will score at most zero points. Depending on where you place the robot on the field, it could even cause penalties.

Hopefully it will provide inspiration.
Greg McKaskle
  #3   Spotlight this post!  
Unread 16-01-2010, 12:18
nikRbokRz nikRbokRz is offline
Registered User
FRC #1683
 
Join Date: Jan 2010
Location: Atlanta, GA
Posts: 14
nikRbokRz is an unknown quantity at this point
Re: Any Programmers Have The Same Feeling As Me?

The code FIRST gives you is really not as useful as some teams would like. Unfortunately, especially for newer teams, it cannot be used without some sort of customization. Last year, our team tried to use the color recognition software, but we weren't able to implement it.

That being said, it is rather nice to have some sort of working template to refer to.

On a different note, I was wondering where the default code is available. Our team is going to be using Java, but we haven't been able to find any default code.
  #4   Spotlight this post!  
Unread 16-01-2010, 13:24
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 412
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
Re: Any Programmers Have The Same Feeling As Me?

Quote:
Originally Posted by davidthefat View Post
Well this year is my first year of doing robotics, and I was actually quite surprised... They did pretty much half the work for you, they made you a library and edge detection for you. Well I was hoping that we had to make it from scratch and they just provided the library for the very low level stuff, I noticed its really high level programming you need to do. I haven't really started, I just look through the libraries but I think it takes away from the experience... You can argue that its only 6 weeks and is by highschool students, but still...
I felt that way once - in 2005, when in my first year in FRC on a rookie team. I was pretty confident in my C programming skills, and when they talked about how much code was being prepackaged, I was a little disappointed.

Now, as someone who's been involved with the programming since 2005, trust me, it's harder than it looks. They've given us some "it should work out of the box" code nearly every year, and almost no one uses it. Almost no one does the great things the GDC hopes for. No matter what they package for us, programming the robot is still hard.

Does giving the teams large libraries take away from "the experience"? I don't think so. Think about it: suppose you're writing a simple GUI for some program. You don't look up how to write to the screen memory buffer, or write font handling code from scratch. You use a library that's already been written. That's the awesome thing about Java, Python, PHP, MATLAB, and LabVIEW (to name just a few). All of these languages have extensive built-in libraries to do all kinds of things. It makes us programmers more productive, and lets us spend our time working on the fun problems, rather than slogging through the swamp of low-level code.

Don't worry that you'll run out of interesting coding work to do. If you like playing around with low-level stuff, try adding some new sensors, such as an optical mouse. Or devise an automated system to assist the drivers in possessing balls. Or create an autonomous mode program that will make everyone's jaw drop. The options are truly limitless.
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...
  #5   Spotlight this post!  
Unread 16-01-2010, 18:05
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: Any Programmers Have The Same Feeling As Me?

While the ellipse-finding code works reasonably well, it does need to be retuned a bit.

Keep in mind that you also have no pan/tilt tracking code provided.....try writing a feed-forward servo tracking algorithm, should give you a bit of a challenge .
__________________
  #6   Spotlight this post!  
Unread 16-01-2010, 18:18
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Any Programmers Have The Same Feeling As Me?

Quote:
Originally Posted by DanDon View Post
Keep in mind that you also have no pan/tilt tracking code provided.....try writing a feed-forward servo tracking algorithm, should give you a bit of a challenge .
Kevin Watsons code could easily be adapted for the servo tracking, (http://kevin.org see tracking.c from 2007). It basically just keeps adding the current error (position of target - center) to the servo values.
  #7   Spotlight this post!  
Unread 16-01-2010, 19:52
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: Any Programmers Have The Same Feeling As Me?

Quote:
Originally Posted by bear24rw View Post
Kevin Watsons code could easily be adapted for the servo tracking, (http://kevin.org see tracking.c from 2007). It basically just keeps adding the current error (position of target - center) to the servo values.
A man of my own mind....they can still be optimized though....I remember making some extensive modifications to them in 2007, including running 2 CMUcams at the same time .
__________________
  #8   Spotlight this post!  
Unread 16-01-2010, 19:57
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Any Programmers Have The Same Feeling As Me?

Quote:
Originally Posted by DanDon View Post
A man of my own mind....they can still be optimized though....I remember making some extensive modifications to them in 2007, including running 2 CMUcams at the same time .
Any chance of you posting those optimizations somewhere? I'm doing a side project involving tracking stuff with servos and would be interested in seeing what all you changed
  #9   Spotlight this post!  
Unread 16-01-2010, 21:36
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: Any Programmers Have The Same Feeling As Me?

If you think about it, the WPI library only provides low-level functions such as motor and servo control, interpretation of sensor data, an interface with the driver station, and vision (acquisition and interpretation via NI's vision library).

Programming, especially in this competition, isn't always about writing low-level code, but also the constructive use existing code. Finding a creative way to these mechanisms is easy, but the implementation can be infinitely harder.
  #10   Spotlight this post!  
Unread 16-01-2010, 22:04
Dragon Princess's Avatar
Dragon Princess Dragon Princess is offline
Registered User
AKA: Katheryne
FRC #3722 (Green wave)
Team Role: Mentor
 
Join Date: Jul 2009
Rookie Year: 2008
Location: Hartford, Connecticut
Posts: 39
Dragon Princess has a spectacular aura aboutDragon Princess has a spectacular aura about
Re: Any Programmers Have The Same Feeling As Me?

I found that when you use the codes already given, you spend more time tailoring it to your robot then anything else, but you can also remember that you can choose not to use the given code and write yours from scratch, I'll tell you that it's some-what frustrating at time but it is entirely possible.
__________________
From the Dragons to the Green Wave! Make a Splash!
  #11   Spotlight this post!  
Unread 16-01-2010, 18:20
Guopeter Guopeter is offline
Registered User
AKA: Pie
FRC #0296 (Northern Knights)
Team Role: College Student
 
Join Date: Mar 2008
Rookie Year: 2008
Location: Guelph, Ontario
Posts: 21
Guopeter is just really niceGuopeter is just really niceGuopeter is just really niceGuopeter is just really nice
Re: Any Programmers Have The Same Feeling As Me?

I was a programmer for two FRC seasons.

I know what you mean; at one point, I was hoping every team would have the programs built "from scratch", this way, my team would stand out (because of my "superior" programming). The GDC included these libraries and significantly elevated the level of competition.

Of course, some maturity comes with time. The way I look at it since then is that the "prepackaged" codes are there for you to "unpackage" and "re-package" with added components. Not only is this a great way for learning, but you always end up writing a better program that what was provided. Like what's mentioned above, the provided libraries challenge the programmer to be more creative. In this sense, good programmers can still make their team "to the next level" and feel very accomplished.

Although Labview has PID and Vision classes ready to go, I end up creating my own for both of them.

-Pie Man
__________________
-Northern Knights 296
-Beaverworx 2609

Last edited by Guopeter : 16-01-2010 at 18:25.
  #12   Spotlight this post!  
Unread 16-01-2010, 19:19
brianc217's Avatar
brianc217 brianc217 is offline
Registered User
None #1153
 
Join Date: Feb 2008
Location: Walpole, MA
Posts: 36
brianc217 is an unknown quantity at this point
Re: Any Programmers Have The Same Feeling As Me?

Where does FIRST give the target tracking code for LabVIEW? Are you just talking about the libraries or is there default code in the autonomous VI for vision?
I haven't looked at the new LabVIEW yet since we just finished installing it on our computers. Thanks.
__________________
http://walpolerobotics.org
  #13   Spotlight this post!  
Unread 16-01-2010, 20:05
jmanela's Avatar
jmanela jmanela is offline
+1 is BIGGER than -1
AKA: Joshua Manela
FRC #2586 (Fondy Fire)
Team Role: College Student
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Michigan
Posts: 314
jmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to behold
Re: Any Programmers Have The Same Feeling As Me?

Quote:
Originally Posted by brianc217 View Post
Where does FIRST give the target tracking code for LabVIEW? Are you just talking about the libraries or is there default code in the autonomous VI for vision?
I haven't looked at the new LabVIEW yet since we just finished installing it on our computers. Thanks.
to answer your question, in the new LV architechure (not sure about WR or Java) they impliment the vision tracking program for you (it's in the vision code). However, there is room for improvement based on your application.

The libraries are good so you can skip the housekeeping. To learn effectively, it is better to get right to the mashed potatoes and get into your logic.
__________________
||2009|| Entrepeneurship Award, QF - Traverse City | Rookie All Star, QF - Detroit | Highest Rookie Seed, Rookie All Star, QF - Michigan State Championship | Finalist - MARC ||2010|| Engineering Inspiration, Website Award, SF- Kettering | Judges Award, Website Award, SF - Detroit | Website Award, Winner, Michigan State Champ //Thank you 469 and 1918!! | Finalist - MARC ||2011|| Engineering Inspiration, Website - Kettering | Entrepreneurship, Website, Finalist - Waterford | Website - MSC
  #14   Spotlight this post!  
Unread 16-01-2010, 22:07
jerry w's Avatar
jerry w jerry w is offline
Free Agent Mentor
no team (Team Krunch)
Team Role: Engineer
 
Join Date: Nov 2003
Rookie Year: 2002
Location: dunedin fl
Posts: 113
jerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud of
Re: Any Programmers Have The Same Feeling As Me?

Quote:
Originally Posted by brianc217 View Post
Where does FIRST give the target tracking code for LabVIEW? Are you just talking about the libraries or is there default code in the autonomous VI for vision?
I haven't looked at the new LabVIEW yet since we just finished installing it on our computers. Thanks.
I am embarrassed to say that we could not find the vision code. I knew FIRST had supplied it. I had a student search on-line for the labview library. Then two days ago I was teaching two new students how the FRC code worked. There in the default vision loop was the entire example code.
The code is very thorough and should be easy for even our laziest student to follow. (Don't worry Gavin, no one will know it is you.)
__________________
Happiest when people tell the truth... However, I am blessed with many friends.
  #15   Spotlight this post!  
Unread 16-01-2010, 20:20
Boydean's Avatar
Boydean Boydean is offline
The Blue Alliance
no team
Team Role: Alumni
 
Join Date: Apr 2007
Rookie Year: 2003
Location: SC
Posts: 319
Boydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant futureBoydean has a brilliant future
Send a message via AIM to Boydean
Re: Any Programmers Have The Same Feeling As Me?

I find it useful, while not intruding. I'm going to be using the out of the box camera tracking for our needs, with a little extra tweaking(aka, restructuring to make it process faster). But other then that, I had it tracking the target and centering just fine after about 15min of refining. I want to spend that time saved trying to do more complex things, like calculating the trajectory of the ball accurately.

I'm the kinda of person who doesn't like to reinvent the wheel. If someone has already done it, and gives it to me; I'll use it and go work on something else.
__________________
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
How Can Multiple Programmers Work on Same Project? LVMastery NI LabVIEW 1 28-01-2009 23:43
Driver Station Blank Screen, Anyone have the same problem? LDavies562 FRC Control System 14 22-12-2008 19:34
VB or any other GUI programmers John Gutmann Programming 14 08-04-2007 23:09
Same bore, same stroke, same mounting--is it legal? Billfred Pneumatics 2 20-02-2005 00:41
Any student programmers going to UCF prog. Comp. archiver 2000 0 23-06-2002 22:56


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

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