Page 1 of 10

program to view xml file in 3D

PostPosted: Wed Apr 29, 2015 9:22 pm
by fred_fr
Someone has made a program for viewing XML files in 3D as VRML or X3D file :?:

fred

Re: program to view xml file in 3D

PostPosted: Thu Apr 30, 2015 2:15 am
by LPR
Fred

Max is fixing the QGC so you'll be able to export information from the SD card to a KML file. If you have Google Earth on your computer you'll be able to click on a KML file and Google Earth will open and you'll see a triangle that represents your craft, moving in 3D like in this video.

https://www.youtube.com/watch?v=EpeEfWq-JX4

I see there is converters so you can change KML to VRML but I'm not sure why that would be a good thing.

Larry

Re: program to view xml file in 3D

PostPosted: Thu Apr 30, 2015 7:30 am
by fred_fr
Sorry , i am not clear in m'y question. The file is the XML file use for quatos aircraft geometry

Fred

Re: program to view xml file in 3D

PostPosted: Thu Apr 30, 2015 1:38 pm
by LPR
Fred

I'm sorry that I read your question wrong. I've been playing with KML files recently and had them on my mind.

It would be interesting to be able to look at an XML file in 3D so you could see if you have a mistake in your file.

Larry

Re: program to view xml file in 3D

PostPosted: Thu Apr 30, 2015 3:48 pm
by aBUGSworstnightmare
LPR wrote:It would be interesting to be able to look at an XML file in 3D so you could see if you have a mistake in your file


+1! Would be a great, useful tool

Re: program to view xml file in 3D

PostPosted: Thu Apr 30, 2015 7:07 pm
by afernan
Yes. I use a lot 3Dxml format to see and share muy designs.

I use The cree "3DXML PLAYER" from CATIA.
Www.3ds.com

Re: program to view xml file in 3D

PostPosted: Sat May 02, 2015 10:22 am
by aBUGSworstnightmare
afernan wrote:Yes. I use a lot 3Dxml format to see and share muy designs.

I use The cree "3DXML PLAYER" from CATIA.
http://Www.3ds.com


Hi Angel,
will this work with XML-files for QUATOS? I've tested it but either I did something wrong or it will not work.
So, please advice how to do it.
Joerg

Re: program to view xml file in 3D

PostPosted: Sun May 03, 2015 10:21 pm
by fred_fr
hi

I have make a little program to view quados XML file configuration.

Image

base on this post

http://forum.autoquad.org/viewtopic.php?f=48&t=4452

and this xml file
Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!--   Distances in meters
   Wieghts in grams
   +1 == CW rotation
   -1 == CCW rotation
