Apollo 11.0
自动驾驶开放平台
waypoint_sampler.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
21#pragma once
22
23#include "modules/common_msgs/basic_msgs/pnc_point.pb.h"
24#include "modules/planning/planning_base/proto/dp_poly_path_config.pb.h"
25
35
36namespace apollo {
37namespace planning {
38
40 public:
41 explicit WaypointSampler(const WaypointSamplerConfig &config)
42 : config_(config) {}
43 virtual ~WaypointSampler() = default;
44
45 virtual void Init(const ReferenceLineInfo *reference_line_info,
47 const common::FrenetFramePoint &init_frenet_frame_point);
48
50 planning_debug_ = debug;
51 }
52
53 virtual bool SamplePathWaypoints(
54 const common::TrajectoryPoint &init_point,
55 std::vector<std::vector<common::SLPoint>> *const points);
56
57 protected:
58 const WaypointSamplerConfig &config_;
63};
64
65} // namespace planning
66} // namespace apollo
ReferenceLineInfo holds all data for one reference line.
virtual ~WaypointSampler()=default
common::FrenetFramePoint init_frenet_frame_point_
const ReferenceLineInfo * reference_line_info_
apollo::planning_internal::Debug * planning_debug_
virtual bool SamplePathWaypoints(const common::TrajectoryPoint &init_point, std::vector< std::vector< common::SLPoint > > *const points)
virtual void Init(const ReferenceLineInfo *reference_line_info, const common::SLPoint &init_sl_point_, const common::FrenetFramePoint &init_frenet_frame_point)
const WaypointSamplerConfig & config_
virtual void SetDebugLogger(apollo::planning_internal::Debug *debug)
WaypointSampler(const WaypointSamplerConfig &config)
Planning module main class.
class register implement
Definition arena_queue.h:37