Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
b9b08a29
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b9b08a29
编写于
3月 26, 2019
作者:
P
panjiacheng
提交者:
Yajia Zhang
4月 03, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Planning: reverted the previous temporary updates and added debug-recording for generated paths.
上级
e783a95d
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
18 addition
and
20 deletion
+18
-20
modules/planning/common/planning_context.h
modules/planning/common/planning_context.h
+2
-1
modules/planning/conf/planning_config.pb.txt
modules/planning/conf/planning_config.pb.txt
+1
-1
modules/planning/conf/scenario/lane_follow_config.pb.txt
modules/planning/conf/scenario/lane_follow_config.pb.txt
+4
-4
modules/planning/scenarios/side_pass/side_pass_scenario.cc
modules/planning/scenarios/side_pass/side_pass_scenario.cc
+0
-1
modules/planning/tasks/deciders/path_assessment_decider.cc
modules/planning/tasks/deciders/path_assessment_decider.cc
+7
-4
modules/planning/tasks/deciders/path_bounds_decider.cc
modules/planning/tasks/deciders/path_bounds_decider.cc
+4
-6
modules/planning/tasks/optimizers/piecewise_jerk_path/piecewise_jerk_path_optimizer.cc
...zers/piecewise_jerk_path/piecewise_jerk_path_optimizer.cc
+0
-2
modules/planning/tasks/task_factory.cc
modules/planning/tasks/task_factory.cc
+0
-1
未找到文件。
modules/planning/common/planning_context.h
浏览文件 @
b9b08a29
...
...
@@ -69,7 +69,8 @@ class PlanningContext {
static
const
LaneFollowInfo
&
lane_follow_info
()
{
return
lane_follow_info_
;
}
static
LaneFollowInfo
*
mutable_lane_follow_info
()
{
return
&
lane_follow_info_
;
}
static
LaneFollowInfo
*
mutable_lane_follow_info
()
{
return
&
lane_follow_info_
;
}
private:
static
PlanningStatus
planning_status_
;
...
...
modules/planning/conf/planning_config.pb.txt
浏览文件 @
b9b08a29
...
...
@@ -310,6 +310,6 @@ default_task_config: {
default_task_config: {
task_type: PATH_BOUNDS_DECIDER
path_bounds_decider_config {
is_lane_borrowing:
tru
e
is_lane_borrowing:
fals
e
}
}
modules/planning/conf/scenario/lane_follow_config.pb.txt
浏览文件 @
b9b08a29
...
...
@@ -7,7 +7,7 @@ stage_config: {
task_type: PATH_BOUNDS_DECIDER
task_type: PIECEWISE_JERK_PATH_OPTIMIZER
task_type: PATH_ASSESSMENT_DECIDER
#
task_type: PATH_DECIDER
task_type: PATH_DECIDER
task_type: SPEED_BOUNDS_PRIORI_DECIDER
task_type: DP_ST_SPEED_OPTIMIZER
task_type: SPEED_DECIDER
...
...
@@ -27,9 +27,9 @@ stage_config: {
task_config: {
task_type: PATH_ASSESSMENT_DECIDER
}
#
task_config: {
#
task_type: PATH_DECIDER
#
}
task_config: {
task_type: PATH_DECIDER
}
task_config: {
task_type: SPEED_BOUNDS_PRIORI_DECIDER
}
...
...
modules/planning/scenarios/side_pass/side_pass_scenario.cc
浏览文件 @
b9b08a29
...
...
@@ -89,7 +89,6 @@ std::unique_ptr<Stage> SidePassScenario::CreateStage(
bool
SidePassScenario
::
IsTransferable
(
const
Scenario
&
target_scenario
,
const
Frame
&
frame
)
{
// Sanity checks.
return
false
;
if
(
frame
.
reference_line_info
().
size
()
>
1
)
{
return
false
;
}
...
...
modules/planning/tasks/deciders/path_assessment_decider.cc
浏览文件 @
b9b08a29
...
...
@@ -25,8 +25,6 @@
#include "modules/map/hdmap/hdmap_util.h"
#include "modules/planning/tasks/deciders/path_decider_obstacle_utils.h"
// #define ADEBUG AINFO
namespace
apollo
{
namespace
planning
{
...
...
@@ -75,9 +73,8 @@ Status PathAssessmentDecider::Process(
const
std
::
string
msg
=
"Neither regular nor fallback path is valid."
;
AERROR
<<
msg
;
return
Status
(
ErrorCode
::
PLANNING_ERROR
,
msg
);
}
else
{
ADEBUG
<<
"There are "
<<
valid_path_data
.
size
()
<<
" valid path data."
;
}
ADEBUG
<<
"There are "
<<
valid_path_data
.
size
()
<<
" valid path data."
;
// Analyze and add important info for speed decider to use.
for
(
auto
&
curr_path_data
:
valid_path_data
)
{
...
...
@@ -103,6 +100,12 @@ Status PathAssessmentDecider::Process(
reference_line_info
->
SetBlockingObstacleId
(
valid_path_data
.
front
().
blocking_obstacle_id
());
const
auto
&
path_points
=
reference_line_info
->
path_data
().
discretized_path
();
auto
*
ptr_optimized_path
=
reference_line_info
->
mutable_debug
()
->
mutable_planning_data
()
->
add_path
();
ptr_optimized_path
->
set_name
(
"Path Planning Output"
);
ptr_optimized_path
->
mutable_path_point
()
->
CopyFrom
(
{
path_points
.
begin
(),
path_points
.
end
()});
return
Status
::
OK
();
}
...
...
modules/planning/tasks/deciders/path_bounds_decider.cc
浏览文件 @
b9b08a29
...
...
@@ -31,8 +31,6 @@
#include "modules/map/hdmap/hdmap_util.h"
#include "modules/planning/tasks/deciders/path_decider_obstacle_utils.h"
// #define ADEBUG AINFO
namespace
apollo
{
namespace
planning
{
...
...
@@ -54,7 +52,7 @@ constexpr double kPathBoundsDeciderHorizon = 100.0;
constexpr
double
kPathBoundsDeciderResolution
=
0.5
;
constexpr
double
kDefaultLaneWidth
=
5.0
;
constexpr
double
kDefaultRoadWidth
=
20.0
;
constexpr
double
kObstacleSBuffer
=
2
.0
;
constexpr
double
kObstacleSBuffer
=
1
.0
;
constexpr
double
kObstacleLBuffer
=
0.4
;
PathBoundsDecider
::
PathBoundsDecider
(
const
TaskConfig
&
config
)
...
...
@@ -103,8 +101,8 @@ Status PathBoundsDecider::Process(
std
::
vector
<
LaneBorrowInfo
>
lane_borrow_info_list
;
if
(
config
.
path_bounds_decider_config
().
is_lane_borrowing
())
{
// Try borrowing from left and from right neighbor lane.
lane_borrow_info_list
=
{
LaneBorrowInfo
::
LEFT_BORROW
};
//
,
//
LaneBorrowInfo::RIGHT_BORROW};
lane_borrow_info_list
=
{
LaneBorrowInfo
::
LEFT_BORROW
,
LaneBorrowInfo
::
RIGHT_BORROW
};
}
else
{
// Only use self-lane with no lane borrowing
lane_borrow_info_list
=
{
LaneBorrowInfo
::
NO_BORROW
};
...
...
@@ -208,7 +206,7 @@ std::string PathBoundsDecider::GenerateRegularPathBound(
AERROR
<<
msg
;
return
msg
;
}
PathBoundsDebugString
(
*
path_bound
);
//
PathBoundsDebugString(*path_bound);
// 4. Adjust the boundary considering dynamic obstacles
// TODO(all): may need to implement this in the future.
...
...
modules/planning/tasks/optimizers/piecewise_jerk_path/piecewise_jerk_path_optimizer.cc
浏览文件 @
b9b08a29
...
...
@@ -28,8 +28,6 @@
#include "modules/planning/common/trajectory1d/piecewise_jerk_trajectory1d.h"
#include "modules/planning/math/finite_element_qp/fem_1d_qp_problem.h"
// #define ADEBUG AINFO
namespace
apollo
{
namespace
planning
{
...
...
modules/planning/tasks/task_factory.cc
浏览文件 @
b9b08a29
...
...
@@ -29,7 +29,6 @@
#include "modules/planning/tasks/deciders/open_space_roi_decider.h"
#include "modules/planning/tasks/deciders/path_assessment_decider.h"
#include "modules/planning/tasks/deciders/path_bounds_decider.h"
#include "modules/planning/tasks/deciders/path_assessment_decider.h"
#include "modules/planning/tasks/deciders/side_pass_path_decider.h"
#include "modules/planning/tasks/deciders/side_pass_safety.h"
#include "modules/planning/tasks/deciders/speed_bounds_decider/speed_bounds_decider.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录