-->
<quatos_configuration>
  <craft config="hex_x" id="Horus6">
    <ports>
      <port rotation="+1">1</port>

      <port rotation="-1">2</port>

      <port rotation="+1">3</port>

      <port rotation="-1">4</port>

      <port rotation="+1">5</port>

      <port rotation="-1">6</port>
    </ports>

    <distance>
      <motor>0.325</motor>
    </distance>

    <mass>
      <motor>167</motor>

      <arm>74</arm>

      <esc>0.0</esc>
     <cube dimx="0.0635" dimy="0.0508" dimz="0.024" name="AQ6"
      offsetx="0" offsety="0" offsetz="-0.35">37.92</cube>

     <cube dimx="0.04725" dimy="0.025" dimz="0.0142" name="Futaba RX"
      offsetx="-0.128" offsety="-0.15" offsetz="0.0115">19.32</cube>

     <cube dimx="0.0817" dimy="0.0255" dimz="0.013" name="3dr radio"
      offsetx="0.08" offsety="0" offsetz="-0.0195">25.8</cube>

     <cube dimx="0.22" dimy="0.24" dimz="0.0015" name="Frameplate top"
      offsetx="0" offsety="0" offsetz="-0.01225">67.48</cube>

     <cube dimx="0.22" dimy="0.24" dimz="0.0015" name="Frameplate bottom"
      offsetx="0" offsety="0" offsetz="0.01225">59.1</cube>

     <cube dimx="0.222" dimy="0.115" dimz="0.024" name="Esc plate"
      offsetx="0" offsety="0" offsetz="0.025">386</cube>

     <cube dimx="0.07267" dimy="0.1" dimz="0.002" name="AQ plate"
      offsetx="0" offsety="0" offsetz="-0.022">24.7</cube>

     <cube dimx="0.0975" dimy="0.0975" dimz="0.0235" name="GPS unit"
      offsetx="0" offsety="0" offsetz="-0.06975">52.94</cube>

     <cube dimx="0.0055" dimy="0.0055" dimz="0.035" name="GPS rod 1"
      offsetx="0.025" offsety="-0.0436" offsetz="-0.0405">6.54</cube>

     <cube dimx="0.0055" dimy="0.0055" dimz="0.035" name="GPS rod 2"
      offsetx="0.025" offsety="0.0436" offsetz="-0.0405">6.54</cube>

     <cube dimx="0.0055" dimy="0.0055" dimz="0.035" name="GPS rod 3"
      offsetx="-0.025" offsety="-0.0436" offsetz="-0.0405">6.54</cube>

     <cube dimx="0.0055" dimy="0.0055" dimz="0.035" name="GPS rod 4"
      offsetx="-0.025" offsety="0.0436" offsetz="-0.0405">6.54</cube>

     <cube dimx="0.22" dimy="0.22" dimz="0.09" name="Platic hood"
      offsetx="0" offsety="0" offsetz="-0.058">38.66</cube>

     <cube dimx="0.015" dimy="0.04" dimz="0.015" name="Hood hinge"
      offsetx="0.081" offsety="0" offsetz="-0.0195">9.62</cube>

     <cube dimx="0.0" dimy="0.0" dimz="0.0" name="Hood lock"
      offsetx="-0.081" offsety="0" offsetz="-0.0195">5.16</cube>

     <cube dimx="0.05" dimy="0.03" dimz="0.104" name="Retract right"
      offsetx="0" offsety="0.074" offsetz="0.0765">130</cube>

     <cube dimx="0.05" dimy="0.03" dimz="0.104" name="Retract left"
      offsetx="0" offsety="-0.074" offsetz="-0.0765">130</cube>

     <cube dimx="0.025" dimy="0.256" dimz="0.025" name="Leg Right"
      offsetx="0" offsety="0.215" offsetz="0.028">48</cube>

     <cube dimx="0.025" dimy="0.256" dimz="0.025" name="Leg Left"
      offsetx="0" offsety="-0.215" offsetz="0.028">48</cube>

     <cube dimx="0.51" dimy="0.016" dimz="0.016" name="Foot Right"
      offsetx="0" offsety="0.35" offsetz="0.028">53.3</cube>

     <cube dimx="0.51" dimy="0.016" dimz="0.016" name="Foot Left"
      offsetx="0" offsety="-0.35" offsetz="0.028">53.3</cube>

     <cube dimx="0.167" dimy="0.118" dimz="0.002" name="Accu Packs"
      offsetx="0" offsety="0" offsetz="0.065">2120</cube>

     <cube dimx="0.12" dimy="0.1" dimz="0.14" name="Gimbal"
      offsetx="0" offsety="0" offsetz="0.097">386</cube>

     <cube dimx="0.222" dimy="0.115" dimz="0.002" name="Battery plate"
      offsetx="0" offsety="0" offsetz="0.09">146</cube>

    </mass>
  </craft>
</quatos_configuration>


Could you send me, other XML file to test my program



fred_fr

Re: program to view xml file in 3D

PostPosted: Mon May 04, 2015 12:38 am
by Astudillo
Hi fred_fr,

Again awesome job, thanks!

If you like i also got the xml of my nano quad.

Code: Select all
<!--   Distances in meters
   Wieghts in grams
   +1 == CW rotation
   -1 == CCW rotation
