Apollo 10.0
自动驾驶开放平台
calibration.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2017 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16
28#pragma once
29
30#include <cmath>
31#include <fstream>
32#include <iostream>
33#include <limits>
34#include <map>
35#include <string>
36#include <utility>
37
38namespace apollo {
39namespace drivers {
40namespace lslidar {
41namespace parser {
42
68
71 public:
72 std::map<int, LaserCorrection> laser_corrections_;
75
76 public:
78 explicit Calibration(const std::string& calibration_file) {
79 read(calibration_file);
80 }
81
82 void read(const std::string& calibration_file);
83 void write(const std::string& calibration_file);
84};
85
86} // namespace parser
87} // namespace lslidar
88} // namespace drivers
89} // namespace apollo
Calibration class storing entire configuration for the Lslidar
Definition calibration.h:70
std::map< int, LaserCorrection > laser_corrections_
Definition calibration.h:72
void write(const std::string &calibration_file)
Calibration(const std::string &calibration_file)
Definition calibration.h:78
void read(const std::string &calibration_file)
class register implement
Definition arena_queue.h:37
correction values for a single laser
Definition calibration.h:45
float sin_rot_correction
cached sine of rot_correction
Definition calibration.h:62
float sin_vert_correction
cached sine of vert_correction
Definition calibration.h:64
float cos_vert_correction
cached cosine of vert_correction
Definition calibration.h:63
float cos_rot_correction
cached values calculated when the calibration file is read
Definition calibration.h:61