This example shows how to use multiple sensors on a single volume. Two Scenarios are possible:
Scanning without known extrinsic calibration
Scanning with known extrinsic calibration
This example is prepared for both scenarios. Both scenarios just differ from the initial sensor position.
Determining the first scenario (scanning without known extrinisc calibration), the first sensor (master sensor) will define the world frame. Thus, the second senosor (slave sensor) has to estimate its position. In this case, we assume the sensors to be close to each other, thus both sensor will initially set to be in front of the volume. The slave sensor also gets a tracking hint for global alignment to be able to find the inital position. See the following code snippet for this scenario.
// Enable registration of second sensor. Note, it is required to place the sensor
// pysically close to the first sensor and let them view in the same direction
Determining the second scenario (scanning with known extrinsic calibration), we are able to load positions of the master and slave sensor. Thus, for both sensors we avoid sensor tracking for the first iteration, and just integrate to the volume. This is defined by setting the trackin hint to don't track. See the following code snippet
// Load sensor positions
if (position_from_file("sensor0.pos", &pos[0][0], 16)) {