Git Product home page Git Product logo

point_cloud_viewer's Introduction

Point viewer

build status License

This is a standalone project to make viewing massive point clouds easy and convenient. It was build to serve the needs of the Cartographer project, but is useful in its own right.

Building

The project consist of a root crate that can build and read octrees on disk and viewer binaries to visualize the data.

First, install Rust: curl https://sh.rustup.rs -sSf | sh. See https://rustup.rs for details.

Creating Octrees

In the root of the repo, run cargo build --release. Then use target/release/build_octree to generate an octree out of a PLY file.

Web Viewer

The web_viewer consists of TypeScript code running in the browser and a web server binary.

To build,

  1. Change into the client directory: cd client.
  2. Install npm. We strongly suggest using nvm.
  3. Install javascript dependencies: npm install.
  4. Build the client: npm run build.

Then build the server: cargo build --release. Serve up the octree using target/release/web_viewer <octree directory>, open Chrome to http://localhost:5433, navigate with WASD and left-click-drag on the mouse. The mouse wheel adjusts movement speed.

The client files (HTML and JavaScript) are embedded in the web_viewer binary, so it is fully stand alone.

SDL client (experimental)

This is a native client using SDL2. It is a new tool and incomplete. For now, prefer the web viewer.

Build with cargo build --release, run with target/release/sdl_viewer <octree directory>.

Prior art

This work was inspired through the following projects.

point_cloud_viewer's People

Contributors

sirver avatar

Watchers

James Cloos avatar Tauseef 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.