3D Robotics

3D Mapping With Your Drone

3689486250?profile=original

 

 

Making a 3D model of something with pictures isn't something new to most of us, but there have been a lot of people getting into drones recently and I wanted to show something useful you can do with your drone. Autodesk's 123D Catch has a very useful feature not everyone knows about; Once you have your 3D model ready, you can input a known measurement and 123D Catch will scale your model based on the known measurement. If you're having trouble figuring out how long your Christmas lights need to be, your drone and 123D catch can help. Lets see how long the Christmas lights need to be for the 3DR Building...

Lets start from the beginning. We want to get pictures of all angles of the building with a bit of overlap, if possible we want to get some at different elevations to help the 123D Catch build a better model. I'm going to be using a 3DR ArduCopter Hexa-B and a GoPro Hero2 (A camera without a fisheye lens will probably yield better). Plotting your mission using the Mission Planner is very easy, simply go to the Flight Planner tab and zoom in to where you want your mission to take place and set your Home location.

Planning your mission

  • Set an ROI (Region Of Interest).  We want to circle around the building but we need the camera to always be facing the building rather than the next waypoint. To do this right click on the map and select "Set ROI" and place the ROI in the center of your object of interest.
  • Set a Takeoff command.  Click on the map to set a waypoint, under "Command" select "Takeoff" instead of "Waypoint". Specify a target altitude, in my case I set this to 25m. Also make sure your WP Radius is not a huge number or you will get a large overshoot. Mine is set to 4m.
  • Place Waypoints.  Click around your structure to set your waypoints and specify a desired altitude. In the mission pictured bellow I have two circles, one at 25m and one at 35m of altitude. (Make sure you know what units your Mission Planner is set to. To check this go into Configuration > Planner)
  • Set a Land command. Setting a land command is just like setting a takeoff command, simply set a waypoint and select "Land" from the drop down menu. (Land tends to bounce a lot on the ground at the moment, be ready to take control of the copter or simply land manually. Developers are working on this at the moment.)
  • Upload Mission.  Finally write the mission to the APM by clicking on "Write WPs". You may also save the mission for future use on your computer by right clicking and selecting File Load/Save > Save Waypoint File.
  • WP_Speed .  We want the copter to fly a bit slower to get some overlap in the pictures. I have found that setting WP_Speed to 3m/s and the GoPro to take pictures every 5 seconds is a good combination.

3689486194?profile=original

Flight


Connect to the mission planner and verify everything looks ok. If you cant see the mission waypoints on the Flight Data map go to the Flight Planner tab and click "Read WPs". You can arm and set your copter in Auto mode with your RC Transmitter or via the Mission Planner. Once in Auto,  the copter will take off as soon as you raise the throttle and it will go fly the mission.

123D Catch

Upload the images to 123D catch to be processed, you should receive an email when your model is done. Don't be afraid if your model doesn't look great, we can fix it up a bit. First click on the generate mesh button and have your file be reprocessed with a higher resolution mesh. Maximum resolution is not always the best answer, sometimes your photos don't contain enough information and the model will look better with the extrapolation of a lower quality mesh. My model was made with a "Standard" or medium mesh.

If some of your images were not added to the model you can stitch them manually by double clicking on them and adding reference points to link them to stitched images. 123D Catch isn't very fond of trees and will sometimes not stitch or make odd shapes with photos that have trees in them. Manually stitching these photos in will improve the quality of your model.

You can also delete unwanted parts of the mesh, simply select them with the lazo tool, right click and select "delete". This is a good way to clean up your model.

Now to the fun part, how long is the 3DR Building? First we need to set two reference points that will be used to indicate the known measurement. I have created REF_DIST1 and REF_DIST2 in each of the corners of one of the tan squares on a face of the building. Next select "Define Reference Distance" and enter the value of the known distance. In this case I know the distance between these two points is 10ft. This feature is unit less so just make sure you know what units you are working with.

3689486272?profile=original

To measure any other distance on the model just insert two reference points, select "Create Distance Measure" and click on both points.

3689486289?profile=original

The 3D Robotics building is approximately 119.15ft long. You can verify this using the ruler in Google Earth and in fact we could have just used Google Earth to do this but where is the fun in that? and it wouldn't be very DIY of us.

3689486317?profile=original

At the moment the file for this model is not on the 123D Catch gallery but I will post the link when its available. If not I can just upload it here. Share your models, I would love to see what you guys are making with your drones. Also if anyone needs any help with the post processing in 3D catch or if something isn't clear enough here let me know and I'll try to help.

Here is a video of the 3D Model: 

3D Robotics Building from Alan Sanchez on Vimeo.

And here is the 123D Catch File

Happy Flying

-Alan

E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones

Comments

  • Also, how did you decide the distance and altitiude for each photo? or do you just fly randomly and the trick is to take as many photos as possible from every possible direction? Also how far should the camera be from the object to get certain resolution quality?

  • Wow, Amazing. But I have a question... How did 123D Catch know the location (X Y coordinates) of each photo if you did not connect the camera with the GPS? How did 123d Catch stitch the images together without any georefrencing ? Are the photos tiled on the basis of pixels or coordinates ? im confused here

  • very nice!!!

  • 3D Robotics

    Hola, con hypr3d no puedes hacer mediciones directas en el modelo, lo tendrias que exportar para darle la relacion de las distancias. No se que software podrias usar para esto pero prueba con meshlab.

    A que extension te refieres?

  • y en autocad como se hace para uno añadir la extension ???

  • una pregunta Alan, 

    con ek Hypr3d se pueden hacer mediciones directas sobre el modelo, como distancias, areas, angulos, volumenes????? 

  • What a great blog post.  I have the 123d Catch software ready and will head out this weekend to capture some shots.  Cant wait to try this out.

  • Very well done, lots of potential there.

  • 3D Robotics

    Awesome! I had no idea 123D Catch would work so well on GoPro footage. 

  • 3D Robotics
    Youtube just wont take the video. Here is a link to vimeo https://vimeo.com/53111207
This reply was deleted.