Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
cbe3aa22
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,发现更多精彩内容 >>
提交
cbe3aa22
编写于
5月 22, 2019
作者:
K
kechxu
提交者:
Kecheng Xu
5月 22, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Prediction: move dumping adc trajectory to data for tuning
上级
67ad6208
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
16 addition
and
5 deletion
+16
-5
modules/prediction/common/feature_output.cc
modules/prediction/common/feature_output.cc
+6
-1
modules/prediction/common/feature_output.h
modules/prediction/common/feature_output.h
+4
-3
modules/prediction/predictor/interaction/interaction_predictor.cc
...prediction/predictor/interaction/interaction_predictor.cc
+2
-1
modules/prediction/proto/BUILD
modules/prediction/proto/BUILD
+1
-0
modules/prediction/proto/offline_features.proto
modules/prediction/proto/offline_features.proto
+3
-0
未找到文件。
modules/prediction/common/feature_output.cc
浏览文件 @
cbe3aa22
...
...
@@ -26,6 +26,7 @@ namespace apollo {
namespace
prediction
{
using
apollo
::
common
::
util
::
StrCat
;
using
apollo
::
common
::
TrajectoryPoint
;
Features
FeatureOutput
::
features_
;
ListDataForLearning
FeatureOutput
::
list_data_for_learning_
;
...
...
@@ -132,7 +133,8 @@ void FeatureOutput::InsertFrameEnv(const FrameEnv& frame_env) {
void
FeatureOutput
::
InsertDataForTuning
(
const
Feature
&
feature
,
const
std
::
vector
<
double
>&
feature_values
,
const
std
::
string
&
category
,
const
LaneSequence
&
lane_sequence
)
{
const
std
::
string
&
category
,
const
LaneSequence
&
lane_sequence
,
const
std
::
vector
<
TrajectoryPoint
>&
adc_trajectory
)
{
DataForTuning
*
data_for_tuning
=
list_data_for_tuning_
.
add_data_for_tuning
();
data_for_tuning
->
set_id
(
feature
.
id
());
data_for_tuning
->
set_timestamp
(
feature
.
timestamp
());
...
...
@@ -142,6 +144,9 @@ void FeatureOutput::InsertDataForTuning(
ADEBUG
<<
"Insert ["
<<
category
<<
"] data for tuning with size = "
<<
feature_values
.
size
();
data_for_tuning
->
set_lane_sequence_id
(
lane_sequence
.
lane_sequence_id
());
for
(
const
auto
&
adc_traj_point
:
adc_trajectory
)
{
data_for_tuning
->
add_adc_trajectory_point
()
->
CopyFrom
(
adc_traj_point
);
}
}
void
FeatureOutput
::
WriteFeatureProto
()
{
...
...
modules/prediction/common/feature_output.h
浏览文件 @
cbe3aa22
...
...
@@ -88,11 +88,12 @@ class FeatureOutput {
* @param values for tuning
* @param category of the data
* @param lane sequence
* @param adc trajectory
*/
static
void
InsertDataForTuning
(
const
Feature
&
feature
,
const
std
::
vector
<
double
>&
feature_values
,
const
std
::
string
&
category
,
const
LaneSequence
&
lane_sequence
);
const
std
::
vector
<
double
>&
feature_values
,
const
std
::
string
&
category
,
const
LaneSequence
&
lane_sequence
,
const
std
::
vector
<
apollo
::
common
::
TrajectoryPoint
>&
adc_trajectory
);
/**
* @brief Write features to a file
...
...
modules/prediction/predictor/interaction/interaction_predictor.cc
浏览文件 @
cbe3aa22
...
...
@@ -261,7 +261,8 @@ double InteractionPredictor::ComputeTrajectoryCost(const Obstacle& obstacle,
std
::
vector
<
double
>
cost_values
=
{
lon_acc_cost
,
centri_acc_cost
,
collision_cost
};
FeatureOutput
::
InsertDataForTuning
(
obstacle
.
latest_feature
(),
cost_values
,
"interaction"
,
lane_sequence
);
obstacle
.
latest_feature
(),
cost_values
,
"interaction"
,
lane_sequence
,
adc_trajectory_
);
}
return
total_cost
;
...
...
modules/prediction/proto/BUILD
浏览文件 @
cbe3aa22
...
...
@@ -91,6 +91,7 @@ proto_library(
"offline_features.proto"
,
],
deps
=
[
"//modules/common/proto:pnc_point_proto_lib"
,
"//modules/prediction/proto:feature_proto_lib"
,
"//modules/prediction/proto:prediction_proto_lib"
,
],
...
...
modules/prediction/proto/offline_features.proto
浏览文件 @
cbe3aa22
...
...
@@ -2,6 +2,7 @@ syntax = "proto2";
package
apollo
.
prediction
;
import
"modules/common/proto/pnc_point.proto"
;
import
"modules/prediction/proto/feature.proto"
;
message
CNNFeatures
{
...
...
@@ -58,6 +59,8 @@ message DataForTuning {
repeated
double
real_cost_value
=
5
;
// The lane sequence id if associated with a lane
optional
int32
lane_sequence_id
=
6
;
// The associated adc trajectory
repeated
apollo.common.TrajectoryPoint
adc_trajectory_point
=
7
;
}
message
ListDataForTuning
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录