-->
<quatos_configuration>
  <craft config="quad_x" id="M4nanoHorus">
    <ports>
      <port rotation="+1">1</port>

      <port rotation="-1">2</port>

      <port rotation="+1">3</port>

      <port rotation="-1">4</port>
    </ports>

    <distance>
      <motor>0.054</motor>
    </distance>

    <mass>
      <motor>5.82</motor>

      <arm>1.475</arm>

      <esc>0.0</esc>

      <cube dimx="0.024" dimy="0.024" dimz="0.0125" name="Body"
      offsetx="0" offsety="0" offsetz="0">2.0</cube>

      <cube dimx="0.036" dimy="0.036" dimz="0.0016" name="M4"
      offsetx="0" offsety="0" offsetz="-0.006">7.0</cube>

      <cube dimx="0.036" dimy="0.020" dimz="0.0087" name="LIPO"
      offsetx="0" offsety="0" offsetz="0.0065">19.44</cube>

      <cube dimx="0.01" dimy="0.014" dimz="0.0005" name="Bluetooth"
      offsetx="0" offsety="0" offsetz="-0.001">1.66</cube>

      <cube dimx="0.0146" dimy="0.0306" dimz="0.0034" name="extensionboard"
      offsetx="0" offsety="0" offsetz="-0.0048">1.94</cube>

      <cube dimx="0.006" dimy="0.006" dimz="0.015" name="poot1"
      offsetx="0.015" offsety="0" offsetz="-0.015">0.35</cube>

      <cube dimx="0.006" dimy="0.006" dimz="0.015" name="poot2"
      offsetx="-0.015" offsety="0" offsetz="-0.015">0.35</cube>

      <cube dimx="0.037" dimy="0.037" dimz="0.0005" name="gpsplate"
      offsetx="0" offsety="0" offsetz="-0.02">1.38</cube>

      <cube dimx="0.0135" dimy="0.0135" dimz="0.0066" name="GPS"
      offsetx="0" offsety="0" offsetz="-0.0205">3.8</cube>

      <cube dimx="0.066" dimy="0.0013" dimz="0.0013" name="antenne"
      offsetx="-0.012" offsety="0.012" offsetz="0.0016">0.22</cube>
    </mass>
  </craft>
</quatos_configuration>


It should look something like this:
IMG_2712.JPG


Cheers,
Ray

Re: program to view xml file in 3D

PostPosted: Mon May 04, 2015 7:10 am
by aBUGSworstnightmare
Hi fred_fr,

please find the .xml-file of the Quatos CamCruiser below. Looking forward to see a 3D representation.

Code: Select all
<?xml version="1.0"?>
<!--
    CamCruiser_1r0_quad-x_split.xml
-->

<!--   Distances in meters
   Weights in grams
   +1 == CW rotation
   -1 == CCW rotation
 -->
