Go to Post I am a geek and proud of it. - +()c|D [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
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 08-01-2016, 20:38
x86_4819's Avatar
x86_4819 x86_4819 is offline
computer-whisperer
AKA: Christian Balcom
FRC #4819 (Flat Mountain Mechanics)
Team Role: Programmer
 
Join Date: Sep 2014
Rookie Year: 2013
Location: Shepherd MI
Posts: 92
x86_4819 is on a distinguished road
WIP release of integrated dynamics, a robot modelling library.

Hi all,

This is a work-in-progress dynamics library designed to provide accurate modelling of any motorized robot mechanism. The library uses ordinary differential equations to ensure correct integration even when the mechanism states change very rapidly between physics updates. For example, this library can show how rapidly a 30 pound load, connected to a 20:1 gearbox and a single cim motor, accelerates to max speed (3.47 feet/sec) from standstill (in less than a tenth of a second).

One use for this is toward a more-accurate off-robot simulation experience. If you want a metric ton of numbers, you can use this right now! For the lesser nerds among us, pyfrc compatibility is in the works.

Another big use of this is to provide on-robot automatic sensor fusion via an extended kalman filter. This combines simulation estimates with indirect, potentially noisy sensor data to approximate robot state in real time.

Something else in the repository is my python implementation of iLQG. In a nutshell, iLQG uses two functions -- a dynamics function and a cost function -- to generate a locally-optimal discrete-time state-space controller. In other words, tell it how your robot works, and what is beneficial for it to do, and it will spit out a list of gains that result in an awesome autonomous mode.

This is primarily a dump of my work preparing for the build season. It is no where near done, just a bunch of neat bits that people might find interesting.

https://github.com/Team4819/integrated-dynamics

PS: It took me several weeks to figure out what the solution to "x' = Ax + b" was! Now that I understand it, I can see so many uses for it. Am I blind, or is there a surprising lack of material on the subject? I just finished Calculus I, when can I expect to learn these in school?
Attached Thumbnails
Click image for larger version

Name:	ilqg_graph.png
Views:	29
Size:	110.8 KB
ID:	19671  
__________________




My Github Repositories
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2016, 21:13
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: WIP release of integrated dynamics, a robot modelling library.

Cool! I definitely did not expect to stumble upon iLQG on Chief Delphi
Reply With Quote
  #3   Spotlight this post!  
Unread 08-01-2016, 22:02
x86_4819's Avatar
x86_4819 x86_4819 is offline
computer-whisperer
AKA: Christian Balcom
FRC #4819 (Flat Mountain Mechanics)
Team Role: Programmer
 
Join Date: Sep 2014
Rookie Year: 2013
Location: Shepherd MI
Posts: 92
x86_4819 is on a distinguished road
Re: WIP release of integrated dynamics, a robot modelling library.

Quote:
Cool! I definitely did not expect to stumble upon iLQG on Chief Delphi
Is it used much in the industry? I stumbled on a whitepaper about it and thought it would be a good fit for an FRC robot.
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


All times are GMT -5. The time now is 05:37.

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