Skip to content

Commit

Permalink
Merge branch 'main' of github.com:juanmanzanero/fastest-lap
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmanzanero committed Jun 23, 2022
2 parents 27f7b2f + fae6d0d commit a3d3ebb
Show file tree
Hide file tree
Showing 7 changed files with 196 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ Fastest-lap is a vehicle dynamics simulator. It can be used to understand vehicl
[![Linux](https://github.com/juanmanzanero/fastest-lap/actions/workflows/linux.yml/badge.svg)](https://github.com/juanmanzanero/fastest-lap/actions/workflows/linux.yml)
[![Windows](https://github.com/juanmanzanero/fastest-lap/actions/workflows/windows.yml/badge.svg)](https://github.com/juanmanzanero/fastest-lap/actions/workflows/windows.yml)


![test](https://user-images.githubusercontent.com/26557659/173203219-077be886-7c84-49a8-a4c7-762c9f6933f7.png)

<p align="center">
<img src="https://pbs.twimg.com/media/FLbX1kTWQAArl-O?format=jpg&name=large" />
</p>


### What can be done

- [Numerical G-G diagram][gg]: given a vehicle, and a speed, to compute its ax-ay diagram. The G-G diagram is a useful technique in vehicle design and parameters exploration.
Expand All @@ -25,6 +29,7 @@ Fastest-lap is a vehicle dynamics simulator. It can be used to understand vehicl
https://user-images.githubusercontent.com/26557659/163474269-5c195f4b-2109-419d-af49-7b7fa86a603d.mp4



[gg]: https://github.com/juanmanzanero/fastest-lap/tree/main/examples/python/kart/gg-diagram
[optimal-laptime]: https://github.com/juanmanzanero/fastest-lap/tree/main/examples/python/f1/optimal-laptime

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document id="1Lai6vdFruo1a3nwafcJqQONStCe8YmVl">
<name>karting_race_track</name>
<Placemark id="0589D78EB522BB6B6DAC">
<name>kartare_track_left_line</name>
<LookAt>
<longitude>1.881937946371124</longitude>
<latitude>43.00601776099577</latitude>
<altitude>399.7547914634627</altitude>
<heading>0</heading>
<tilt>0</tilt>
<gx:fovy>35</gx:fovy>
<range>260.5912426929354</range>
<altitudeMode>absolute</altitudeMode>
</LookAt>
<styleUrl>#__managed_style_07A25114DA22BA316131</styleUrl>
<LineString>
<coordinates>
1.8821616070013,43.00572681302328,398.8497454762739 1.881440953634119,43.00496720606004,401.9109670212415 1.881396394426635,43.00494570560711,402.0967681004875 1.881344422885745,43.00493517238387,402.285848249842 1.881259184692641,43.00492764772255,402.5959954648069 1.881188894611405,43.00493910774861,402.8477849476432 1.880647106530446,43.00513624812476,405.1730704254861 1.880600453387737,43.00517457156795,405.4911269085243 1.880582969654256,43.0052261950681,405.7062017739128 1.880576688240927,43.00527236623854,405.9427674402038 1.880788445172037,43.00559088682012,406.2836195279241 1.880807507348294,43.00564746947564,406.4442610500379 1.880812108707868,43.00569857077548,406.679973472562 1.880795817822207,43.00576822246018,407.2163045264929 1.880772456198212,43.00582147832118,407.8017452283081 1.880777548730008,43.00590422893776,408.1556940488513 1.88093632863789,43.00627322974573,409.5599698660918 1.881317877942701,43.00691033089289,406.7828872677235 1.881352955678537,43.00703274357781,406.7127498687238 1.881366837391136,43.00719209326127,407.0603799740472 1.881368199755318,43.00729023092472,407.5040384129685 1.881357444196095,43.00737158029476,408.1511070485902 1.881363879345028,43.00743912144673,408.1719158998417 1.881403084706825,43.00748417374329,407.4204087723319 1.881459720595624,43.00751960404813,407.098081948174 1.881534695071592,43.00752988273477,406.3489737899061 1.881616288271988,43.00752154671247,405.4698447640167 1.881708131196873,43.00750134528585,404.5804644644591 1.881797469524789,43.00748093034699,403.7553456888014 1.881909897832912,43.00748444009754,402.6556771041271 1.882539934119154,43.00750000960969,399.2658356065274 1.882616443391731,43.00748592130061,398.8952619327873 1.882666351335589,43.00744019885575,398.7066119497177 1.882686494940533,43.00737504285968,398.5526827291304 1.882676734335609,43.0073267153528,398.4733683347977 1.882633571015551,43.00728073748281,398.5616744592799 1.882570538443029,43.00723720429332,398.6906751829165 1.882491007446081,43.00721545436732,398.8534391246569 1.882404967946776,43.00720821426439,399.0218942308556 1.88186041158839,43.00721069781351,402.0575715757915 1.881802437079856,43.00718690470772,402.6194520880022 1.88178297533488,43.00712978740189,402.6693691903139 1.881842173536161,43.00660462244517,400.7901165708259 1.881835349187015,43.00646072947066,400.6222587376689 1.881796393871962,43.00640087476316,400.8567652898492 1.881738211799562,43.00635561740751,401.2684552637727 1.881657246484829,43.00634153200024,401.6368046122742 1.88155124761249,43.00634441769125,402.3151456634421 1.881423086394192,43.00635680515655,403.0024479548427 1.881355202813795,43.00634331366259,404.0424982113712 1.881280151633984,43.00627063816464,404.7406508375972 1.881254824402472,43.00623301242977,404.8694566028794 1.881254212455199,43.00619268536725,404.7121363795436 1.881278502071417,43.00616376323387,404.3051699010613 1.881488023454021,43.00601701163492,401.8732212283806 1.881519287625093,43.00597627646638,401.5525930291406 1.881512809799397,43.0059213073578,401.5778773228953 1.881490170830018,43.00587595155659,401.6765396426881 1.881358405221394,43.00571914480756,402.4192832864943 1.881237478026416,43.00562040523238,403.2572217445741 1.881047105395097,43.00534611469495,403.9063927132296 1.881040322910583,43.00530107523194,403.7905931857123 1.881059344849487,43.00526308642157,403.6256668138448 1.881187782189591,43.00520576870107,403.0075335832981 1.881232912557333,43.00521991014428,402.8074532383399 1.881320236123212,43.00525782209269,402.4783103382929 1.881349350162931,43.00528158997117,402.3381143079163 1.88146937997584,43.00547962255339,401.766365092477 1.881482413076199,43.00563729369073,401.7325889812678 1.881505169012374,43.00567088842421,401.5989300114327 1.881845815965959,43.00589141296167,400.0623871336973 1.881895332773693,43.00594492968827,399.8369178803206 1.881924928100103,43.00599782978985,399.7835504930046 1.881938090131228,43.00603392631701,399.7764007454124 1.881974304678788,43.00667878631084,399.8567007691385 1.882007345673689,43.00699470119449,400.3515824241155 1.882036884865521,43.00703578570244,400.0260108336579 1.882092852481703,43.00706502871819,399.5968668924285 1.882172046618971,43.00708461308513,399.2735867338856 1.882244595525453,43.00708220528654,399.2697207304004 1.882456176669818,43.0070608085058,398.924650881212 1.882538919460097,43.00703916067597,398.8204853697814 1.882591766409873,43.00699326305997,398.8228123136147 1.882601694353461,43.00694012474973,398.8139335657743 1.882601693969268,43.00690389026612,398.8139399373507 1.882390088885233,43.00671794880585,398.9607271569604 1.882360375408874,43.00666724901757,398.9607604436372 1.882353772247076,43.00661172052165,398.9607081794522 1.882373622543803,43.006565815496,398.9270290593665 1.882499326498628,43.00649320393146,398.7912707895036 1.882615639888827,43.00636459989376,398.4717910966148 1.882632688030306,43.00629640790514,398.2414408620641 1.882610260724873,43.00621998928662,398.1315803878441 1.882261821465188,43.00582320952978,398.6890795571338
</coordinates>
</LineString>
</Placemark>
</Document>
</kml>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document id="1Lai6vdFruo1a3nwafcJqQONStCe8YmVl">
<name>karting_race_track</name>
<Placemark id="09C9B2C15622BD6CA1D6">
<name>kartare_track_right_line</name>
<LookAt>
<longitude>1.882214591932982</longitude>
<latitude>43.00640262261676</latitude>
<altitude>398.9231916982674</altitude>
<heading>-4.026605235274883</heading>
<tilt>0.5407637549512113</tilt>
<gx:fovy>35</gx:fovy>
<range>260.8066089461864</range>
<altitudeMode>absolute</altitudeMode>
</LookAt>
<styleUrl>#__managed_style_07A25114DA22BA316131</styleUrl>
<LineString>
<coordinates>
1.882060891762751,43.00578235197761,399.0061177041078 1.881738989397428,43.00543830081,400.5503225467422 1.881434833472302,43.00506161843727,401.9280527654719 1.881396859266482,43.00502173119136,402.1091855842234 1.881308240182731,43.00500809447063,402.535963688691 1.881235268697956,43.00503072515421,402.7994861069031 1.880734930744008,43.0051954572151,404.8331194447466 1.880694478638942,43.00522170283547,405.011983276395 1.880693337456614,43.00526644969566,405.0480770386122 1.880821421954602,43.00548744731038,405.4871206072842 1.880887756432892,43.00556631335023,405.5248932544156 1.880908105231358,43.00563073107578,405.7683293374846 1.880909267465487,43.00568497793921,405.8122097319055 1.880867880397974,43.0058221335688,406.8639738529349 1.880864130582036,43.00587071629347,407.1239262884978 1.880961609787803,43.00610706137218,407.792381565875 1.88123817769448,43.00657955232324,406.8601896118831 1.881424657067663,43.00691502499528,404.9879637419676 1.881453364372576,43.00698497123923,405.0335597950879 1.881474498561235,43.00724487156579,405.7387354744101 1.881465941042941,43.00741695266338,406.6317424995788 1.881482209363152,43.00744623556347,406.5703191154429 1.881544452286288,43.00745579262738,405.9720913897786 1.881611877373501,43.00744695132592,405.2767243180063 1.881771595947048,43.00741653176332,403.6878039687327 1.881850019305575,43.0074060648057,402.7994919097909 1.8825372469081,43.00742667627014,398.9207263848448 1.882582805079276,43.00740261634207,398.7945805136284 1.882581222378386,43.00735183309173,398.6688567607621 1.882537425997364,43.00732270458474,398.7585140923208 1.882490594111894,43.00729100789341,398.8543044169841 1.882398630157023,43.00728109357416,399.0355473632841 1.881871418868157,43.00728181637594,402.130817562792 1.881779182241681,43.00726563783213,403.0944316389116 1.881708830483162,43.00722539858784,403.5645328427221 1.881679389396793,43.00716189884464,403.6319902483316 1.881739358415144,43.00665128463839,401.5251899202835 1.881739926015911,43.0064769845481,401.4296544629195 1.881705831785652,43.00642775582462,401.6073453501655 1.881632761886121,43.00641499391629,402.0020104592524 1.88151617813169,43.00642417512566,402.7024296535328 1.881398306478912,43.00642640187193,403.6306376124604 1.881301274140648,43.00639941376732,404.8483364356134 1.881208955824916,43.00632809098119,405.8656864644695 1.881156457963558,43.00626040003751,406.3248990191174 1.881146156912485,43.00619420427871,406.0020280702581 1.881182426968024,43.00613263037931,405.1638696866944 1.881283746822571,43.00605488606224,403.6052919823805 1.881392106132496,43.00598619774686,402.2348484138416 1.881412206877005,43.00594422761891,402.0339854570965 1.881394093985658,43.00589816520249,402.1613650856207 1.881141396318986,43.00564171896524,404.1774880074432 1.880941682743349,43.00534579868645,404.379631984899 1.880939168811826,43.00526759900382,404.1752532251236 1.880993131293029,43.00520638910861,403.9445593540865 1.881099777435167,43.00516160652195,403.3542147127683 1.881199719989999,43.00512593355104,402.9016730854252 1.881303826130967,43.00511899011529,402.5572465730597 1.881377888841851,43.00515563613343,402.2005746802532 1.881461677089051,43.0052285885539,401.8025080802146 1.881528660488239,43.00534396833516,401.4917060230914 1.88158010587427,43.00548763740445,401.2903888057697 1.881608333768152,43.0055681319303,401.1788221792876 1.881604933438514,43.00563743467517,401.2046622615198 1.881887106685802,43.00581917761092,399.8668889452441 1.88198006139773,43.00588732018419,399.4624643367118 1.882014447615163,43.00594496006032,399.3144568244177 1.882038238510757,43.00604561410646,399.3352946745468 1.882074777699951,43.00672274051913,399.2123336734168 1.882110024416916,43.00697380417334,399.2666979705324 1.882150494727239,43.00699983081387,399.3878683634764 1.882221678713825,43.0070158949198,399.2697209298658 1.882473786862642,43.00697632136952,398.9290269192015 1.882506207494981,43.00694894556485,398.8998292708504 1.882492935813587,43.00691428597572,398.9117750231021 1.882326642091874,43.00678447228391,398.9606609641472 1.8822482069153,43.00667149419068,398.9607545544559 1.882229992993929,43.00658589090938,398.9606944177526 1.882264896948456,43.00653208142216,398.9606818542601 1.88232119844524,43.00649633235646,398.9116128350778 1.882426130091233,43.00643652226335,398.7633719850184 1.882518974464542,43.0063301448778,398.6563832880719 1.882519514590366,43.00629146696466,398.5075634125205 1.882499132011322,43.00622761625348,398.521680495867 1.882146270369875,43.00587968928458,398.8696440451352
</coordinates>
</LineString>
</Placemark>
</Document>
</kml>
55 changes: 55 additions & 0 deletions database/tracks/lavelanet_karting/karting_lavelanet_track.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document id="1Lai6vdFruo1a3nwafcJqQONStCe8YmVl">
<name>karting_race_track</name>
<Placemark id="06BF19C5CD22BA49E4D3">
<name>left_line_cw</name>
<visibility>0</visibility>
<styleUrl>#__managed_style_07A25114DA22BA316131</styleUrl>
<LineString>
<coordinates>
0.2127095902245091,47.94009800218134,43.89726763119194 0.2133545249912205,47.93949289110276,43.43905205849074 0.2133744218130906,47.93942408712057,43.43514530039983 0.2133462510134776,47.93933719918666,43.38150361983254 0.213258320936538,47.93921765556988,43.2317950338642 0.2131579500492764,47.93919974817621,43.2543918082992 0.2130034575868334,47.9392130639982,43.30988515893604 0.2128722919888704,47.93921830163666,43.39299601829732 0.2127657614571743,47.93920242277936,43.23703752136333 0.2119176350509289,47.93897120680318,43.23177519059112 0.2118151895408138,47.9389637936743,43.14449103781953 0.2117268162272468,47.93898820411962,43.22471691699371 0.2116421072727759,47.93918748137714,43.06664084277467 0.2116503032698569,47.93985995466846,43.85356553764052 0.2117088438310755,47.93993495109874,43.85352377863445 0.2117936620394922,47.93996981015901,43.85351164660978 0.2119262972727687,47.93998972005368,43.85353785014206 0.2120544147572101,47.93998764332729,43.85355595622691 0.21217362834691,47.93996082689827,43.85359009169277 0.2122734364989731,47.93993369540791,43.85359503305963 0.2123967697503848,47.93988125678226,43.69215647398913 0.2124989479029038,47.93979439858308,43.64633653012551 0.2125427612584074,47.93973879123029,43.53804976595517 0.2125550609538496,47.93965705946106,43.63876587936608 0.2124947497032759,47.93958785501555,43.56396674140099 0.2124086817200754,47.93954124230489,43.43903208224071 0.2121807264221776,47.93950083260333,43.42361203274282 0.2120588350781194,47.93947595389609,43.26879851119773 0.2120226417602766,47.9394242056138,43.23179536206263 0.2120110016582943,47.9393499128908,43.23178913053644 0.2120459639705197,47.93929444589632,43.23182421381672 0.2120940858756803,47.93927012759568,43.23181249486939 0.2121696028060693,47.93927677041975,43.23183126300969 0.2128534650675284,47.93944345828762,43.42160068282065 0.2129020153441274,47.939476084681,43.4390522353218 0.2129080232036773,47.93952741901977,43.43906505628023 0.2123037591659505,47.94010211319746,43.8648383020389 0.2122296424643744,47.94012248917942,43.88990314138755 0.2121786161104322,47.94013787321666,43.92748862346262 0.2116306884262076,47.9400503647781,43.96294107887746 0.2115711272100684,47.94001879677563,43.85361130576015 0.2115246464662146,47.9399599542152,43.85355325424847 0.2114945874223206,47.93989689738099,43.85360128014695 0.211351594888487,47.93921576674891,43.2628048326672 0.2113879668218721,47.9391257102783,43.31456107692231 0.2114090208092656,47.93895022278665,43.23177985044295 0.211365944715014,47.93890103634244,43.23182990777652 0.2112746315878544,47.93886540595628,43.1713350748003 0.2111584331425687,47.93887659830568,43.11027801245249 0.211066563664164,47.93889346939005,43.02451254839579 0.2109818272380082,47.93892957207505,43.14063651845003 0.210920467194422,47.93898625054642,43.23179277184141 0.2108511806082936,47.93905630521298,43.17741617577255 0.2107914506206376,47.93916324418272,43.22925974768795 0.2107919698260763,47.93924329974223,43.23183769258666 0.211081790666483,47.93966193897701,43.43903083452082 0.2111583445319098,47.94017670822108,43.67544408376406 0.2111862485601779,47.94023437211094,43.8535580866874 0.2112475192485408,47.94026767777629,43.85352781038238 0.2114069049177236,47.94031778633412,43.69087133382229 0.2114278791283919,47.9403559971048,43.69183386483652 0.2114305118031301,47.94051164386235,43.93436451775921 0.2114739265115984,47.94055810265207,43.85363492755911 0.2115273469970935,47.94059067553906,43.85362421584144 0.2119201015109051,47.94071510117818,44.06084408614244 0.212009570638052,47.94070883017317,44.04468872787073 0.2120967779642324,47.9406714435695,43.88497056657165 0.2125977274036228,47.94021139599556,43.94220954523411
</coordinates>
</LineString>
</Placemark>
</Document>
</kml>
Loading

0 comments on commit a3d3ebb

Please sign in to comment.