Skip to content

Commit

Permalink
[docs] Move Point Clouds Wiki page
Browse files Browse the repository at this point in the history
  • Loading branch information
rajat2004 committed Jun 27, 2020
1 parent df55fa1 commit 6b707ed
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
Binary file added docs/images/depth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/point_cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions docs/point_clouds.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Point Clouds

Moved here from [https://github.com/microsoft/AirSim/wiki/Point-Clouds](https://github.com/microsoft/AirSim/wiki/Point-Clouds)

A Python script [point_cloud.py](https://github.com/Microsoft/AirSim/blob/master/PythonClient/multirotor/point_cloud.py) shows how to convert the depth image returned from AirSim into a point cloud.

The following depth image was captured using the Modular Neighborhood environment:

![depth](images/depth.png)

And with the appropriate projection matrix, the OpenCV `reprojectImageTo3D` function can turn this into a point cloud. The following is the result, which is also available here: [https://skfb.ly/68r7y](https://skfb.ly/68r7y).

![depth](images/point_cloud.png)

[SketchFab](https://sketchfab.com) can upload the resulting file `cloud.asc` and render it for you.

PS: you may notice the scene is reflected on the Y axis, so I may have a sign wrong in the projection matrix. An exercise for the reader :-)
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ nav:
- "Autonomous Driving on Azure": 'https://aka.ms/AutonomousDrivingCookbook'
- "Building Hexacopter": 'https://github.com/Microsoft/AirSim/wiki/hexacopter'
- "Moving on Path Demo": 'https://github.com/Microsoft/AirSim/wiki/moveOnPath-demo'
- "Building Point Clouds": 'https://github.com/Microsoft/AirSim/wiki/Point-Clouds'
- "Building Point Clouds": 'point_clouds.md'
- "Surveying Using Drone": 'drone_survey.md'
- "Orbit Trajectory": "orbit.md"
- "Misc":
Expand Down

0 comments on commit 6b707ed

Please sign in to comment.