forked from ApolloAuto/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Planning: init path_reference_decider
- Loading branch information
1 parent
477e0cd
commit 458379a
Showing
6 changed files
with
128 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
modules/planning/tasks/deciders/path_reference_decider/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
load("//tools:cpplint.bzl", "cpplint") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
cc_library( | ||
name = "path_reference_decider", | ||
srcs = ["path_reference_decider.cc"], | ||
hdrs = ["path_reference_decider.h"], | ||
copts = ["-DMODULE_NAME=\\\"planning\\\""], | ||
deps = [ | ||
"//modules/common/configs:vehicle_config_helper", | ||
"//modules/common/math", | ||
"//modules/common/status", | ||
"//modules/map/proto:map_proto", | ||
"//modules/planning/common:frame", | ||
"//modules/planning/common:path_decision", | ||
"//modules/planning/common:planning_gflags", | ||
"//modules/planning/common:reference_line_info", | ||
"//modules/planning/proto:planning_config_proto", | ||
"//modules/planning/proto:planning_proto", | ||
"//modules/planning/tasks:task", | ||
], | ||
) | ||
|
||
cpplint() |
42 changes: 42 additions & 0 deletions
42
modules/planning/tasks/deciders/path_reference_decider/path_reference_decider.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/****************************************************************************** | ||
* Copyright 2020 The Apollo Authors. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*****************************************************************************/ | ||
|
||
/** | ||
* @file path_reference_decider.cc | ||
*/ | ||
#include "modules/planning/tasks/deciders/path_reference_decider/path_reference_decider.h" | ||
|
||
#include <string> | ||
|
||
#include "modules/planning/common/planning_context.h" | ||
#include "modules/planning/proto/planning_config.pb.h" | ||
#include "modules/planning/tasks/task.h" | ||
|
||
namespace apollo { | ||
namespace planning { | ||
|
||
using apollo::common::Status; | ||
|
||
PathReferenceDecider::PathReferenceDecider(const TaskConfig &config) | ||
: Task(config) {} | ||
|
||
Status PathReferenceDecider::Execute(Frame *frame, | ||
ReferenceLineInfo *reference_line_info) { | ||
Task::Execute(frame, reference_line_info); | ||
return Status::OK(); | ||
} | ||
} // namespace planning | ||
} // namespace apollo |
39 changes: 39 additions & 0 deletions
39
modules/planning/tasks/deciders/path_reference_decider/path_reference_decider.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/****************************************************************************** | ||
* Copyright 2020 The Apollo Authors. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*****************************************************************************/ | ||
|
||
/** | ||
* @file path_reference_decider.h | ||
**/ | ||
|
||
#pragma once | ||
|
||
#include <string> | ||
|
||
#include "modules/planning/proto/planning_config.pb.h" | ||
#include "modules/planning/tasks/task.h" | ||
|
||
namespace apollo { | ||
namespace planning { | ||
class PathReferenceDecider : public Task { | ||
public: | ||
explicit PathReferenceDecider(const TaskConfig &config); | ||
|
||
apollo::common::Status Execute( | ||
Frame *frame, ReferenceLineInfo *reference_line_info) override; | ||
}; | ||
|
||
} // namespace planning | ||
} // namespace apollo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters