Code Monkey home page Code Monkey logo

pointcloudtopcd's Introduction

pointcloudToPCD

C++ application to convert ply file, txt file or xyz pointcloud to .pcd pointcloud


Input file structure support

  • .ply
  • .txt
  • .xyz

How to compile

  1. Download or clone repo: https://github.com/danielTobon43/pointcloudToPCD.git

  2. Create a "build" folder the structre project should be something like:

     - build/
     - src/
     - cloud_test/
     - README.md
    
  3. Modify the CMakeLists.txt file in /src with your own PCL build dir: e.g. /opt/pcl-1.9.0/build and save it.

  4. Compile with cmake

at the root folder:

	$ cd build/  
	$ cmake ../src/
	$ make

Test

Go to pointcloudToPCD-master/build/bin folder and:

./pointcloudToPCD <ply file> -o <output dir>
./pointcloudToPCD <txt file> -o <output dir>
./pointcloudToPCD <xyz file> -o <output dir>

e.g.

./pointcloudToPCD /home/xXx/Downloads/cloud.txt -o /home/xXx/Downloads

Note:

The .txt file structure should only numbers: e.g.

0.794 9.978 12.770 247 231 218
0.793 9.979 12.769 234 217 207
0.793 9.979 12.768 238 224 213
0.794 9.979 12.767 239 227 215
0.795 9.978 12.772 230 221 206
0.795 9.978 12.771 243 229 216

Where each column represent: x y z r g b

Optional programs

pointcloudtopcd's People

Contributors

danieltobon43 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jtpils weiqikim

pointcloudtopcd's Issues

Input point cloud has no data

Hello
When I try to work with this code I get the following error:
terminate called after throwing an instance of 'pcl::IOException' what(): : [pcl::PCDWriter::writeBinary] Input point cloud has no data!

You could help me?

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.