Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
05aa2243
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,发现更多精彩内容 >>
提交
05aa2243
编写于
9月 06, 2017
作者:
A
Aaron Xiao
提交者:
Jiangtao Hu
9月 06, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Planning: StGraph code clean.
上级
e70e9dde
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
8 addition
and
25 deletion
+8
-25
modules/planning/tasks/st_graph/st_boundary_mapper.cc
modules/planning/tasks/st_graph/st_boundary_mapper.cc
+0
-1
modules/planning/tasks/st_graph/st_boundary_mapper.h
modules/planning/tasks/st_graph/st_boundary_mapper.h
+2
-0
modules/planning/tasks/st_graph/st_boundary_mapper_test.cc
modules/planning/tasks/st_graph/st_boundary_mapper_test.cc
+4
-6
modules/planning/tasks/st_graph/st_graph_data.cc
modules/planning/tasks/st_graph/st_graph_data.cc
+1
-1
modules/planning/tasks/st_graph/st_graph_data.h
modules/planning/tasks/st_graph/st_graph_data.h
+1
-3
modules/planning/tasks/st_graph/st_graph_data_test.cc
modules/planning/tasks/st_graph/st_graph_data_test.cc
+0
-14
未找到文件。
modules/planning/tasks/st_graph/st_boundary_mapper.cc
浏览文件 @
05aa2243
...
...
@@ -99,7 +99,6 @@ Status StBoundaryMapper::GetGraphBoundary(
}
st_boundaries
->
clear
();
Status
ret
=
Status
::
OK
();
const
PathObstacle
*
stop_obstacle
=
nullptr
;
ObjectDecisionType
stop_decision
;
...
...
modules/planning/tasks/st_graph/st_boundary_mapper.h
浏览文件 @
05aa2243
...
...
@@ -46,6 +46,8 @@ class StBoundaryMapper {
const
PathData
&
path_data
,
const
double
planning_distance
,
const
double
planning_time
);
virtual
~
StBoundaryMapper
()
=
default
;
apollo
::
common
::
Status
GetGraphBoundary
(
const
PathDecision
&
path_decision
,
std
::
vector
<
StBoundary
>*
const
boundary
)
const
;
...
...
modules/planning/tasks/st_graph/st_boundary_mapper_test.cc
浏览文件 @
05aa2243
...
...
@@ -23,6 +23,7 @@
#include "gtest/gtest.h"
#include "modules/common/log.h"
#include "modules/map/hdmap/hdmap_util.h"
#include "modules/planning/common/path_obstacle.h"
#include "modules/planning/reference_line/reference_line_smoother.h"
...
...
@@ -33,13 +34,10 @@ class StBoundaryMapperTest : public ::testing::Test {
public:
virtual
void
SetUp
()
{
hdmap_
.
LoadMapFromFile
(
map_file
);
const
std
::
string
lane_id_str
=
"1_-1"
;
hdmap
::
Id
lane_id
;
lane_id
.
set_id
(
lane_id_str
);
lane_info_ptr
=
hdmap_
.
GetLaneById
(
lane_id
);
const
std
::
string
lane_id
=
"1_-1"
;
lane_info_ptr
=
hdmap_
.
GetLaneById
(
hdmap
::
MakeMapId
(
lane_id
));
if
(
!
lane_info_ptr
)
{
AERROR
<<
"failed to find lane "
<<
lane_id_str
<<
" from map "
<<
map_file
;
AERROR
<<
"failed to find lane "
<<
lane_id
<<
" from map "
<<
map_file
;
return
;
}
ReferenceLineSmootherConfig
config
;
...
...
modules/planning/tasks/st_graph/st_graph_data.cc
浏览文件 @
05aa2243
...
...
@@ -40,7 +40,7 @@ const std::vector<StBoundary>& StGraphData::st_boundaries() const {
const
TrajectoryPoint
&
StGraphData
::
init_point
()
const
{
return
init_point_
;
}
const
SpeedLimit
StGraphData
::
speed_limit
()
const
{
return
speed_limit_
;
}
const
SpeedLimit
&
StGraphData
::
speed_limit
()
const
{
return
speed_limit_
;
}
double
StGraphData
::
path_data_length
()
const
{
return
path_data_length_
;
}
...
...
modules/planning/tasks/st_graph/st_graph_data.h
浏览文件 @
05aa2243
...
...
@@ -34,8 +34,6 @@ namespace planning {
class
StGraphData
{
public:
StGraphData
()
=
default
;
StGraphData
(
const
std
::
vector
<
StBoundary
>&
st_boundaries
,
const
apollo
::
common
::
TrajectoryPoint
&
init_point
,
const
SpeedLimit
&
speed_limit
,
const
double
path_data_length
);
...
...
@@ -44,7 +42,7 @@ class StGraphData {
const
apollo
::
common
::
TrajectoryPoint
&
init_point
()
const
;
const
SpeedLimit
speed_limit
()
const
;
const
SpeedLimit
&
speed_limit
()
const
;
double
path_data_length
()
const
;
...
...
modules/planning/tasks/st_graph/st_graph_data_test.cc
浏览文件 @
05aa2243
...
...
@@ -29,20 +29,6 @@ namespace apollo {
namespace
planning
{
TEST
(
StGraphDataTest
,
basic_test
)
{
StGraphData
st_graph_data
;
EXPECT_EQ
(
st_graph_data
.
st_boundaries
().
size
(),
0
);
EXPECT_DOUBLE_EQ
(
st_graph_data
.
init_point
().
path_point
().
x
(),
0.0
);
EXPECT_DOUBLE_EQ
(
st_graph_data
.
init_point
().
path_point
().
y
(),
0.0
);
EXPECT_DOUBLE_EQ
(
st_graph_data
.
init_point
().
path_point
().
z
(),
0.0
);
EXPECT_DOUBLE_EQ
(
st_graph_data
.
init_point
().
path_point
().
theta
(),
0.0
);
EXPECT_DOUBLE_EQ
(
st_graph_data
.
init_point
().
path_point
().
kappa
(),
0.0
);
EXPECT_DOUBLE_EQ
(
st_graph_data
.
init_point
().
path_point
().
dkappa
(),
0.0
);
EXPECT_DOUBLE_EQ
(
st_graph_data
.
init_point
().
path_point
().
ddkappa
(),
0.0
);
EXPECT_DOUBLE_EQ
(
st_graph_data
.
init_point
().
v
(),
0.0
);
EXPECT_DOUBLE_EQ
(
st_graph_data
.
init_point
().
a
(),
0.0
);
EXPECT_DOUBLE_EQ
(
st_graph_data
.
init_point
().
relative_time
(),
0.0
);
EXPECT_DOUBLE_EQ
(
st_graph_data
.
path_data_length
(),
0.0
);
std
::
vector
<
StBoundary
>
boundary_vec
;
boundary_vec
.
push_back
(
StBoundary
());
apollo
::
common
::
TrajectoryPoint
traj_point
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录