Monday, April 24, 2017

UAS Mission Planning Essentials

Introduction:

Mission planning is very important when conducting UAS flights.  Time and equipment is expensive when taking imagery and mission planning can streamline the amount of time in the field.  There are multiple steps in mission planning that range from before the flight in the office to the departure of the office and finally in the field.  This lab will go over the whole process of mission planning and go over a software demonstration with the C-Astral Mission Planning Software.

In the Office:

Before you depart from the office it is important to do research on a few things about the study site.

  • Know the study site
    • Will there be cell signal?
    • Will there be a crowd? Unless properly licensed,  UAS operators cannot fly over crowds. 
  • Know the vegetation
  • Know the terrain
  • Draw out several possible mission plans
    • Use geospatial data available
  • Prepare equipment
    • Charge Batteries

Departure:

Right before leaving to perform the flights it is important to do a couple things before you go.

  • Go over an equipment checklist to make sure nothing is being left behind.
  • Do a final weather check to make sure the weather is good enough for flying

In the Field:

After arriving at the study site things could be different than what previous research on the area showed.  Adjustments will have to be made to the mission plan before the flight takes place.

  • Actual weather in the field
    • Wind Speed, Wind Direction, Temp., Dew Point
  • Assess vegetation
  • Assess terrain
  • Assess electromagnetic interference issues
    • Power lines
    • Underground metal or cables
    • Power stations
  • Get elevation of launch site
  • Establish units team will be using to maintain consistency
  • Reevaluate mission
  • Confirm cellular network connectivity
  • Integrate field observations into pre-flight checks and flight logs

Mission Planning Software:

The C-Astral Mission Planning Software was made by a company who makes high end fixed wing drones.  Bramor developed this software to be used with their UAS.  It is user friendly with many options that brings together standard mission planning with GIS and allows for users to more properly plan their missions.  

This mission planning software comes with a variety of useful features.  One of the most important features is the mission settings.  This is where the user can adjust altitude, speed, overlap, sidelap, resolution, overshoot, camera, and altitude mode. Altitude mode allows the user to select absolute or relative.  Relative means the UAS will adjust elevation if there are changes in elevation of the ground.  This ensures consistent pixel size and makes sure the drone does not hit the ground if flying near a mountain or similar feature.


The image below shows the area points draw feature to plan where the drone should fly.  The user creates a shape around the area they want to fly and the software will create the lines and way points that the drone will fly.  This is an easy way to create a mission for flying a large area. 


A useful feature in this software is the ability to see the mission plan in a 3D view.  The image below shows the flight above in a 3D image.  This is done by using the map button and selecting 3D map.  The user can choose which program the map will open.  In this case ArcGIS Earth was used. 


Another useful feature of this software is that it shows when the flight path is in danger of hitting the ground.  In the image below it knows that the drone will be in danger of hitting the slope of a mountain and creates red dots.  The user can then adjust altitude or other settings to make sure of a
safe flight.


The image below shows the terrain danger issue from above in a 3D map.  You can see on the lower right hand side of the flight the drone will not be able to turn around without crashing into the mountain.  To get around this the user could change the direction of the flight and set the altitude mode to relative so the drone would change elevation with the slope of the mountain.


Another great feature of this program is street points draw feature.  This allows the user to set points along a street and the program will draw way points to fly over the highway.  This would be very useful for a construction company or other companies interested in surveying existing roadways.


The image below is an example of a mission plan of a flight over a residence in Delafield Wisconsin.  Since the author knows the area, the field on the right hand side is the best place to land and take off.  

The mission settings are set to allows for 1 cm resolution.  The terrain allows for the UAS to fly at 75m without endangering the unit. 


Conclusion:

Mission planning is essential to saving time and having safe flights.  The C-Astral Mission Planning software is a great software to use.  It has many valuable features that make flying a mission seamless and easy.


Monday, April 17, 2017

Oblique Imagery to Make 3D Models

Introduction:

UAS imagery flown in a spiral like order around an object with the camera adjusting its orientation to capture images can be turned into a 3D model using Pix4D software.  This lab goes over the process of creating a 3D model using Pix4D and how to annotate it.

Methodology:

The first step to creating a 3D model is to have the proper orientation of the images.  The following image is an example of how the images were taken around a bulldozer at the Litchfield mine.  This flight pattern is necessary to get all the angles needed to create a 3D image.  These images are to be brought into Pix4D and the 3D model template is to be used.

Once the images are loaded the user can create a 3D model by running processing steps one and two.  This will create a 3D Model.  The image below is of a 3D model that was created without doing any additional editing.  The program does not know which pixels are suppose to be the model and which ones are suppose to be the back ground.


To get a 3D model with no distortion the user needs to edit the images using annotation.  This is the process of removing pixels from images that the user does not want included in the background.  This could be the sky, or ground, or a pole obstructing the whatever is the object to be modeled.  Below is an image showing what the annotation process looks like.  The user uses the annotation tool to highlight the area or objects to be annotated then the annotations are applied to the images.


When the annotation process is complete the user re-optimizes the initial processing and runs part two of the processing.  This creates a 3D model using the images that were annotated and removes pixels that are not wanted.  This was done with three different sets of imagery.


Discussion:

In theory annotation will take away all pixels in the image that create distortion.  Unfortunately it is not a perfect process and some of the models did not turn out the way they should have.  The first data set of the bulldozer turned out very distorted with lots of holes in the model.  This could be because of pixels being wrongly removed from the bulldozer and the program then wrongly takes those pixels out of all the images.  This could also have to do with only three images being annotated.  Annotating an image takes a long time to get all of the pixels selected.  The difference between the non-annotated and annotated model of the bulldozer can be seen below.
Pre-Annotations
Post-Annotations

