diff --git a/compiled.csv b/compiled.csv index ea65c53..bb36bb2 100644 --- a/compiled.csv +++ b/compiled.csv @@ -1,49 +1,49 @@ part_number,part_name,material_name,mass,volume,density,area,cmX,cmY,cmZ,bb_length,bb_width,bb_height,Ixx,Ixy,Ixz,Iyx,Iyy,Iyz,Izx,Izy,Izz -camera_mount,camera_mount,SOLIDWORKS,1.066,995.9,0.001,2069.301,26.077,77.19,3.791e-6,15.0,29.904,16.0,106.388,14.146,0.00004366,14.146,50.609,-0.00002246,0.00004366,-0.00002246,96.709 -ISIS_ISPA_1U_SIDE.stp,ISIS_ISPA_1U_SIDE.stp,Steel,108.079,13768.029,0.008,19215.837,101.414,102.908,-0.712,98.0,4.95,82.6,71947.322,290.86,-1871.371,290.86,168900.0,-36.897,-1871.371,-36.897,97174.771 -Transceiver,Transceiver,Steel,433.406,55210.971,0.008,57969.555,98.357,-33.327,34.57,94.305,96.0,23.241,349100.0,-21151.644,452.774,-21151.644,209400.0,-11695.911,452.774,-11695.911,548600.0 -projectile,projectile,SOLIDWORKS,0.847,108.651,0.008,274.826,12.192,62.501,12.192,10.037,10.736,10.037,6.898,-0.237,-0.964,-0.237,10.173,-0.237,-0.964,-0.237,6.898 -ISIS_iSPA_2U_BMSP.stp,ISIS_iSPA_2U_BMSP.stp,Steel,238.488,30380.637,0.008,36346.664,100.085,100.856,156.077,82.6,3.87,211.5,880400.0,25.432,-1129.026,25.432,1013000.0,263.002,-1129.026,263.002,132300.0 -Sun,Sun,Steel,11.338,1444.311,0.008,1210.691,50.0,-6.838,-53.505,11.0,33.5,6.0,1185.612,0.0,0.0,0.0,137.268,22.007,0.0,22.007,1263.292 -EPS,EPS,Steel,2445.66,311500.0,0.008,81469.345,97.5,77.673,0.0,96.0,57.0,90.0,2111000.0,5.684e-9,8.708e-9,5.684e-9,3554000.0,-2.275e-7,8.708e-9,-2.275e-7,2351000.0 -Sun,Sun,Steel,11.338,1444.311,0.008,1210.691,50.0,-6.838,53.505,11.0,33.5,6.0,1185.612,0.0,0.0,0.0,137.268,-22.007,0.0,-22.007,1263.292 -Reaction,Reaction,SOLIDWORKS,51.926,19232.035,0.003,5129.026,-47.0,20.0,36.626,33.0,33.0,38.4,6948.003,0.0,0.0,0.0,6948.003,1.907e-7,0.0,1.907e-7,8030.751 -94125K112_COMPRESSION,94125K112_COMPRESSION,Steel,3.615,460.535,0.008,1181.069,0.002,40.69,0.115,14.263,27.202,14.263,297.902,-8.916,0.008,-8.916,142.892,0.006,0.008,0.006,298.189 -Reaction,Reaction,SOLIDWORKS,51.926,19232.035,0.003,5129.026,-55.0,8.674,3.51e-10,33.0,38.4,33.0,6948.003,0.0,0.0,0.0,8030.751,-1.907e-7,0.0,-1.907e-7,6948.003 -ISIS_iSPA_2U_BMSP.stp,ISIS_iSPA_2U_BMSP.stp,Steel,238.488,30380.637,0.008,36346.664,0.085,100.856,156.077,82.6,3.87,211.5,880400.0,25.432,-1129.026,25.432,1013000.0,263.002,-1129.026,263.002,132300.0 -Star,Star,Steel,1630.538,207700.0,0.008,22393.539,-99.709,-46.985,-0.002,95.0,50.0,44.0,604200.0,1141.64,-180.799,1141.64,1475000.0,90.57,-180.799,90.57,1552000.0 -NANO,NANO,Steel,7148.863,910700.0,0.008,62516.961,0.196,-50.181,0.007,99.0,98.5,101.942,11020000.0,-44155.286,9346.828,-44155.286,11340000.0,-1856.989,9346.828,-1856.989,11070000.0 -6U,6U,Steel,141.036,17966.31,0.008,33980.334,114.874,-107.204,15.729,283.0,10.74,283.0,123300.0,594.999,49544.957,594.999,249700.0,103.946,49544.957,103.946,127900.0 -Runcam,Runcam,Steel,12.203,1554.512,0.008,2351.908,22.024,89.222,-0.048,14.0,14.9,14.078,423.832,-5.8,3.527,-5.8,347.356,-3.41,3.527,-3.41,419.172 -Runcam,Runcam,Steel,12.203,1554.512,0.008,2351.908,-22.19,89.222,-0.048,14.0,14.9,14.078,423.832,-5.8,3.527,-5.8,347.356,-3.41,3.527,-3.41,419.172 -Sat,Sat,SOLIDWORKS,907.378,336100.0,0.003,309800.0,-0.183,9.787,0.0,300.0,200.0,100.0,5943000.0,-9889.642,2.304e-7,-9889.642,9867000.0,4.898e-8,2.304e-7,4.898e-8,12760000.0 -ISIS_iSPA_2U_BMSP.stp,ISIS_iSPA_2U_BMSP.stp,Steel,238.488,30380.637,0.008,36346.664,-99.915,100.856,156.077,82.6,3.87,211.5,880400.0,25.432,-1129.026,25.432,1013000.0,263.002,-1129.026,263.002,132300.0 -ISIS_iSPA_3U_BMSP.stp,ISIS_iSPA_3U_BMSP.stp,Steel,365.628,46576.871,0.008,55492.134,-312.965,100.861,0.06,325.0,3.87,82.6,203300.0,-494.885,2050.657,-494.885,3421000.0,24.145,2050.657,24.145,3218000.0 -Magnetorquer,Magnetorquer,Steel,58.053,7395.244,0.008,2990.011,-34.5,48.078,-26.0,11.0,84.0,11.0,29861.282,0.0,0.0,0.0,865.842,-1.175e-6,0.0,-1.175e-6,29861.282 -Reaction,Reaction,SOLIDWORKS,51.926,19232.035,0.003,5129.026,38.624,37.3,3.51e-10,38.4,33.0,33.0,8030.751,0.0,-1.907e-7,0.0,6948.003,0.0,-1.907e-7,0.0,6948.003 -piece,piece,Steel,4.211,536.42,0.008,874.34,2.808,17.795,3.382,5.3,11.75,29.872,293.908,-0.239,14.364,-0.239,271.745,3.944,14.364,3.944,34.92 -Control,Control,Steel,133.418,16995.941,0.008,30952.471,-99.965,-66.081,-39.009,66.0,57.65,19.0,37456.154,-3.29,1.794,-3.29,43890.031,450.15,1.794,450.15,69728.676 -camera_mount,camera_mount,SOLIDWORKS,1.066,995.9,0.001,2069.301,-26.077,77.19,-3.791e-6,15.0,29.904,16.0,106.388,-14.146,0.00004366,-14.146,50.609,0.00002246,0.00004366,0.00002246,96.709 -hopper,hopper,SOLIDWORKS,20.543,2633.756,0.008,6078.184,0.0,78.286,-1.095e-9,24.0,50.311,44.0,6116.051,0.0,0.0,0.0,2739.986,-9.539e-8,0.0,-9.539e-8,5261.763 -ISIS_iSPA_2U_BMSP.stp,ISIS_iSPA_2U_BMSP.stp,Steel,238.488,30380.637,0.008,36346.664,99.915,100.856,-156.077,82.6,3.87,211.5,880400.0,-25.432,-1129.026,-25.432,1013000.0,-263.002,-1129.026,-263.002,132300.0 -Sun,Sun,Steel,11.338,1444.311,0.008,1210.691,-153.505,-16.838,-44.5,6.0,33.5,11.0,1263.292,22.007,0.0,22.007,137.268,0.0,0.0,0.0,1185.612 -Sun,Sun,Steel,11.338,1444.311,0.008,1210.691,-51.5,-103.505,-1.662,11.0,6.0,33.5,1185.612,0.0,0.0,0.0,1263.292,-22.007,0.0,-22.007,137.268 -Sun,Sun,Steel,11.338,1444.311,0.008,1210.691,153.505,18.338,44.5,6.0,33.5,11.0,1263.292,22.007,0.0,22.007,137.268,0.0,0.0,0.0,1185.612 -projectile,projectile,SOLIDWORKS,0.847,108.651,0.008,274.826,12.192,62.501,-12.192,10.037,10.736,10.037,6.898,-0.237,0.964,-0.237,10.173,0.237,0.964,0.237,6.898 -GPS,GPS,Steel,46.103,5872.947,0.008,13143.977,-100.011,-59.558,40.874,70.0,70.0,9.69,7391.782,-0.489,0.13,-0.489,6207.598,206.025,0.13,206.025,13248.414 -ISIS_iSPA_2U_BMSP.stp,ISIS_iSPA_2U_BMSP.stp,Steel,238.488,30380.637,0.008,36346.664,-100.085,100.856,-156.077,82.6,3.87,211.5,880400.0,-25.432,-1129.026,-25.432,1013000.0,-263.002,-1129.026,-263.002,132300.0 -Magnetorquer,Magnetorquer,Steel,58.053,7395.244,0.008,2990.011,26.5,7.8,-0.749,11.0,11.0,84.0,29861.282,0.0,0.0,0.0,29861.282,1.175e-6,0.0,1.175e-6,865.842 -projectile,projectile,SOLIDWORKS,0.847,108.651,0.008,274.826,-12.192,62.501,12.192,10.037,10.736,10.037,6.898,0.237,0.964,0.237,10.173,-0.237,0.964,-0.237,6.898 -spring_adaptor,spring_adaptor,SOLIDWORKS,9.266,3431.699,0.003,3369.751,0.0,53.939,-2.648e-9,45.0,2.5,45.0,1253.994,0.0,0.0,0.0,2498.336,0.0,0.0,0.0,1253.994 -6U,6U,Steel,141.036,17966.31,0.008,33980.334,-114.874,-107.204,-15.729,283.0,10.74,283.0,123300.0,-594.999,49544.957,-594.999,249700.0,-103.946,49544.957,-103.946,127900.0 -ISIS_iSPA_3U_BMSP.stp,ISIS_iSPA_3U_BMSP.stp,Steel,365.628,46576.871,0.008,55492.134,312.965,100.861,-0.06,325.0,3.87,82.6,203300.0,494.885,2050.657,494.885,3421000.0,-24.145,2050.657,-24.145,3218000.0 -Magnetorquer,Magnetorquer,Steel,58.053,7395.244,0.008,2990.011,-3.751,22.8,-39.0,84.0,11.0,11.0,865.842,-1.175e-6,0.0,-1.175e-6,29861.282,0.0,0.0,0.0,29861.282 -Sun,Sun,Steel,11.338,1444.311,0.008,1210.691,28.338,103.505,39.5,33.5,6.0,11.0,137.268,22.007,0.0,22.007,1263.292,0.0,0.0,0.0,1185.612 -Fuel,Fuel,Steel,505.292,64368.346,0.008,9976.414,69.496,-22.141,0.059,40.0,41.0,41.0,135200.0,30.406,15.534,30.406,134900.0,1.738,15.534,1.738,134900.0 -OBC,OBC,Steel,365.638,46578.15,0.008,74736.144,98.16,-28.68,-29.853,92.0,96.0,23.241,287600.0,-13194.264,-3855.954,-13194.264,194500.0,-14045.494,-3855.954,-14045.494,469900.0 -ISIS_ISPA_1U_SIDE.stp,ISIS_ISPA_1U_SIDE.stp,Steel,108.079,13768.029,0.008,19215.837,-101.414,102.908,0.712,98.0,4.95,82.6,71947.322,-290.86,-1871.371,-290.86,168900.0,36.897,-1871.371,36.897,97174.771 -central_frame,central_frame,SOLIDWORKS,0.0,12245.003,0.0,18268.074,0.0,0.0,0.0,51.213,89.465,51.213,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0 -ISIS_iSPA_2U_BMSP.stp,ISIS_iSPA_2U_BMSP.stp,Steel,238.488,30380.637,0.008,36346.664,-0.085,100.856,-156.077,82.6,3.87,211.5,880400.0,-25.432,-1129.026,-25.432,1013000.0,-263.002,-1129.026,-263.002,132300.0 -ceveau,ceveau,Steel,249.853,31828.4,0.008,7087.864,-21.892,17.689,-0.266,44.6,20.0,51.5,43596.745,-0.734,-579.509,-0.734,66601.457,-0.354,-579.509,-0.354,39407.793 -capture_system_assembly,capture_system_assembly,SOLIDWORKS,317.415,56671.244,0.006,46801.002,-17.201,29.311,-0.167,71.513,92.311,51.857,239100.0,-63330.79,-1142.274,-63330.79,113400.0,-547.098,-1142.274,-547.098,272900.0 -projectile,projectile,SOLIDWORKS,0.847,108.651,0.008,274.826,-12.192,62.501,-12.192,10.037,10.736,10.037,6.898,0.237,-0.964,0.237,10.173,0.237,-0.964,0.237,6.898 +"camera_mount ","camera_mount ","SOLIDWORKS Materials|ABS PC ",1.066,995.9,0.001,2069.301,26.077,77.19,3.791e-6,15.0,29.904,16.0,106.388,14.146,0.00004366,14.146,50.609,-0.00002246,0.00004366,-0.00002246,96.709 +"ISIS_ISPA_1U_SIDE.stp ","ISIS_ISPA_1U_SIDE.stp ","Steel ",108.079,13768.029,0.008,19215.837,101.414,102.908,-0.712,98.0,4.95,82.6,71947.322,290.86,-1871.371,290.86,168900.0,-36.897,-1871.371,-36.897,97174.771 +"Transceiver ","Transceiver ","Steel ",433.406,55210.971,0.008,57969.555,98.357,-33.327,34.57,94.305,96.0,23.241,349100.0,-21151.644,452.774,-21151.644,209400.0,-11695.911,452.774,-11695.911,548600.0 +"projectile ","projectile ","SOLIDWORKS Materials|Plain Carbon Steel ",0.847,108.651,0.008,274.826,12.192,62.501,12.192,10.037,10.736,10.037,6.898,-0.237,-0.964,-0.237,10.173,-0.237,-0.964,-0.237,6.898 +"ISIS_iSPA_2U_BMSP.stp ","ISIS_iSPA_2U_BMSP.stp ","Steel ",238.488,30380.637,0.008,36346.664,100.085,100.856,156.077,82.6,3.87,211.5,880400.0,25.432,-1129.026,25.432,1013000.0,263.002,-1129.026,263.002,132300.0 +"Sun Sensor ","Sun Sensor ","Steel ",11.338,1444.311,0.008,1210.691,50.0,-6.838,-53.505,11.0,33.5,6.0,1185.612,0.0,0.0,0.0,137.268,22.007,0.0,22.007,1263.292 +"EPS ","EPS ","Steel ",2445.66,311500.0,0.008,81469.345,97.5,77.673,0.0,96.0,57.0,90.0,2111000.0,5.684e-9,8.708e-9,5.684e-9,3554000.0,-2.275e-7,8.708e-9,-2.275e-7,2351000.0 +"Sun Sensor ","Sun Sensor ","Steel ",11.338,1444.311,0.008,1210.691,50.0,-6.838,53.505,11.0,33.5,6.0,1185.612,0.0,0.0,0.0,137.268,-22.007,0.0,-22.007,1263.292 +"Reaction Wheel ","Reaction Wheel ","SOLIDWORKS Materials|6061-T6 (SS) ",51.926,19232.035,0.003,5129.026,-47.0,20.0,36.626,33.0,33.0,38.4,6948.003,0.0,0.0,0.0,6948.003,1.907e-7,0.0,1.907e-7,8030.751 +"94125K112_COMPRESSION SPRINGS ","94125K112_COMPRESSION SPRINGS ","Steel ",3.615,460.535,0.008,1181.069,0.002,40.69,0.115,14.263,27.202,14.263,297.902,-8.916,0.008,-8.916,142.892,0.006,0.008,0.006,298.189 +"Reaction Wheel ","Reaction Wheel ","SOLIDWORKS Materials|6061-T6 (SS) ",51.926,19232.035,0.003,5129.026,-55.0,8.674,3.51e-10,33.0,38.4,33.0,6948.003,0.0,0.0,0.0,8030.751,-1.907e-7,0.0,-1.907e-7,6948.003 +"ISIS_iSPA_2U_BMSP.stp ","ISIS_iSPA_2U_BMSP.stp ","Steel ",238.488,30380.637,0.008,36346.664,0.085,100.856,156.077,82.6,3.87,211.5,880400.0,25.432,-1129.026,25.432,1013000.0,263.002,-1129.026,263.002,132300.0 +"Star Tracker ","Star Tracker ","Steel ",1630.538,207700.0,0.008,22393.539,-99.709,-46.985,-0.002,95.0,50.0,44.0,604200.0,1141.64,-180.799,1141.64,1475000.0,90.57,-180.799,90.57,1552000.0 +"NANO R3 IFMP1 13.08.2020.step ","NANO R3 IFMP1 13.08.2020.step ","Steel ",7148.863,910700.0,0.008,62516.961,0.196,-50.181,0.007,99.0,98.5,101.942,11020000.0,-44155.286,9346.828,-44155.286,11340000.0,-1856.989,9346.828,-1856.989,11070000.0 +"6U Half ","6U Half ","Steel ",141.036,17966.31,0.008,33980.334,114.874,-107.204,15.729,283.0,10.74,283.0,123300.0,594.999,49544.957,594.999,249700.0,103.946,49544.957,103.946,127900.0 +"Runcam Racer Nano.step ","Runcam Racer Nano.step ","Steel ",12.203,1554.512,0.008,2351.908,22.024,89.222,-0.048,14.0,14.9,14.078,423.832,-5.8,3.527,-5.8,347.356,-3.41,3.527,-3.41,419.172 +"Runcam Racer Nano.step ","Runcam Racer Nano.step ","Steel ",12.203,1554.512,0.008,2351.908,-22.19,89.222,-0.048,14.0,14.9,14.078,423.832,-5.8,3.527,-5.8,347.356,-3.41,3.527,-3.41,419.172 +"Sat Chasis 2x3 ","Sat Chasis 2x3 ","SOLIDWORKS Materials|6061-T6 (SS) ",907.378,336100.0,0.003,309800.0,-0.183,9.787,0.0,300.0,200.0,100.0,5943000.0,-9889.642,2.304e-7,-9889.642,9867000.0,4.898e-8,2.304e-7,4.898e-8,12760000.0 +"ISIS_iSPA_2U_BMSP.stp ","ISIS_iSPA_2U_BMSP.stp ","Steel ",238.488,30380.637,0.008,36346.664,-99.915,100.856,156.077,82.6,3.87,211.5,880400.0,25.432,-1129.026,25.432,1013000.0,263.002,-1129.026,263.002,132300.0 +"ISIS_iSPA_3U_BMSP.stp ","ISIS_iSPA_3U_BMSP.stp ","Steel ",365.628,46576.871,0.008,55492.134,-312.965,100.861,0.06,325.0,3.87,82.6,203300.0,-494.885,2050.657,-494.885,3421000.0,24.145,2050.657,24.145,3218000.0 +"Magnetorquer ","Magnetorquer ","Steel ",58.053,7395.244,0.008,2990.011,-34.5,48.078,-26.0,11.0,84.0,11.0,29861.282,0.0,0.0,0.0,865.842,-1.175e-6,0.0,-1.175e-6,29861.282 +"Reaction Wheel ","Reaction Wheel ","SOLIDWORKS Materials|6061-T6 (SS) ",51.926,19232.035,0.003,5129.026,38.624,37.3,3.51e-10,38.4,33.0,33.0,8030.751,0.0,-1.907e-7,0.0,6948.003,0.0,-1.907e-7,0.0,6948.003 +"piece de liaison Longue MG996r ","piece de liaison Longue MG996r ","Steel ",4.211,536.42,0.008,874.34,2.808,17.795,3.382,5.3,11.75,29.872,293.908,-0.239,14.364,-0.239,271.745,3.944,14.364,3.944,34.92 +"Control Unit ","Control Unit ","Steel ",133.418,16995.941,0.008,30952.471,-99.965,-66.081,-39.009,66.0,57.65,19.0,37456.154,-3.29,1.794,-3.29,43890.031,450.15,1.794,450.15,69728.676 +"camera_mount ","camera_mount ","SOLIDWORKS Materials|ABS PC ",1.066,995.9,0.001,2069.301,-26.077,77.19,-3.791e-6,15.0,29.904,16.0,106.388,-14.146,0.00004366,-14.146,50.609,0.00002246,0.00004366,0.00002246,96.709 +"hopper ","hopper ","SOLIDWORKS Materials|Plain Carbon Steel ",20.543,2633.756,0.008,6078.184,0.0,78.286,-1.095e-9,24.0,50.311,44.0,6116.051,0.0,0.0,0.0,2739.986,-9.539e-8,0.0,-9.539e-8,5261.763 +"ISIS_iSPA_2U_BMSP.stp ","ISIS_iSPA_2U_BMSP.stp ","Steel ",238.488,30380.637,0.008,36346.664,99.915,100.856,-156.077,82.6,3.87,211.5,880400.0,-25.432,-1129.026,-25.432,1013000.0,-263.002,-1129.026,-263.002,132300.0 +"Sun Sensor ","Sun Sensor ","Steel ",11.338,1444.311,0.008,1210.691,-153.505,-16.838,-44.5,6.0,33.5,11.0,1263.292,22.007,0.0,22.007,137.268,0.0,0.0,0.0,1185.612 +"Sun Sensor ","Sun Sensor ","Steel ",11.338,1444.311,0.008,1210.691,-51.5,-103.505,-1.662,11.0,6.0,33.5,1185.612,0.0,0.0,0.0,1263.292,-22.007,0.0,-22.007,137.268 +"Sun Sensor ","Sun Sensor ","Steel ",11.338,1444.311,0.008,1210.691,153.505,18.338,44.5,6.0,33.5,11.0,1263.292,22.007,0.0,22.007,137.268,0.0,0.0,0.0,1185.612 +"projectile ","projectile ","SOLIDWORKS Materials|Plain Carbon Steel ",0.847,108.651,0.008,274.826,12.192,62.501,-12.192,10.037,10.736,10.037,6.898,-0.237,0.964,-0.237,10.173,0.237,0.964,0.237,6.898 +"GPS Patch Antenna ","GPS Patch Antenna ","Steel ",46.103,5872.947,0.008,13143.977,-100.011,-59.558,40.874,70.0,70.0,9.69,7391.782,-0.489,0.13,-0.489,6207.598,206.025,0.13,206.025,13248.414 +"ISIS_iSPA_2U_BMSP.stp ","ISIS_iSPA_2U_BMSP.stp ","Steel ",238.488,30380.637,0.008,36346.664,-100.085,100.856,-156.077,82.6,3.87,211.5,880400.0,-25.432,-1129.026,-25.432,1013000.0,-263.002,-1129.026,-263.002,132300.0 +"Magnetorquer ","Magnetorquer ","Steel ",58.053,7395.244,0.008,2990.011,26.5,7.8,-0.749,11.0,11.0,84.0,29861.282,0.0,0.0,0.0,29861.282,1.175e-6,0.0,1.175e-6,865.842 +"projectile ","projectile ","SOLIDWORKS Materials|Plain Carbon Steel ",0.847,108.651,0.008,274.826,-12.192,62.501,12.192,10.037,10.736,10.037,6.898,0.237,0.964,0.237,10.173,-0.237,0.964,-0.237,6.898 +"spring_adaptor ","spring_adaptor ","SOLIDWORKS Materials|1060 Alloy ",9.266,3431.699,0.003,3369.751,0.0,53.939,-2.648e-9,45.0,2.5,45.0,1253.994,0.0,0.0,0.0,2498.336,0.0,0.0,0.0,1253.994 +"6U Half ","6U Half ","Steel ",141.036,17966.31,0.008,33980.334,-114.874,-107.204,-15.729,283.0,10.74,283.0,123300.0,-594.999,49544.957,-594.999,249700.0,-103.946,49544.957,-103.946,127900.0 +"ISIS_iSPA_3U_BMSP.stp ","ISIS_iSPA_3U_BMSP.stp ","Steel ",365.628,46576.871,0.008,55492.134,312.965,100.861,-0.06,325.0,3.87,82.6,203300.0,494.885,2050.657,494.885,3421000.0,-24.145,2050.657,-24.145,3218000.0 +"Magnetorquer ","Magnetorquer ","Steel ",58.053,7395.244,0.008,2990.011,-3.751,22.8,-39.0,84.0,11.0,11.0,865.842,-1.175e-6,0.0,-1.175e-6,29861.282,0.0,0.0,0.0,29861.282 +"Sun Sensor ","Sun Sensor ","Steel ",11.338,1444.311,0.008,1210.691,28.338,103.505,39.5,33.5,6.0,11.0,137.268,22.007,0.0,22.007,1263.292,0.0,0.0,0.0,1185.612 +"Fuel Brick ","Fuel Brick ","Steel ",505.292,64368.346,0.008,9976.414,69.496,-22.141,0.059,40.0,41.0,41.0,135200.0,30.406,15.534,30.406,134900.0,1.738,15.534,1.738,134900.0 +"OBC ","OBC ","Steel ",365.638,46578.15,0.008,74736.144,98.16,-28.68,-29.853,92.0,96.0,23.241,287600.0,-13194.264,-3855.954,-13194.264,194500.0,-14045.494,-3855.954,-14045.494,469900.0 +"ISIS_ISPA_1U_SIDE.stp ","ISIS_ISPA_1U_SIDE.stp ","Steel ",108.079,13768.029,0.008,19215.837,-101.414,102.908,0.712,98.0,4.95,82.6,71947.322,-290.86,-1871.371,-290.86,168900.0,36.897,-1871.371,36.897,97174.771 +"central_frame ","central_frame ","SOLIDWORKS Materials|Plain Carbon Steel ",0.0,12245.003,0.0,18268.074,0.0,0.0,0.0,51.213,89.465,51.213,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0 +"ISIS_iSPA_2U_BMSP.stp ","ISIS_iSPA_2U_BMSP.stp ","Steel ",238.488,30380.637,0.008,36346.664,-0.085,100.856,-156.077,82.6,3.87,211.5,880400.0,-25.432,-1129.026,-25.432,1013000.0,-263.002,-1129.026,-263.002,132300.0 +"ceveau moteur MG996R ","ceveau moteur MG996R ","Steel ",249.853,31828.4,0.008,7087.864,-21.892,17.689,-0.266,44.6,20.0,51.5,43596.745,-0.734,-579.509,-0.734,66601.457,-0.354,-579.509,-0.354,39407.793 +"capture_system_assembly ","capture_system_assembly ","SOLIDWORKS Materials|Plain Carbon Steel ",317.415,56671.244,0.006,46801.002,-17.201,29.311,-0.167,71.513,92.311,51.857,239100.0,-63330.79,-1142.274,-63330.79,113400.0,-547.098,-1142.274,-547.098,272900.0 +"projectile ","projectile ","SOLIDWORKS Materials|Plain Carbon Steel ",0.847,108.651,0.008,274.826,-12.192,62.501,-12.192,10.037,10.736,10.037,6.898,0.237,-0.964,0.237,10.173,0.237,-0.964,0.237,6.898 diff --git a/parser/src/main.rs b/parser/src/main.rs index dd3fb00..c577d13 100644 --- a/parser/src/main.rs +++ b/parser/src/main.rs @@ -1,120 +1,120 @@ -#![allow(non_snake_case)] -use std::{ - ascii::AsciiExt, - fs, - io::{BufRead, Write}, -}; -#[macro_use] -extern crate scan_fmt; -use csv::Writer; -use serde::Serialize; - -#[derive(Serialize)] -struct Properties { - part_number: String, - part_name: String, - material_name: String, - mass: f64, - volume: f64, - density: f64, - area: f64, - cmX: f64, - cmY: f64, - cmZ: f64, - bb_length: f64, - bb_width: f64, - bb_height: f64, - Ixx: f64, - Ixy: f64, - Ixz: f64, - Iyx: f64, - Iyy: f64, - Iyz: f64, - Izx: f64, - Izy: f64, - Izz: f64, -} - -fn main() { - let mut wtr = Writer::from_writer(vec![]); - - for fpath in fs::read_dir("../parts").unwrap() { - let infile = fs::read_to_string(fpath.unwrap().path()) - .expect("Cannot read file.") - .split('\n') - .map(|l| l.to_owned()) - .collect::>(); - - wtr.serialize(parse_props(infile)).unwrap(); - } - - let data = String::from_utf8(wtr.into_inner().unwrap()).unwrap(); - - println!("{}", data); - - let mut outfile = fs::File::create("../compiled.csv").unwrap(); - - outfile.write(data.as_bytes()).unwrap(); -} - -fn parse_props(infile: Vec) -> Properties { - let part_number = scan_fmt!(&infile[1], "Part Number {}", String).unwrap(); - let part_name = scan_fmt!(&infile[2], "Part Name {}", String).unwrap(); - let material_name = scan_fmt!(&infile[4], "Material Name {}", String).unwrap(); - - let mass = scan_fmt!(&infile[14], "Mass {} g", f64).unwrap(); - let volume = scan_fmt!(&infile[15], "Volume {} mm^3", f64).unwrap(); - let density = scan_fmt!(&infile[16], "Density {} g / mm^3", f64).unwrap(); - let area = scan_fmt!(&infile[17], "Area {} mm^2", f64).unwrap(); - - // Center of Mass - let (cmX, cmY, cmZ) = scan_fmt!( - &infile[19], - "Center of Mass {} mm, {} mm, {} mm", - f64, - f64, - f64 - ) - .unwrap(); - - // Bounding Box - let bb_length = scan_fmt!(&infile[21], "Length {}", f64).unwrap(); - let bb_width = scan_fmt!(&infile[22], "Width {}", f64).unwrap(); - let bb_height = scan_fmt!(&infile[23], "Height {}", f64).unwrap(); - - // Moments of Inertia at Center of Mass - let Ixx = scan_fmt!(&infile[25], "Ixx {}", f64).unwrap(); - let Ixy = scan_fmt!(&infile[26], "Ixy {}", f64).unwrap(); - let Ixz = scan_fmt!(&infile[27], "Ixz {}", f64).unwrap(); - let Iyx = scan_fmt!(&infile[28], "Iyx {}", f64).unwrap(); - let Iyy = scan_fmt!(&infile[29], "Iyy {}", f64).unwrap(); - let Iyz = scan_fmt!(&infile[30], "Iyz {}", f64).unwrap(); - let Izx = scan_fmt!(&infile[31], "Izx {}", f64).unwrap(); - let Izy = scan_fmt!(&infile[32], "Izy {}", f64).unwrap(); - let Izz = scan_fmt!(&infile[33], "Izz {}", f64).unwrap(); - - return Properties { - part_number, - part_name, - material_name, - mass, - volume, - density, - area, - cmX, - cmY, - cmZ, - bb_length, - bb_width, - bb_height, - Ixx, - Ixy, - Ixz, - Iyx, - Iyy, - Iyz, - Izx, - Izy, - Izz, - }; -} +#![allow(non_snake_case)] +use std::{ + ascii::AsciiExt, + fs, + io::{BufRead, Write}, +}; +#[macro_use] +extern crate scan_fmt; +use csv::Writer; +use serde::Serialize; + +#[derive(Serialize)] +struct Properties { + part_number: String, + part_name: String, + material_name: String, + mass: f64, + volume: f64, + density: f64, + area: f64, + cmX: f64, + cmY: f64, + cmZ: f64, + bb_length: f64, + bb_width: f64, + bb_height: f64, + Ixx: f64, + Ixy: f64, + Ixz: f64, + Iyx: f64, + Iyy: f64, + Iyz: f64, + Izx: f64, + Izy: f64, + Izz: f64, +} + +fn main() { + let mut wtr = Writer::from_writer(vec![]); + + for fpath in fs::read_dir("../parts").unwrap() { + let infile = fs::read_to_string(fpath.unwrap().path()) + .expect("Cannot read file.") + .split('\n') + .map(|l| l.to_owned()) + .collect::>(); + + wtr.serialize(parse_props(infile)).unwrap(); + } + + let data = String::from_utf8(wtr.into_inner().unwrap()).unwrap(); + + println!("{}", data); + + let mut outfile = fs::File::create("../compiled.csv").unwrap(); + + outfile.write(data.as_bytes()).unwrap(); +} + +fn parse_props(infile: Vec) -> Properties { + let part_number = scan_fmt!(&infile[1], "Part Number {/.+/}", String).unwrap(); + let part_name = scan_fmt!(&infile[2], "Part Name {/.+/}", String).unwrap(); + let material_name = scan_fmt!(&infile[4], "Material Name {/.+/}", String).unwrap(); + + let mass = scan_fmt!(&infile[14], "Mass {} g", f64).unwrap(); + let volume = scan_fmt!(&infile[15], "Volume {} mm^3", f64).unwrap(); + let density = scan_fmt!(&infile[16], "Density {} g / mm^3", f64).unwrap(); + let area = scan_fmt!(&infile[17], "Area {} mm^2", f64).unwrap(); + + // Center of Mass + let (cmX, cmY, cmZ) = scan_fmt!( + &infile[19], + "Center of Mass {} mm, {} mm, {} mm", + f64, + f64, + f64 + ) + .unwrap(); + + // Bounding Box + let bb_length = scan_fmt!(&infile[21], "Length {}", f64).unwrap(); + let bb_width = scan_fmt!(&infile[22], "Width {}", f64).unwrap(); + let bb_height = scan_fmt!(&infile[23], "Height {}", f64).unwrap(); + + // Moments of Inertia at Center of Mass + let Ixx = scan_fmt!(&infile[25], "Ixx {}", f64).unwrap(); + let Ixy = scan_fmt!(&infile[26], "Ixy {}", f64).unwrap(); + let Ixz = scan_fmt!(&infile[27], "Ixz {}", f64).unwrap(); + let Iyx = scan_fmt!(&infile[28], "Iyx {}", f64).unwrap(); + let Iyy = scan_fmt!(&infile[29], "Iyy {}", f64).unwrap(); + let Iyz = scan_fmt!(&infile[30], "Iyz {}", f64).unwrap(); + let Izx = scan_fmt!(&infile[31], "Izx {}", f64).unwrap(); + let Izy = scan_fmt!(&infile[32], "Izy {}", f64).unwrap(); + let Izz = scan_fmt!(&infile[33], "Izz {}", f64).unwrap(); + + return Properties { + part_number, + part_name, + material_name, + mass, + volume, + density, + area, + cmX, + cmY, + cmZ, + bb_length, + bb_width, + bb_height, + Ixx, + Ixy, + Ixz, + Iyx, + Iyy, + Iyz, + Izx, + Izy, + Izz, + }; +}