1 Star 0 Fork 0

AxIMMS_ROS / point_cloud_viewer

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

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. For Mac OS X, we assume below that you've installed Homebrew.

  • Install Rust: curl https://sh.rustup.rs -sSf | sh. See https://rustup.rs for details.
  • Install protobuf > 3.0. See ci/install_proto3.sh for Linux or run brew install protobuf on Mac OS X.
  • Install the rust protobuf plugin: cargo install protobuf and make sure protoc-gen-rust is in your $PATH. The binary probably is in $HOME/.cargo/bin.
  • Install the rust gRPC protobuf plugin: cargo install grpcio-compiler and make sure it is in your $PATH. This has more dependencies, it requires cmake and go. On mac: brew install cmake go.

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.

SDL client

This is a native client using SDL2.

  1. Install SDL2. For example, on Mac brew install sdl2.
  2. Change to the sdl viewer's directory: cd sdl_viewer/.
  3. Build with cargo build --release.
  4. Run with ../target/release/sdl_viewer <octree directory>.

In the point cloud viewer, navigate with the keyboard and rotate with left-click + mouse drag or touchpad. The following keys are bound:

Key Action
W Move forward
A Move left
S Move backwards
D Move right
Q Move up
Z Move down
0 Increase points size
9 Decrease points size
8 Brighten scene
7 Darken scene

Web Viewer

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

To build,

  1. Change into the web viewer's client directory: cd web_viewer/client.
  2. Install npm. We strongly suggest using nvm. On Mac brew install nvm.
  3. Install node version 8: nvm install 8. Change to the web viewer's client directory: cd client, then set node version to 8: nvm use 8.
  4. Install javascript dependencies: npm install.
  5. 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.

Prior art

This work was inspired through the following projects.

Comments ( 0 )

Sign in for post a comment

About

Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/IMMS_ROS/point_cloud_viewer.git
git@gitee.com:IMMS_ROS/point_cloud_viewer.git
IMMS_ROS
point_cloud_viewer
point_cloud_viewer
master

Search