@foxglove/velodyne-cloud
Version:
TypeScript library for converting Velodyne LIDAR packet data to point clouds
41 lines • 2.19 kB
JavaScript
;
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadCalibrationData = void 0;
const VelodyneTypes_1 = require("./VelodyneTypes");
const _32db_json_1 = __importDefault(require("./data/calibration/32db.json"));
const _64e_s2_1_sztaki_json_1 = __importDefault(require("./data/calibration/64e_s2.1-sztaki.json"));
const _64e_s3_xiesc_json_1 = __importDefault(require("./data/calibration/64e_s3-xiesc.json"));
const _64e_utexas_json_1 = __importDefault(require("./data/calibration/64e_utexas.json"));
const VLP16_hires_db_json_1 = __importDefault(require("./data/calibration/VLP16_hires_db.json"));
const VLP16db_json_1 = __importDefault(require("./data/calibration/VLP16db.json"));
const VLS128_json_1 = __importDefault(require("./data/calibration/VLS128.json"));
const VeloView_VLP_32C_json_1 = __importDefault(require("./data/calibration/VeloView-VLP-32C.json"));
// Load the default calibration data for a given Velodyne model
function loadCalibrationData(model) {
switch (model) {
case VelodyneTypes_1.Model.VLP16:
return VLP16db_json_1.default;
case VelodyneTypes_1.Model.VLP16HiRes:
return VLP16_hires_db_json_1.default;
case VelodyneTypes_1.Model.VLP32C:
return VeloView_VLP_32C_json_1.default;
case VelodyneTypes_1.Model.HDL32E:
return _32db_json_1.default;
case VelodyneTypes_1.Model.HDL64E:
return _64e_utexas_json_1.default;
case VelodyneTypes_1.Model.HDL64E_S21:
return _64e_s2_1_sztaki_json_1.default;
case VelodyneTypes_1.Model.HDL64E_S3:
return _64e_s3_xiesc_json_1.default;
case VelodyneTypes_1.Model.VLS128:
return VLS128_json_1.default;
}
}
exports.loadCalibrationData = loadCalibrationData;
//# sourceMappingURL=CalibrationData.js.map