Go to Post And, just for the record, dlavery is on my mental ignore list from September until January if the thread involves the word "hint" at all. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 02-10-2010, 09:07 AM
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire (on sabbatical))
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,507
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
paper: Using a Virtual Robot Model Testing and Debugging Autonomous Code Through Simulation

Thread created automatically to discuss a document in CD-Media.

Using a Virtual Robot Model Testing and Debugging Autonomous Code Through Simulation by Chris Hibner
Reply With Quote
  #2   Spotlight this post!  
Unread 02-10-2010, 09:14 AM
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire (on sabbatical))
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,507
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: paper: Using a Virtual Robot Model Testing and Debugging Autonomous Code Throug

We started using simulation to test and debug autonomous code since the first year autonomous mode was introduced. Way back then (in 2003), we designed and implemented our autonomous control in Simulink+Stateflow (kind of similar to LabVIEW, but from The Mathworks instead of NI).

Using Simulink, we were able to create a nice simple robot model to fully test and debug our autonomous code. We then auto-coded our autonomous code directly from the Simulink/Stateflow models, just like what what teams are doing today with LabVIEW.

Now that FIRST is using LabVIEW, we ported the same simple robot model concept over to the LabVIEW framework. Thanks to simulation, our autonomous code is now fully debugged and working even though we don't have a robot yet.

Simulation is a great tool, and not just for FIRST. This is the way it is often done in the real world. I hope this is useful to some teams.
__________________
-
An ounce of perception is worth a pound of obscure.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-10-2010, 10:45 AM
kramarczyk's Avatar
kramarczyk kramarczyk is offline
is getting his kicks.
AKA: Mark Kramarczyk
FRC #3096 (Highlanders)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Sterling Heights, MI
Posts: 602
kramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond reputekramarczyk has a reputation beyond repute
Re: paper: Using a Virtual Robot Model Testing and Debugging Autonomous Code Throug

Chris, you rock. This is a really cool idea, thanks for sharing. The combined power that is Wings of Fire has been scary all fall... it just got scarier.
__________________
Mark

Brick walls are for other people. - Randy Pausch

Last edited by kramarczyk : 02-10-2010 at 10:52 AM. Reason: added content
Reply With Quote
  #4   Spotlight this post!  
Unread 02-11-2010, 04:47 PM
Unsung FIRST Hero
JVN JVN is offline
Lead Engineer & Coach
AKA: John Vielkind-Neun
FRC #0148 (Robowranglers)
 
Join Date: May 2001
Rookie Year: 2000
Location: Greenville, Tx
Posts: 3,201
JVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond repute
Re: paper: Using a Virtual Robot Model Testing and Debugging Autonomous Code Throug

Chris,
The content of this paper proves that you're an engineering ninja. You taking the time to write and post it proves you're a class act. I already knew both of those things...

Are you trying to prove to your mechanical team that you have too much time on your hands and they should hurry up and finish the robot?

Thanks for sharing. Hope everything is going well for you guys up there.
I can't wait to see what happens when you cross a Huskie with a Chief.

I urge everyone to take a look at what Chris has posted. Mathematically modeling FRC robots is an interesting topic, and to see it implemented practically is very cool.

On behalf of Mechanical Designers everywhere, I want all programmers to do this... maybe then, they'll stop bothering us. "The robot will be ready when it's ready!"

Take Care,
-John
Reply With Quote
  #5   Spotlight this post!  
Unread 02-12-2010, 08:25 AM
Nadav Zingerman Nadav Zingerman is offline
Registered User
FRC #2230
Team Role: Programmer
 
Join Date: Jul 2009
Rookie Year: 2009
Location: Israel
Posts: 90
Nadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to behold
Re: paper: Using a Virtual Robot Model Testing and Debugging Autonomous Code Throug

With computers, every once in a while you see something that makes you think "I could have done this, why didn't I think of it? It would have made my life so much easier." Now is one of those times.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-22-2010, 07:19 AM
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire (on sabbatical))
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,507
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: paper: Using a Virtual Robot Model Testing and Debugging Autonomous Code Throug

Yesterday was our day to get the autonomous code dialed in, so I figure I would post a follow up to report how it went, and how the simulation-based testing and debugging panned out.

Prior to yesterday, here is what we did:

- About 8 hours spent coding our autonomous sub-VI.
- Using the simulation tool, about 4-8 hours spent testing, debugging, and tweaking the autonomous sub-VI.
- Then at various stages, another 4-8 hours for coding, testing, and debugging various "good ideas" we had pertaining to autonomous (all via simulation).

Yesterday, we finally got to test it all on the real robot. Here is what we did:

- about 1 hour was spent dealing with issues in Disabled.vi because we didn't initialize everything correctly.
- about 15 minutes spent in PeriodicTasks making sure calculations were being performed correctly.
- about 20 minutes of testing to be sure the signals were all in the correct orientation (i.e. postive went the proper direction, and negative went the proper direction).

That was all setup in order to start the autonomous subVI testing. In our Auton2010.vi, here is what we did:
- about 1 hour was spent dialing in control gains for all of the various PID loops and controls calculations (and there are quite a few for us).
- about 30 minutes spent running some simple autonomous scripts to verify the robot performance against the simulation.
- about 15 minutes spent writing and testing an autonomous script for use in the competition, which worked flawlessly the first time.

Summary:

During robot testing, we made ONLY two changes in the auton2010.vi:

1) Control gains
2) I removed a feature that I thought was a good idea, but decided it was ill-conceived.

Everything else regarding auton2010.vi was done in simulation. As it was in the past, it was a huge success again this year.
__________________
-
An ounce of perception is worth a pound of obscure.

Last edited by Chris Hibner : 02-22-2010 at 07:22 AM.
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
Robot code simulation on Windows box with Windriver gwlund C/C++ 3 01-22-2010 12:19 AM
paper: Set and display your Auto-Mode using LabVIEW and the Driver Station PhilBot Extra Discussion 0 02-11-2009 11:32 AM
CODE: Using the gyro in autonomous Kingofl337 Programming 1 01-20-2008 06:11 PM
Using the Robot Simulation Toolkit to simulate OI Controls JimGRobot LabView and Data Acquisition 1 03-17-2007 03:14 AM
White Paper Discuss: Code and Walkthrough for Global Positioning System using IR Sensors CD47-Bot Extra Discussion 2 05-20-2004 08:22 PM


All times are GMT -5. The time now is 04:43 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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