提交 eef5fa91 编写于 作者: J JasonZhou404 提交者: Xiangquan Xiao

Planning: OpenSpace: Implementation in approaching parking spot stage

上级 7c7d4b29
......@@ -26,7 +26,13 @@ namespace valet_parking {
Stage::StageStatus StageApproachingParkingSpot::Process(
const common::TrajectoryPoint& planning_init_point, Frame* frame) {
return Stage::FINISHED;
ADEBUG << "stage: StageApproachingParkingSpot";
CHECK_NOTNULL(frame);
bool plan_ok = ExecuteTaskOnReferenceLine(planning_init_point, frame);
if (!plan_ok) {
AERROR << "StopSignUnprotectedStagePreStop planning error";
}
return Stage::RUNNING;
}
} // namespace valet_parking
......
......@@ -28,7 +28,28 @@ namespace planning {
namespace scenario {
namespace valet_parking {
DECLARE_STAGE(StageApproachingParkingSpot, ValetParkingContext);
class StageApproachingParkingSpot : public Stage {
public:
explicit StageApproachingParkingSpot(
const ScenarioConfig::StageConfig& config)
: Stage(config) {}
private:
Stage::StageStatus Process(const common::TrajectoryPoint& planning_init_point,
Frame* frame) override;
ValetParkingContext* GetContext() {
return GetContextAs<ValetParkingContext>();
}
bool CheckADCStop(const ReferenceLineInfo& reference_line_info);
private:
Stage::StageStatus FinishStage();
private:
ScenarioValetParkingConfig scenario_config_;
};
} // namespace valet_parking
} // namespace scenario
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册