Apollo 11.0
自动驾驶开放平台
spline_seg_kernel.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
25#pragma once
26
27#include <string>
28
29#include "Eigen/Core"
30
31#include "cyber/common/macros.h"
32
33namespace apollo {
34namespace planning {
35
37 public:
38 // generating kernel matrix
39 Eigen::MatrixXd Kernel(const uint32_t num_params, const double accumulated_x);
40
41 // only support N <= 3 cases
42 Eigen::MatrixXd NthDerivativeKernel(const uint32_t n,
43 const uint32_t num_params,
44 const double accumulated_x);
45
46 private:
47 Eigen::MatrixXd DerivativeKernel(const uint32_t num_of_params,
48 const double accumulated_x);
49 Eigen::MatrixXd SecondOrderDerivativeKernel(const uint32_t num_of_params,
50 const double accumulated_x);
51 Eigen::MatrixXd ThirdOrderDerivativeKernel(const uint32_t num_of_params,
52 const double accumulated_x);
53
54 void IntegratedTermMatrix(const uint32_t num_of_params, const double x,
55 const std::string& type,
56 Eigen::MatrixXd* term_matrix) const;
57 void CalculateFx(const uint32_t num_of_params);
58 void CalculateDerivative(const uint32_t num_of_params);
59 void CalculateSecondOrderDerivative(const uint32_t num_of_params);
60 void CalculateThirdOrderDerivative(const uint32_t num_of_params);
61
62 const uint32_t reserved_order_ = 5;
63 Eigen::MatrixXd kernel_fx_;
64 Eigen::MatrixXd kernel_derivative_;
65 Eigen::MatrixXd kernel_second_order_derivative_;
66 Eigen::MatrixXd kernel_third_order_derivative_;
67
69};
70
71} // namespace planning
72} // namespace apollo
Eigen::MatrixXd NthDerivativeKernel(const uint32_t n, const uint32_t num_params, const double accumulated_x)
Eigen::MatrixXd Kernel(const uint32_t num_params, const double accumulated_x)
Planning module main class.
#define DECLARE_SINGLETON(classname)
Definition macros.h:52
class register implement
Definition arena_queue.h:37