<quatos_configuration>
    <craft id="CamCruiser1r0" config="quad_x">
        <ports>
            <port rotation="+1">5</port>
            <port rotation="-1">1</port>
            <port rotation="+1">2</port>
            <port rotation="-1">3</port>
        </ports>
       
       
        <distance>
            <motor>0.3325</motor>
        </distance>
       
        <!-- for details on the crafts masses refer to http://forum.autoquad.org/viewtopic.php?f=38&t=3958
         You will find a picture showing the measured component for each item
         -->
        <mass>
            <!-- Tarot 4006 + T-Motor prop adapter (PA024 or PA017) + Graupner eProp 12x6 (incl. adapter)
             + motor mount hardware (incl. WS2812B PCB)
             -->
            <motor>145.0</motor>
           
            <!-- arms were not on a 45deg, so their real lenght and weight differs.
             Because a Quad-X mixer is assumed for the calculations the average weight will be used
             Weight front arm: 35g
             Weight rear arm: 41g
             Average arm weight = (35 + 41)/2 = 38g
             Some extra weight for the cables is added
             -->
            <arm>45</arm>
           
            <!-- ESC32V2 weight is described as a point mass (no dimensions were given, weight only)
             in the next section. It's weight is 37g but not considered here.
             -->
            <esc>0</esc>
           
            <!-- CamCruiser CFK frame + top cover + camera antivibration mounts + camera mount (total 375g)
             Since I assume a quad-x frame, the asymmetrical frame will be split in three parts:
             1.) aft part -> under battery. Because the rear arm mounting hardware is here I've made it heavier as the
             center section -> 90g
             2.) center section -> were the M4 flight controller is located. This will be treaded as qube with same dimensions
             in x and y direction (thus assuming the COG sits in the middle of this frame section; as with a standard quad,
             i.e. when using FCP-HL frame) -> 70g
             3.) front part -> rest of the frame incl. camera mounting hardware, also includes total weight of top cover
             -> 215g
            -->
            <cube name="frame_aft" dimx="0.125" dimy="0.105" dimz="0.034" offsetx="+0.115" offsety="0" offsetz="0">90</cube>
            <cube name="frame_center" dimx="0.105" dimy="0.105" dimz="0.034" offsetx="0" offsety="0" offsetz="0">70</cube>
            <cube name="frame_front" dimx="0.170" dimy="0.105" dimz="0.034" offsetx="+0.1375" offsety="0" offsetz="0">215</cube>
           
            <!-- Landing gear
             offset needs to consider frame offset (17mm) since landing gear is mounted under the frame -->
            <cube name="landinggear" dimx="0.280" dimy="0.210" dimz="0.060" offsetx="+0.01" offsety="0" offsetz="+0.047">115.0</cube>
           
            <!-- ESC32V2 were treated as point masses inside of the frame -->
            <cube name="esc32_1" dimx="0" dimy="0" dimz="0" offsetx="+0.140" offsety="-0.045" offsetz="0">37.0</cube>
            <cube name="esc32_2" dimx="0" dimy="0" dimz="0" offsetx="+0.140" offsety="+0.045" offsetz="0">37.0</cube>
            <cube name="esc32_3" dimx="0" dimy="0" dimz="0" offsetx="-0.045" offsety="+0.045" offsetz="0">37.0</cube>
            <cube name="esc32_5" dimx="0" dimy="0" dimz="0" offsetx="-0.045" offsety="-0.045" offsetz="0">37.0</cube>
           
            <!-- GPS antenna -->
            <cube name="GPSantenna" dimx="0.090" dimy="0.090" dimz="0.025" offsetx="+0.100" offsety="0" offsetz="-0.014">36.0</cube>
           
            <!-- M4 -->
            <cube name="M4" dimx="0.036" dimy="0.036" dimz="0.0016" offsetx="0" offsety="0" offsetz="-0.007">10.0</cube>
           
            <!-- M4CAN expansion board -->
            <cube name="m4can" dimx="0.052" dimy="0.052" dimz="0.05" offsetx="0" offsety="0" offsetz="+.0.0025">14.0</cube>
           
            <!-- MAV2TELEM add-on board -->
            <cube name="mav2telem" dimx="0.052" dimy="0.052" dimz="0.0114" offsetx="0" offsety="0" offsetz="-0.005">22.0</cube>
           
            <!-- TM1000 telemetry transmitter -->
            <cube name="tm1000" dimx="0.030" dimy="0.045" dimz="0.013" offsetx="+0.140" offsety="0" offsetz="+0.013">20.0</cube>
           
            <!-- Orange R110X SAT receiver -->
            <cube name="r110x" dimx="0.027" dimy="0.019" dimz="0.010" offsetx="+0.140" offsety="0" offsetz="-0.013">8.0</cube>
           
            <!-- Turnigy nanotech 4S6000mAh LiPo -->
            <cube name="batt" dimx="0.150" dimy="0.045" dimz="0.055" offsetx="-0.075" offsety="0" offsetz="-0.04">609.0</cube>
           
            <!-- GoPro case/mount -->
            <cube name="GoPromount" dimx="0.025" dimy="0.065" dimz="0.055" offsetx="+0.255" offsety="0" offsetz="0">19.0</cube>
        </mass>
    </craft>
</quatos_configuration>


Best regards
Joerg