Skip to content

First steps

han16nah edited this page Jan 22, 2021 · 21 revisions

First steps

Installation

Pre-built binaries (Windows)

HELIOS++ is delivered to you as a zipped folder, including all the required libraries. Unzip the folder to a path where you have write permission. In the folder, you will find helios.exe, which is the main executable.

You will also find a data folder with a number of example surveys, scanners, platforms and scenes. They provide a good starting point for experimentation and are required to pass some of the test cases.

Compile from source (Windows, Linux)

To compile HELIOS++ from source, please follow the instructions given in the README file of the repository. Setting up the complete build chain from scratch should be possible in a few hours (including download times).

Running test cases

To avoid unexpected behavior, we suggest to run the test cases after installation. To do this, open a Command Prompt or PowerShell Window (or another terminal application), navigate to the path where you have extracted helios++, and run

helios --test

The output should show that all tests are [PASSED]:

> helios.exe --test
TEST Randomness generation test                           [PASSED]
TEST Noise sources test                                   [PASSED]
TEST Voxel parsing test                                   [PASSED]
TEST Ray intersection test                                [PASSED]
TEST Serialization test                                   [PASSED]
TEST Survey copy test                                     [PASSED]
TEST Plane fitter test                                    [PASSED]
TEST LadLut test                                          [PASSED]
TEST Platform physics test                                [PASSED]

Be sure to also check if the return code is zero (environment variable ERRORLEVEL), e.g. on Windows:

> echo %ERRORLEVEL%
0

If you have extracted the data folder to a different path, make sure that HELIOS++ can find the folder, e.g. by running it from the parent directory of the data folder (and running helios with an absolute path).

Start your first simulation

Starting HELIOS++ is done in a command line by telling it where to find the survey file.

Open a command prompt and navigate to the folder where you extracted helios to.

Type

helios [survey-file]

and hit the Enter button to start the simulation.

The software has a modular architecture, where the simulation assets (i.e. platform, scene and scanner) are read from XML files and linked scenepart files. [survey-file] is the absolute or relative path to a survey XML file. In this XML file, paths pointing to the scene XML, the platform XML and the scanner XML are provided. Sample scenes, platforms and scanners are provided in the data directory. For example, run

helios data\surveys\demo\tls_arbaro_demo.xml

which will run a simulation of a TLS scan of two trees from two scan positions. The output will be created in the output/Survey Playback/Arbaro Demo - folder under the timestamp of the simulation start. This point cloud can be visualized e.g. using Cloud Compare, and may look like this:

arbaro_demo_hitObjectId

Optional arguments

To print the HELIOS++ help message, type:

helios -h

This gives you an overview of additional, optional arguments. Currently, the following arguments are supported:

-h or --help : Show this help

--test : Run tests to check helios++ behaves as expected

--unzip <input_path> <output_path>
        Decompress the file at input path and write it decompressed at output path.
        File at input path must be the compressed output of helios++

--assets <dir_path> : Specify the path to assets directory
        By default: ./assets/

--output <dir_path> : Specify the path to output directory
        By default: ./output/

--writeWaveform : Use this flag to enable full waveform writing
        By default waveform is NOT written to output file

--calcEchowidth : Use this flag to enable full waveform fitting
        By default the full waveform is NOT fitted

--fullwaveNoise : Use this flag to add noise when computing full waveform
        By default: full waveform noise is disabled

--fixedIncidenceAngle : Use this flag to use fixed incidence angle
        Fixed incidence angle of exactly 0.0 will be considered for all 
		intersections

--seed <seed>: Specify the seed for randomness generation
        It can be an intenger, a decimal or a timestamp with format
        YYYY-mm-DD HH::MM::SS
                By default: a random seed is generated

--lasOutput : Use this flag to generate the output point cloud in LAS format (v 1.0)

--zipOutput : Use this flag to generate compressed output

--lasScale : Specify the decimal scale factor for LAS output

-j or --njobs or --nthreads <integer> : Specify the number of
        jobs to be used to compute the simulation
                By default: all available threads are used

--rebuildScene : Force scene rebuild even when a previously
        built scene is available
                By default: previous scene is used if found

--disablePlatformNoise : Disable platform noise, no matter
        what is specified on XML files
                By default: XML specifications are considered

--logFile : Logging will be outputted to a file, not only
        to standard output
                By default: logging will be written to standard output

--logFileOnly : Logging will be outputted ONLY to a file
        By default: logging will be outputted to standard output

--silent : Disable logging output
        By default: only information and errors are reported

-q or --quiet : Specify the verbosity level to errors only
        By default: only information and errors are reported

-v : Specify the verbosity level to errors, information and warnings
        By default: only information and errors are reported

-v2 or -vv : Specify the verbosity level to report all messages
        By default: only information and errors are reported

XML file structure

