Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
192482aa
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,发现更多精彩内容 >>
提交
192482aa
编写于
7月 20, 2017
作者:
J
jiangyifei
提交者:
Calvin Miao
7月 20, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
some style changes
上级
e632d3ab
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
19 deletion
+19
-19
modules/planning/common/path/discretized_path.cc
modules/planning/common/path/discretized_path.cc
+5
-5
modules/planning/common/path/discretized_path.h
modules/planning/common/path/discretized_path.h
+4
-4
modules/planning/common/path/frenet_frame_path.cc
modules/planning/common/path/frenet_frame_path.cc
+5
-5
modules/planning/common/path/frenet_frame_path.h
modules/planning/common/path/frenet_frame_path.h
+5
-5
未找到文件。
modules/planning/common/path/discretized_path.cc
浏览文件 @
192482aa
...
...
@@ -74,11 +74,11 @@ int DiscretizedPath::query_closest_point(const double param) const {
}
}
std
::
vector
<
common
::
PathPoint
>
*
DiscretizedPath
::
mutable_path_points
()
{
std
::
vector
<
common
::
PathPoint
>
*
DiscretizedPath
::
mutable_path_points
()
{
return
&
path_points_
;
}
const
std
::
vector
<
common
::
PathPoint
>
&
DiscretizedPath
::
path_points
()
const
{
const
std
::
vector
<
common
::
PathPoint
>
&
DiscretizedPath
::
path_points
()
const
{
return
path_points_
;
}
...
...
@@ -86,7 +86,7 @@ std::size_t DiscretizedPath::num_of_points() const {
return
path_points_
.
size
();
}
const
common
::
PathPoint
&
DiscretizedPath
::
path_point_at
(
const
common
::
PathPoint
&
DiscretizedPath
::
path_point_at
(
const
std
::
size_t
index
)
const
{
CHECK_LT
(
index
,
path_points_
.
size
());
return
path_points_
[
index
];
...
...
@@ -102,14 +102,14 @@ common::PathPoint DiscretizedPath::end_point() const {
return
path_points_
.
back
();
}
common
::
PathPoint
&
DiscretizedPath
::
path_point_at
(
const
std
::
size_t
index
)
{
common
::
PathPoint
&
DiscretizedPath
::
path_point_at
(
const
std
::
size_t
index
)
{
CHECK_LT
(
index
,
path_points_
.
size
());
return
path_points_
[
index
];
}
std
::
vector
<
common
::
PathPoint
>::
const_iterator
DiscretizedPath
::
query_lower_bound
(
const
double
param
)
const
{
auto
func
=
[](
const
common
::
PathPoint
&
tp
,
const
double
param
)
{
auto
func
=
[](
const
common
::
PathPoint
&
tp
,
const
double
param
)
{
return
tp
.
s
()
<
param
;
};
return
std
::
lower_bound
(
path_points_
.
begin
(),
path_points_
.
end
(),
param
,
...
...
modules/planning/common/path/discretized_path.h
浏览文件 @
192482aa
...
...
@@ -47,15 +47,15 @@ class DiscretizedPath : public Path {
int
query_closest_point
(
const
double
param
)
const
;
std
::
vector
<
common
::
PathPoint
>
*
mutable_path_points
();
std
::
vector
<
common
::
PathPoint
>
*
mutable_path_points
();
const
std
::
vector
<
common
::
PathPoint
>
&
path_points
()
const
;
const
std
::
vector
<
common
::
PathPoint
>
&
path_points
()
const
;
std
::
size_t
num_of_points
()
const
;
const
common
::
PathPoint
&
path_point_at
(
const
std
::
size_t
index
)
const
;
const
common
::
PathPoint
&
path_point_at
(
const
std
::
size_t
index
)
const
;
common
::
PathPoint
&
path_point_at
(
const
std
::
size_t
index
);
common
::
PathPoint
&
path_point_at
(
const
std
::
size_t
index
);
private:
std
::
vector
<
common
::
PathPoint
>::
const_iterator
query_lower_bound
(
...
...
modules/planning/common/path/frenet_frame_path.cc
浏览文件 @
192482aa
...
...
@@ -33,27 +33,27 @@ FrenetFramePath::FrenetFramePath(
}
void
FrenetFramePath
::
set_frenet_points
(
const
std
::
vector
<
common
::
FrenetFramePoint
>
&
points
)
{
const
std
::
vector
<
common
::
FrenetFramePoint
>
&
points
)
{
points_
=
points
;
}
std
::
vector
<
common
::
FrenetFramePoint
>
*
FrenetFramePath
::
mutable_points
()
{
std
::
vector
<
common
::
FrenetFramePoint
>
*
FrenetFramePath
::
mutable_points
()
{
return
&
points_
;
}
const
std
::
vector
<
common
::
FrenetFramePoint
>
&
FrenetFramePath
::
points
()
const
{
const
std
::
vector
<
common
::
FrenetFramePoint
>
&
FrenetFramePath
::
points
()
const
{
return
points_
;
}
std
::
size_t
FrenetFramePath
::
num_points
()
const
{
return
points_
.
size
();
}
const
common
::
FrenetFramePoint
&
FrenetFramePath
::
point_at
(
const
common
::
FrenetFramePoint
&
FrenetFramePath
::
point_at
(
const
std
::
size_t
index
)
const
{
CHECK_LT
(
index
,
points_
.
size
());
return
points_
[
index
];
}
common
::
FrenetFramePoint
&
FrenetFramePath
::
point_at
(
const
std
::
size_t
index
)
{
common
::
FrenetFramePoint
&
FrenetFramePath
::
point_at
(
const
std
::
size_t
index
)
{
CHECK_LT
(
index
,
points_
.
size
());
return
points_
[
index
];
}
...
...
modules/planning/common/path/frenet_frame_path.h
浏览文件 @
192482aa
...
...
@@ -36,17 +36,17 @@ class FrenetFramePath {
virtual
~
FrenetFramePath
()
=
default
;
void
set_frenet_points
(
const
std
::
vector
<
common
::
FrenetFramePoint
>
&
points
);
void
set_frenet_points
(
const
std
::
vector
<
common
::
FrenetFramePoint
>
&
points
);
std
::
vector
<
common
::
FrenetFramePoint
>
*
mutable_points
();
std
::
vector
<
common
::
FrenetFramePoint
>
*
mutable_points
();
const
std
::
vector
<
common
::
FrenetFramePoint
>
&
points
()
const
;
const
std
::
vector
<
common
::
FrenetFramePoint
>
&
points
()
const
;
std
::
size_t
num_points
()
const
;
const
common
::
FrenetFramePoint
&
point_at
(
const
std
::
size_t
index
)
const
;
const
common
::
FrenetFramePoint
&
point_at
(
const
std
::
size_t
index
)
const
;
common
::
FrenetFramePoint
&
point_at
(
const
std
::
size_t
index
);
common
::
FrenetFramePoint
&
point_at
(
const
std
::
size_t
index
);
private:
std
::
vector
<
common
::
FrenetFramePoint
>
points_
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录