Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
993ca87f
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,发现更多精彩内容 >>
提交
993ca87f
编写于
9月 02, 2017
作者:
A
Aaron Xiao
提交者:
Dong Li
9月 02, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Planning: Retire unused PublishableTrajectory functions.
上级
36e787df
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1 addition
and
24 deletion
+1
-24
modules/planning/common/trajectory/publishable_trajectory.cc
modules/planning/common/trajectory/publishable_trajectory.cc
+0
-13
modules/planning/common/trajectory/publishable_trajectory.h
modules/planning/common/trajectory/publishable_trajectory.h
+1
-9
modules/planning/planning.cc
modules/planning/planning.cc
+0
-2
未找到文件。
modules/planning/common/trajectory/publishable_trajectory.cc
浏览文件 @
993ca87f
...
...
@@ -25,27 +25,14 @@
namespace
apollo
{
namespace
planning
{
using
common
::
TrajectoryPoint
;
PublishableTrajectory
::
PublishableTrajectory
(
const
double
header_time
,
const
DiscretizedTrajectory
&
discretized_trajectory
)
:
DiscretizedTrajectory
(
discretized_trajectory
),
header_time_
(
header_time
)
{}
PublishableTrajectory
::
PublishableTrajectory
(
const
double
header_time
,
std
::
vector
<
common
::
TrajectoryPoint
>
trajectory_points
)
{
header_time_
=
header_time
;
trajectory_points_
=
std
::
move
(
trajectory_points
);
}
double
PublishableTrajectory
::
header_time
()
const
{
return
header_time_
;
}
void
PublishableTrajectory
::
set_header_time
(
const
double
header_time
)
{
header_time_
=
header_time
;
}
void
PublishableTrajectory
::
PopulateTrajectoryProtobuf
(
ADCTrajectory
*
trajectory_pb
)
const
{
trajectory_pb
->
mutable_header
()
->
set_timestamp_sec
(
header_time_
);
...
...
modules/planning/common/trajectory/publishable_trajectory.h
浏览文件 @
993ca87f
...
...
@@ -31,19 +31,11 @@ namespace planning {
class
PublishableTrajectory
:
public
DiscretizedTrajectory
{
public:
PublishableTrajectory
()
=
default
;
explicit
PublishableTrajectory
(
const
double
header_time
,
const
DiscretizedTrajectory
&
discretized_trajectory
);
PublishableTrajectory
(
const
double
header_time
,
std
::
vector
<
common
::
TrajectoryPoint
>
trajectory_points
);
virtual
~
PublishableTrajectory
()
=
default
;
const
DiscretizedTrajectory
&
discretized_trajectory
);
double
header_time
()
const
;
void
set_header_time
(
const
double
header_time
);
void
PopulateTrajectoryProtobuf
(
ADCTrajectory
*
trajectory_pb
)
const
;
private:
...
...
modules/planning/planning.cc
浏览文件 @
993ca87f
...
...
@@ -287,8 +287,6 @@ common::Status Planning::Plan(
publishable_trajectory
.
PrependTrajectoryPoints
(
stitching_trajectory
.
begin
(),
stitching_trajectory
.
end
()
-
1
);
publishable_trajectory
.
set_header_time
(
current_time_stamp
);
publishable_trajectory
.
PopulateTrajectoryProtobuf
(
trajectory_pb
);
trajectory_pb
->
set_is_replan
(
stitching_trajectory
.
size
()
==
1
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录