The following figure provides a general overview of the main HELIOS++ XML files, their content, and their connection:

In the survey XML, scan positions or way points are configured and full waveform settings, platform settings, and scanner settings can be controlled.

The scene XML links to the different geometry parts, which can be of different types such as polygon meshes, georeferenced rasters (GeoTiff), point clouds or voxels. Different parameters and filters can be passed to define how to load and pre-process the linked files, including transformations such as translation, rotation and scaling of individual scene parts. More details are listed in on the Scene subpage.

The platform XML contains the definition of different platforms, such as a stationary tripod for terrestrial laser scanning simulations, vehicles for mobile laser scanning simulations and aircrafts for airborne laser scanning simulations. A number of platforms are predefined (tripod, quadcopter, Cirrus SR-22, ...) and can be extended. See the platforms.xml file in the data folder.

The scanner XML contains scanner specifications like beam divergence, accuracy, deflector type, pulse frequency or pulse length. Similar to the platforms, a number of scanners are predefined in scanners_als.xml and scanners_tls.xml in the data-folder.

HELIOS++ comes with a folder structure which helps in storing and finding these compartments. It is therefore recommended to work in the provided folder structure:

image

The paths pointing from the survey XML file to the other XML files can be set relative or absolute. Note that relative paths always relate to the current working directory, i.e. the directory where helios was called from. They hence usually start with data/, when following the suggested folder structure.

Results/Output

The software loads the geometries and performs a simulation according to the specified input configurations. The output is written to output/Survey Playback. Separate folders are created for each survey and for each time the survey is executed. Points are written to XYZ ASCII files (default) or LAS files (using the --lasOutput argument), with one file per leg (i.e. per scan position, flight line or path), respectively. Optionally, the full waveform can be exported, by adding --writeWaveform as command line argument.

Accordingly, a more elaborate example to start a simulation would be:

helios data\surveys\demo\tls_arbaro_demo.xml --lasOutput --writeWaveform --seed 42 -j 1

which creates a reproducible simulation (because of fixed seed, cf. Controlling Randomness) , writes LAS output files and additionally writes the fullwave signal into ASCII files. The result folder will look like this:

image

If you want to export the trajectory, you can provide the trajectoryTimeInterval_s="0.01" attribute in the <scannerSettings [...]> tag in the survey XML. The position and attitude of the platform will then be written to an ASCII output file for each leg every 0.01 seconds (depending on the value of the attribute). For static platforms (TLS), this attribute is ignored. See the separate page Output for details on the file formats.

Next steps

To become familiar with the inputs and outputs of HELIOS++, check out the variety of example surveys, execute them and have a look at the output. The following table provides an overview of the available demo surveys and scenes:

survey.xml Scene Input Geometry Platform Scanner Comments
demo/als_hd_demo_tiff.xml Heidelberg area GeoTIFF (25 m resolution) SR-22 Airplane LEICA ALS50-II Just a terrain model, demonstration how to define and use default scanner settings
demo/tls_arbaro_demo.xml Tree models on terrain (plane) OBJ-models, geometric primitives Tripod RIEGL VZ-400 demonstration how to define and use default scanner settings
demo/mls_wheat_demo.xml Wheat models on terrain (plane) OBJ-models, geometric primitives Tractor RIEGL VZ-400
toyblocks/als_toyblocks.xml Toyblocks on terrain (plane) Geometric primitives SR-22 Airplane RIEGL VQ-880-G
toyblocks/uls_toyblocks_stop_and_turn.xml Toyblocks on terrain (plane) Geometric primitives Quadcopter RIEGL VUX 1-UAV stopAndTurn-mode
toyblocks/uls_toyblocks_survey_scene_combo.xml Toyblocks on terrain (plane) Geometric primitives Quadcopter RIEGL VUX 1-UAV Combined survey and scene, efilepath parameter
toyblocks/mls_toyblocks.xml Toyblocks on terrain (plane) Geometric primitives Car RIEGL VUX 1-UAV
toyblocks/tls_toyblocks.xml Toyblocks on terrain (plane) Geometric primitives Tripod RIEGL VZ-400
voxels/tls_sphere_xyzloader.xml Sphere and terrain (plane) ASCII Point cloud (x y z) Tripod RIEGL VZ-400
voxels/tls_sphere_xyzloader_rgb_normals.xml Sphere and terrain (plane) ASCII Point cloud (x y z r g b nx ny nz) Tripod RIEGL VZ-400
voxels/als_detailedVoxels_mode_comparison.xml Tree models on terrain (plane) detailedVoxels SR-22 Airplane RIEGL LMS-Q780 FWFSettings demonstrated
voxels/uls_detailedVoxels_mode_comparison.xml Tree models on terrain (plane) detailedVoxels Quadcopter RIEGL VUX 1-UAV FWFSettings demonstrated