Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Programmers: I Have A Challenge For You (http://www.chiefdelphi.com/forums/showthread.php?t=84797)

Robototes2412 17-05-2010 16:20

Re: Programmers: I Have A Challenge For You
 
*sigh*

What I meant is it is always a good idea to know how the device you are programming works. I don't have a college-level education in this stuff, I only know what I can reverse-engineer. I think that the best way to learn how these robotics platforms work is to try things, read manuals, and mess up. Failure is the best teacher.

I am currently teaching a couple freshmen how to hack at stuff. I had them start with a ps/2 mouse and an arduino, and they turned it into encoders for our robot.

"I don't believe in shortcuts! I believe in the almighty GPL!"

kamocat 17-05-2010 16:34

Re: Programmers: I Have A Challenge For You
 
Quote:

Originally Posted by Robototes2412 (Post 962599)
*sigh*

What I meant is it is always a good idea to know how the device you are programming works. I don't have a college-level education in this stuff, I only know what I can reverse-engineer. I think that the best way to learn how these robotics platforms work is to try things, read manuals, and mess up. Failure is the best teacher.

I am currently teaching a couple freshmen how to hack at stuff. I had them start with a ps/2 mouse and an arduino, and they turned it into encoders for our robot.

"I don't believe in shortcuts! I believe in the almighty GPL!"

You do have a good point.
It's essential for the programmers to understand the underlying technology if you expect them to recover from failures. How can they fix a problem if they can't isolate or identify it?
Autonomous is certainly not how you start programming a robot. Start with learning how the system works. What is PWM? Why is it used as a data signal? How (and why) is it used to control the speed of the motor? What is the "braking" action of a brushed DC motor? Why can't the motor run at infinitely slow speeds? What are encoders and potentiometers? How does the health of the battery affect the performance of the motor? What is an FPGA? Why is it used instead of a processor?
I think the WPI library is fairly low-level, though if you wanted, you could periodically generate digital pulses with digital outputs. Having a standalone PWM-generator is also useful. We put a speaker on ours when we made it, so you can actually hear the square wave change as you adjust the duty cycle.

Anyways, understanding how the components of the system work is necessary to understand how the system can fail.

davidthefat 18-05-2010 21:20

Re: Programmers: I Have A Challenge For You
 
I think the priority should be the Robotic perception rather than locomotion. You can have the biggest and the strongest and fastest athlete, but if he is blind, he can be beat by a regular joe with 20/20 vision in a game of football or something.

mjcoss 21-05-2010 17:32

Re: Programmers: I Have A Challenge For You
 
I think that one of the biggest stumbling block for development of autonomous code is time. Programmers are usually the last folks to get their hands on the robot. While we can code things up, we must wait for the robot build process to get to a sufficiently stable point that we can grab the robot to run tests.

If the autonomous code is just a hand crafted set of instructions, then it must be tested, and refined many times to get it working properly. If the autonomous code is more of a state machine with transitions triggered by sensors, then this to must be laboriously tested. If it's an even more elaborate learning system, then the testing is even more intensive.

Bottom line is that there typically just isn't the time to do the needed testing. So some times just code up something simple, others never get around to putting anything into autonomous mode.

As far as the original idea of a fully autonomous robot, while I applaud the ambition, I suspect that it will be unrealistic for most, if not all, teams to be able to do that, given the empirical evidence of autonomous performance to date for most teams.

pSYeNCe 23-05-2010 17:16

Re: Programmers: I Have A Challenge For You
 
Quote:

Originally Posted by mjcoss (Post 963300)
I think that one of the biggest stumbling block for development of autonomous code is time.

Bottom line is that there typically just isn't the time to do the needed testing.

This is precisely why I won't be able to accept the challenge. This last year I had one day to really test the code nonstop- all the other days I'd have it for a few minutes after grabbing it from the build team. I'd love to participate in this challenge- I believe it's a great one that would give any participant a lot of insight into programming- I can't due to insane time constraints. It's not plausible without the time to test.

davidthefat 23-05-2010 21:51

Re: Programmers: I Have A Challenge For You
 
Quote:

Originally Posted by pSYeNCe (Post 963511)
This is precisely why I won't be able to accept the challenge. This last year I had one day to really test the code nonstop- all the other days I'd have it for a few minutes after grabbing it from the build team. I'd love to participate in this challenge- I believe it's a great one that would give any participant a lot of insight into programming- I can't due to insane time constraints. It's not plausible without the time to test.

You know what, I will just be the team leader and have a "software first" mentality. Just recruit more programmers. I would have an army of programmers, plus, I am the biggest and strongest on the team:D :p

Alan Anderson 23-05-2010 22:37

Re: Programmers: I Have A Challenge For You
 
Quote:

Originally Posted by davidthefat (Post 963548)
You know what, I will just be the team leader and have a "software first" mentality. Just recruit more programmers.

The typical problem is not a lack of programming resources. It's a lack of robot.

There are two ways the TechnoKats have successfully dealt with this problem. One is to build into the schedule a set of "programming only" sessions. We did this a couple of years ago, with the programming group having absolute priority on the robot a couple of evenings a week starting in Week 3 of the build. The mechanical and electrical groups were denied permission to work on the robot during those times (though they were encouraged to be present in case something broke). This worked out great because we built a practice 'bot at the same time, so "the robot" was actually able to be used by two groups simultaneously.

The other way is to finish the robot well in advance of ship date so that the programmers have plenty of time with it. This also has benefits for the drivers, giving them plenty of practice time. And probably the best thing about being done early is that there's plenty of time to break the robot. :)

Chris is me 23-05-2010 22:38

Re: Programmers: I Have A Challenge For You
 
Quote:

Originally Posted by davidthefat (Post 963548)
You know what, I will just be the team leader and have a "software first" mentality. Just recruit more programmers. I would have an army of programmers, plus, I am the biggest and strongest on the team:D :p

That should help, but by now I bet you realize the constraint here isn't whether or not you can get people typing fast enough. It's not work that just needs to be chugged through.

Doug Leppard 24-05-2010 08:32

Re: Programmers: I Have A Challenge For You
 
Quote:

Originally Posted by davidthefat (Post 963548)
You know what, I will just be the team leader and have a "software first" mentality. Just recruit more programmers. I would have an army of programmers, plus, I am the biggest and strongest on the team:D :p

If you had an army of hardware guys would the robot be buildt faster? Usually not in fact it can slow the process.

I agree usually the robot hardware is not ready in time to do 15 seconds of a game much less 2 minutes.

Doug Leppard 24-05-2010 08:35

Re: Programmers: I Have A Challenge For You
 
Maybe this has been already suggested I haven't read all the posts.

How about having a post championships competition, like IRI where the robots are totally autonomous. Maybe have it at IRI as one of the vents.

This way there is more time to work on the robot post season.

Andrew Schreiber 24-05-2010 09:18

Re: Programmers: I Have A Challenge For You
 
Quote:

Originally Posted by Doug Leppard (Post 963587)
If you had an army of hardware guys would the robot be buildt faster? Usually not in fact it can slow the process.

Yes, adding workers can slow a process. http://en.wikipedia.org/wiki/The_Mythical_Man-Month may be of some interest to you.

davidthefat 28-11-2010 00:44

Re: Programmers: I Have A Challenge For You
 
I am bumping this one up cause I honestly did not want to start another thread and as the kickoff gets closer, I thought people should see this.

I found a solution to the image processing problem.
http://microcontrollershop.com/produ...ucts_id=352 9

No battery: Legal
4 USB ports = Good
Runs Linux (The Arm 9 Linux uses 32 mb of ram, and this has 32 mb ram... So IDK...)


I realized I can not use the PS3 or a PC due to lack of voltage generated form the batteries... Don't they need a minimum of 110v? and the battery is 12 v.

It says it supports up to 4 webcams, but I do not know how well it can perform while processing images.
I can either just process the data and send the raw data obtained from the camera to the cRio and process the logic there or process the logic on the board. Thats a minor detail that can be experimented with.

Chris is me 28-11-2010 10:46

Re: Programmers: I Have A Challenge For You
 
Quote:

Originally Posted by davidthefat (Post 982274)
I realized I can not use the PS3 or a PC due to lack of voltage generated form the batteries... Don't they need a minimum of 110v? and the battery is 12 v.

That's not exactly true. They need 110V of AC power, and the battery supplies 12 V of DC power. It's not really a matter of simply "oh, 110 is bigger than 12, guess I'm screwed". You could use a power inverter, though I don't think power inverters are FIRST legal...

Have you written any successful programming logic since your last post?

davidthefat 28-11-2010 11:26

Re: Programmers: I Have A Challenge For You
 
Quote:

Originally Posted by Chris is me (Post 982286)
That's not exactly true. They need 110V of AC power, and the battery supplies 12 V of DC power. It's not really a matter of simply "oh, 110 is bigger than 12, guess I'm screwed". You could use a power inverter, though I don't think power inverters are FIRST legal...

Have you written any successful programming logic since your last post?

I honestly have not done any programming since summer. :o

Vikesrock 28-11-2010 13:17

Re: Programmers: I Have A Challenge For You
 
Quote:

Originally Posted by davidthefat (Post 982274)
I am bumping this one up cause I honestly did not want to start another thread and as the kickoff gets closer, I thought people should see this.

I found a solution to the image processing problem.
http://microcontrollershop.com/produ...ucts_id=352 9

No battery: Legal
4 USB ports = Good
Runs Linux (The Arm 9 Linux uses 32 mb of ram, and this has 32 mb ram... So IDK...)


I realized I can not use the PS3 or a PC due to lack of voltage generated form the batteries... Don't they need a minimum of 110v? and the battery is 12 v.

It says it supports up to 4 webcams, but I do not know how well it can perform while processing images.
I can either just process the data and send the raw data obtained from the camera to the cRio and process the logic there or process the logic on the board. Thats a minor detail that can be experimented with.

Another option would be a mini-ITX motherboard. Some of them have a 12VDC jack for power input. I know a number of jetway boards in particular use this form of power input. If you use the default BIOS settings I believe you can run without a CMOS battery, but I'm not positive about that. Using a small SSD for storage you may be able to get an FRC legal computer running.


All times are GMT -5. The time now is 14:58.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi