Giter Site home page Giter Site logo

pointcloudunity's Introduction


From Design to Software 2

Miroslav Byrtus 1328167


Description

PCL Integration in Unity

Unity:


Requirements for compiling the project from source code:

For development:

  • Unity3D (free version is enough)
  • MS Visual Studio - version compatible with PCL installed

Optional:

  • Kinect
  • If you want to use Kinect in this project, you also will need to install
    • drivers for Kinect for your OS
    • OpenNI (In the list of optional dependencies for PCL)

Requirements for running the project:

  • Unity3D (free version is enough)
  • Unity Project
  • cpp_plugin_pcl.dll coppied into the root directory of the project
  • dependent ddls for cpp_plugin_pcl.dll (Can vary depending on PCL version installed and on your OS)
    • For Windows 8 32bit with PCL 1.7. 32bit installed, it is:
    • kernel32.dll
    • advapi32.dll
    • pcl_common_debug.dll
    • pcl_io_debug.dll
    • pcl_search_debug.dll
    • pcl_filters_debug.dll
    • pcl_segmentation_debug.dll
    • msvcp100d.dll
    • msvcr100d.dll
  • If you want to use Kinect in this project, you also will need drivers for Kinect, compatible with your OS

How to use the plugin?

  1. Create a DLL from the .cpp file
  2. Make sure that the DLL is located in the root folder of your Unity Project (Copy it in Filesystem, not trough Unity)
  3. Copy the pointcloud file into the project directory, or connect Kinect to your PC 3.1. If you want to use Kinect, you have to check the "Use Kinect" checkbox in the Plugin Script settings If it's not checked, it will load a Pointcloud from file "table_scene_lms400.pcd" (It's available in the UnityPCL directory)
  4. Now you can use the plugin (Check the example script how to use it's functionality)

Time measuring (Reading Pointcloud from File)

  • readCloud() : True in 2.539685 s.
  • getCloudSize() : 41049 in 0.006095648 s.
  • removeBiggestPlane() : True in 1.106412 s.
  • getClusters() : True in 0.6244252 s.
  • getClustersCount() : 5 in 0.001582623 s.
  • Clusters drawn in 0.8556294 s. (Drawn by instantiating prefabs - take 1)
  • Clusters drawn in 0.5284262 s. (Drawn by instantiating prefabs - take 2)
  • Clusters drawn in 0.7251348 s. (Drawn by creating cubes - take 1)
  • Clusters drawn in 0.6915045 s. (Drawn by creating cubes - take 2)

Time measuring (Reading Pointcloud from Kinect)

  • readKinectCloud() : True in 6.001034 s.
  • getCloudSize() : 102713 in 0.004247189 s.
  • removeBiggestPlane() : True in 39.78041 s.
  • getClusters() : True in 1.613297 s.
  • getClustersCount() : 37 in 0.00138855 s.
  • Clusters drawn in 0.6203613 s.

pointcloudunity's People

Contributors

mirobyrtus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.