The next model was of a truck parked in a parking lot.  This model turned out better but still not great. 5 images were annotated for this model.  The annotated image is crisper and has less distortion but the bottom of the truck is still very distorted.  This is because no images were taken from that low of an angle and the program did not know what to do with that area.
Pre-Annotation
Post-Annotation

Conclusion:

Annotation is a very useful tool but can be applied in a more useful way than it was in this lab.  Annotation can be used to remove an object like a pole or stick that is interfering with the model.  The application it was used in for this lab resulted in okay results but not perfect.  The bulldozer was left as it was because it seemed good to show that mistakes could be make and the resulting model can turn out bad.  If this were being done again more images would be annotated and they would be done more carefully and the model would turn out much nicer.






Monday, April 10, 2017

Calculating Volumes of Stock Piles Using Pix4D and ESRI Software

Introduction:
Unmanned aerial systems can be used to take data from a mine and to calculate volumes of stock piles using advanced software.  This lab goes over this process for sand piles at the Litchfield mine.
Volumetric analysis is important for a company that wants to find out how much material they have removed and have laying in piles in the mine.  The implementation of UAS can be key to getting extremely accurate figures in a very short amount of time.  This lab will go over using Pix4D to get these figures as well as doing it in ArcMap.  

There are multiple tools in Arcmap that will be used during this process, they are:

-Extract By Mask: The extract by mask tool is used to clip a raster using a shapefile or other data format to create a clipped section of a raster.

-Surface Volume: The surface volume tool is used to calculate the volume of a DSM based on the height that the user provides it.

-Raster to TIN: Raster to tin converts a raster file into  a TIN file.

-Add Surface Information: The add surface information tool adds information to a file.  In the case of this lab it adds the surface information to the TIN from pile shapefile.

-Polygon Volume: The polygon volume tool calculates the volume of a polygon.  In this case it calculated the volume of the TIN file of each pile.

Methods:
Pix4D was used to process the imagery in a previous lab, for further details a previous blog post, Building Maps with Pix4D, can be examined.  The already processed data was brought into Pix4D to begin the process of volumetrics.  Pix4D has a built in volumes tab that makes the process very user friendly.  The user clicks the volumes tab, then clicks the cylinder shaped tool on the top of the page and is asked to trace the outline of the pile to be examined.  This was done for three seperate piles at the litchfield mine site. The user then clicks the compute button and Pix4D automatically calculates the volumes of the piles.  The resulting figures can be seen on the left of the image below.
To be able to calculate volumetrics in Arcmap is to extract the piles from Pix4D as a shape file to be used in Arcmap.  This was done by using the extract button on the top of the volumes work column and saved into an appropriate folder.  The resulting shapefiles were then used to clip the data from the piles on the Digital Surface Model in ArcMap.  The Extract by Mask Tool was used for this.  The DSM was the input, and the pile shapefile was used as the feature mask data.  The result was clipped rasters of the separate piles.  
 
The next step was to use the tool surface volume to find out the volumes of each of the piles. The clipped raster file was used as the input, a text file output was created, the reference plane was set to above to find the volume above a certain height, the identify tool was used to find the base height, which was then entered as the plane height and the tool was ran.  This resulted in a table that provided the volume of the pile.

The following model illustrates the steps used to find the volumes of the individual piles.
The next process was to turn the rasters into TIN files to find the pile volumes.  The first tool used was raster to tin.  For this tool the clipped pile raster file was inputted and the default parameters were left and the tool was ran.  The raster to tin tool did not add surface information to the TIN file. The Add Surface Information tool needs to be ran next to add the surface information from the original clipped surface file added from Pix4D to the TIN. The original clipped shapefile is used as the input, the TIN is the file getting the surface information and the Z minimum will be created.
Now that the TIN file has surface information it is ready to be used to find the pile volume.  To do this the Polygon Volume tool was used. The TIN was the surface input, pile surfaces was the input feature class, Z_Min. field that was just created was used as the height field, and the reference plane was set to find the volume of the surface above the Z_Min field.  The tool was ran and a output volume was added to the surface shapefile of each pile
The model below illustrates the workflow for measuring volumetrics in ArcMap by creating a tin from a DSM then using the polygon volume tool. 

The volumes of the three piles were now calculated using Pix4D, the Surface Volume tool in ArcMap and the Polygon Volume tool in Arcmap.  Now the data needs to be put together and presented in a organized manner.





Discussion:
Three different methods were used to compute volumetrics of three different stock piles in the Litchfield mine.  The results for each pile varied slightly for each different method.
The resulting volumes for each pile were slightly different for each method.  The volume for each pile was the lowest for the Pix4D volume.  This could be because it was hard to get a completely accurate trace of the pile or the way the program calculates it.  The surface volume tool had volumes right in the middle for piles 2 and 3 and had the highest volume for pile 1.  The surface volume tool might not be the most accurate because the user is providing the base level on which the tool bases the measurement off and that could skew the data.  The polygon volume tool had the highest volumes for the second and third piles and the middle value for the first pile.  This was should be the most accurate because it is using the surface information to measure the lowest point then taking the volume of everything above that. 

Conclusion:
Using UAS to for stock pile volumetrics has huge advantages.  Volumetrics for a lot of data can be completed in a much shorter time than it would take the traditional way.  One person could do it for a whole mine where as the process would require more time and expenses to do it by hand.  There are multiple ways to do it and each one of them has their advantages.  Pix4D can give a relatively accurate measure of volume by just outlining the stock pile.  The tools in ArcMap give a more accurate measure but take more time and more knowledge by the user.