Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
9afd18bc
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,发现更多精彩内容 >>
提交
9afd18bc
编写于
8月 20, 2017
作者:
Z
Zhang Liangliang
提交者:
Jiangtao Hu
8月 20, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Planning: make sure the acceleration is correctly obtained from VehicleState.
上级
94ac8e2d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
7 deletion
+24
-7
modules/common/vehicle_state/vehicle_state.cc
modules/common/vehicle_state/vehicle_state.cc
+4
-0
modules/common/vehicle_state/vehicle_state.h
modules/common/vehicle_state/vehicle_state.h
+1
-1
modules/planning/planning.cc
modules/planning/planning.cc
+1
-1
modules/planning/trajectory_stitcher/trajectory_stitcher.cc
modules/planning/trajectory_stitcher/trajectory_stitcher.cc
+15
-2
modules/planning/trajectory_stitcher/trajectory_stitcher.h
modules/planning/trajectory_stitcher/trajectory_stitcher.h
+3
-3
未找到文件。
modules/common/vehicle_state/vehicle_state.cc
浏览文件 @
9afd18bc
...
...
@@ -70,10 +70,14 @@ void VehicleState::ConstructExceptLinearVelocity(
}
if
(
FLAGS_enable_map_reference_unify
)
{
CHECK
(
localization
.
pose
().
has_angular_velocity_vrf
());
angular_v_
=
localization
.
pose
().
angular_velocity_vrf
().
z
();
CHECK
(
localization
.
pose
().
has_linear_acceleration_vrf
());
linear_a_y_
=
localization
.
pose
().
linear_acceleration_vrf
().
y
();
}
else
{
CHECK
(
localization
.
pose
().
has_angular_velocity
());
angular_v_
=
localization
.
pose
().
angular_velocity
().
z
();
CHECK
(
localization
.
pose
().
has_linear_acceleration
());
linear_a_y_
=
localization
.
pose
().
linear_acceleration
().
y
();
}
...
...
modules/common/vehicle_state/vehicle_state.h
浏览文件 @
9afd18bc
...
...
@@ -249,4 +249,4 @@ class VehicleState {
}
// namespace common
}
// namespace apollo
#endif
/* MODULES_COMMON_VEHICLE_STATE_VEHICLE_STATE_H_ */
#endif
// MODULES_COMMON_VEHICLE_STATE_VEHICLE_STATE_H_
modules/planning/planning.cc
浏览文件 @
9afd18bc
...
...
@@ -65,7 +65,7 @@ bool Planning::InitFrame(const uint32_t sequence_num) {
const
auto
&
prediction
=
AdapterManager
::
GetPrediction
()
->
GetLatestObserved
();
frame_
->
SetPrediction
(
prediction
);
ADEBUG
<<
"Get prediction"
;
ADEBUG
<<
"Get prediction
done.
"
;
}
if
(
!
frame_
->
Init
(
config_
))
{
...
...
modules/planning/trajectory_stitcher/trajectory_stitcher.cc
浏览文件 @
9afd18bc
...
...
@@ -31,19 +31,32 @@ namespace planning {
using
VehicleState
=
apollo
::
common
::
VehicleState
;
namespace
{
std
::
vector
<
common
::
TrajectoryPoint
>
compute_reinit_stitching_trajectory
()
{
common
::
TrajectoryPoint
init_point
;
init_point
.
mutable_path_point
()
->
set_x
(
VehicleState
::
instance
()
->
x
());
init_point
.
mutable_path_point
()
->
set_y
(
VehicleState
::
instance
()
->
y
());
init_point
.
set_v
(
VehicleState
::
instance
()
->
linear_velocity
());
init_point
.
set_a
(
VehicleState
::
instance
()
->
linear_acceleration
());
init_point
.
mutable_path_point
()
->
set_z
(
VehicleState
::
instance
()
->
z
());
init_point
.
mutable_path_point
()
->
set_theta
(
VehicleState
::
instance
()
->
heading
());
init_point
.
mutable_path_point
()
->
set_kappa
(
VehicleState
::
instance
()
->
kappa
());
init_point
.
set_v
(
VehicleState
::
instance
()
->
linear_velocity
());
init_point
.
set_a
(
VehicleState
::
instance
()
->
linear_acceleration
());
init_point
.
set_relative_time
(
0.0
);
DCHECK
(
!
std
::
isnan
(
init_point
.
path_point
().
x
()));
DCHECK
(
!
std
::
isnan
(
init_point
.
path_point
().
y
()));
DCHECK
(
!
std
::
isnan
(
init_point
.
path_point
().
z
()));
DCHECK
(
!
std
::
isnan
(
init_point
.
path_point
().
theta
()));
DCHECK
(
!
std
::
isnan
(
init_point
.
path_point
().
kappa
()));
DCHECK
(
!
std
::
isnan
(
init_point
.
v
()));
DCHECK
(
!
std
::
isnan
(
init_point
.
a
()));
return
std
::
vector
<
common
::
TrajectoryPoint
>
(
1
,
init_point
);
}
}
// Planning from current vehicle state:
// if 1. the auto-driving mode is off or
...
...
modules/planning/trajectory_stitcher/trajectory_stitcher.h
浏览文件 @
9afd18bc
...
...
@@ -18,8 +18,8 @@
* @file trajectory_stitcher.h
**/
#ifndef MODULES_PLANNING_TRAJECTORY_STITCHER_H_
#define MODULES_PLANNING_TRAJECTORY_STITCHER_H_
#ifndef MODULES_PLANNING_TRAJECTORY_STITCHER_
TRAJECTORY_STITCHER_
H_
#define MODULES_PLANNING_TRAJECTORY_STITCHER_
TRAJECTORY_STITCHER_
H_
#include <vector>
...
...
@@ -45,4 +45,4 @@ class TrajectoryStitcher {
}
// namespace planning
}
// namespace apollo
#endif // MODULES_PLANNING_TRAJECTORY_STITCHER_H_
#endif // MODULES_PLANNING_TRAJECTORY_STITCHER_
TRAJECTORY_STITCHER_
H_
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录