Skip to content

PclWalkerViewer is a C++20 utility executable that walk (recursively on demand) a directory and sequentially display the point clouds its contains into a PCL 3D viewer. It supports PCD and PLY format. The viewer is controlled by keyboard inputs.

License

Notifications You must be signed in to change notification settings

Nandite/PclWalkerViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PclWalkerViewer

PclWalkerViewer is a C++20 utility executable that walk (recursively on demand) a directory and sequentially display the point clouds its contains into a PCL 3D viewer. It supports PCD and PLY format. The viewer is controlled by keyboard inputs.

Build and install

mkdir build && cd build &&\
cmake -DCMAKE_BUILD_TYPE=Release .. &&\
make &&\
sudo make install

Usage

Upon call, you need to provide the directory to walk into and search clouds:

pcl_walker_viewer -d /directory/to/walk

By default, the walker will only search for clouds into the provided directory. However, using the -r option, the walker will recursively descend into subdirectories and search for clouds into them:

pcl_walker_viewer -r -d /directory/to/walk

or (using long options)

pcl_walker_viewer --recursive --directory /directory/to/walk

Keymap

You can control the viewer using the following inputs of the keyboard:

  • [<-] [->] (Left or Right arrow) to display the previous/next cloud
  • [d] to change the color of the cloud
  • [t] to toggle the display of origin coordinate system
  • [Up] to increase the size of the origin coordinate system
  • [Down] to decrease the size of the origin coordinate system

Load strategy

Two strategies for the loading the clouds are supported:

  • Immediate: Using this strategy, the walker will load into memory all the found clouds. This strategy offer quicker reaction time from the viewer when displaying the next or previous cloud, especially for large clouds. It comes however at the cost of more memory consumption.
  • Just in time: This strategy will load the clouds in memory only when the viewer need to display them. It is better when using very large clouds on a system with limited memory. It comes however with more latency when requesting to display the next or previous cloud as the system has to first load the cloud into memory.

By default, the system operates with the Just in time strategy. The strategy can be selected using the -s option:

pcl_walker_viewer -r -d /directory/to/walk -s immediate

or

pcl_walker_viewer -r -d /directory/to/walk -s jit

Auto focus

Using the option --auto-focus, the camera will automatically focus on a cloud when loaded. This functionality is disabled by default.

pcl_walker_viewer -r -d /directory/to/walk --auto-focus

Dependencies

Feedback

Don't hesitate if you have any suggestions for improving this project, or if you find any error. I will be glad to hear from you. Contributions are welcomed :)

License

Distributed under the MIT Software License (X11 license). See accompanying file LICENSE.

About

PclWalkerViewer is a C++20 utility executable that walk (recursively on demand) a directory and sequentially display the point clouds its contains into a PCL 3D viewer. It supports PCD and PLY format. The viewer is controlled by keyboard inputs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published