Apollo 11.0
自动驾驶开放平台
omnidirectional_model.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2018 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#pragma once
17
18#include <memory>
19#include <string>
20
21#include "Eigen/Core"
22
26
27namespace apollo {
28namespace perception {
29namespace base {
30
32 public:
33 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
34
35 public:
38
39 Eigen::Vector2f Project(const Eigen::Vector3f& point3d) override;
40
41 std::shared_ptr<BaseCameraModel> get_camera_model() override;
42
43 std::string name() const override {
44 return "OmnidirectionalCameraDistortionModel";
45 }
46
47 bool set_params(size_t width, size_t height,
48 const Eigen::VectorXf& params) override;
49
50 protected:
51 Eigen::Matrix3f intrinsic_params_;
54 float center_[2]; // x, y
55 float affine_[3]; // c, d, e
56};
57
58} // namespace base
59} // namespace perception
60} // namespace apollo
std::shared_ptr< BaseCameraModel > get_camera_model() override
Eigen::Vector2f Project(const Eigen::Vector3f &point3d) override
bool set_params(size_t width, size_t height, const Eigen::VectorXf &params) override
class register implement
Definition arena_queue.h:37