Skip to content

Commit c071369

Browse files
committed
update data geeration readme
1 parent ffd30cf commit c071369

File tree

9 files changed

+39925
-39902
lines changed

9 files changed

+39925
-39902
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,26 @@
7474

7575
## Data generation
7676

77+
In order to produce some data we used the flight rocket simulator developed by a PERSEUS team of Central Lille. You can find the code in AIBSIF/simulateur/Kaos-master/
78+
79+
We focus on the main.py file. In main the my_rocket objet was called from the sera3.py file that you can find in AIBSIF/simulateur/Kaos-master/rockets . The sera3.py containt an accurate object representing the SERA3 rocket with exacte physical parameters, but also inertial measurement unit which are configurable with "noise_power" and "erreur_de_justesse".
80+
Previously in the first version of the code the obejct sera3 was called only once leading to variation null in our data generation. This is why we took the entire code of sera3 and put in directly in the main.py file. This way we generate slightly different data from each other.
81+
we randomized this parameter:
82+
83+
accelerometres_list=[Accelerometre([2.09,0.0,0.0],phi=0.0, theta=0.0, psi=0.0, incertitude_phi=0.0, incertitude_theta=0.0, incertitude_psi=0.0, noise_power=random.random()/100,erreur_de_justesse=random.randint(0,10)/100),Accelerometre([2.09,0.0,0.0],phi=0.0, theta=0.0, psi=0.0, incertitude_phi=0.0, incertitude_theta=0.0, incertitude_psi=0.0, noise_power=random.random()/100, erreur_de_justesse=random.randint(0,10)/100),Accelerometre([2.09,0.0,0.0],phi=0.0, theta=0.0, psi=0.0, incertitude_phi=0.0, incertitude_theta=0.0, incertitude_psi=0.0, noise_power=random.random()/100, erreur_de_justesse=random.randint(0,10)/100)],
84+
85+
gyroscopes_list = [Gyroscope('zyx', noise_power=random.random()/10, erreur_de_justesse=random.randint(0,10)/100),Gyroscope('zyx', noise_power=random.random()/10, erreur_de_justesse=random.randint(0,10)/100),Gyroscope('zyx', noise_power=random.random()/10, erreur_de_justesse=random.randint(0,10)/100)],
86+
87+
puissance_vent = random.choice([0,1,2])
88+
longeur_rampe = random.choice([7,8,9,10,11,12,13,14,15])
89+
latitude = random.randint(50,70)
90+
longitude = random.randint(10,30)
91+
92+
93+
If you want to generate new data you can keep this code or modifie parameter, you can also change rocket model but keep in mind that our machine leanrning model needs 3 IMU of each type. then execute main.py file. the code will produce a N number of data set according to the value of the loop:
94+
95+
for name in tqdm(range(20)): #here the value is 20
96+
97+
Data produced with no error will be register in folder resultats_3IMU and data produced with randomized error will be register in folder sensors_data_3IMU
98+
99+
## Working with our model

data/resultats_3IMU/resultats_0.csv

Lines changed: 4977 additions & 4977 deletions
Large diffs are not rendered by default.

data/resultats_3IMU/resultats_1.csv

Lines changed: 4973 additions & 4973 deletions
Large diffs are not rendered by default.

data/resultats_3IMU/resultats_2.csv

Lines changed: 4972 additions & 4972 deletions
Large diffs are not rendered by default.

data/resultats_3IMU/resultats_3.csv

Lines changed: 4972 additions & 4972 deletions
Large diffs are not rendered by default.

data/sensors_data_3IMU/sensors_data_0.csv

Lines changed: 5002 additions & 5002 deletions
Large diffs are not rendered by default.

data/sensors_data_3IMU/sensors_data_1.csv

Lines changed: 5002 additions & 5002 deletions
Large diffs are not rendered by default.

data/sensors_data_3IMU/sensors_data_2.csv

Lines changed: 5002 additions & 5002 deletions
Large diffs are not rendered by default.

data/sensors_data_3IMU/sensors_data_3.csv

Lines changed: 5002 additions & 5002 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)