Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
46ae1c26
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,发现更多精彩内容 >>
提交
46ae1c26
编写于
12月 11, 2019
作者:
X
Xiangquan Xiao
提交者:
Jiaming Tao
12月 11, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
All: Replace CopyFrom with shorter assignment.
上级
25a7e121
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
11 addition
and
19 deletion
+11
-19
modules/canbus/canbus_component.cc
modules/canbus/canbus_component.cc
+1
-3
modules/canbus/tools/teleop.cc
modules/canbus/tools/teleop.cc
+4
-4
modules/canbus/vehicle/vehicle_controller.cc
modules/canbus/vehicle/vehicle_controller.cc
+1
-2
modules/control/control_component.cc
modules/control/control_component.cc
+1
-2
modules/perception/camera/test/camera_lib_obstacle_detector_yolo_yolo_obstacle_detector_test.cc
...lib_obstacle_detector_yolo_yolo_obstacle_detector_test.cc
+1
-2
modules/perception/inference/tensorrt/rt_common.cc
modules/perception/inference/tensorrt/rt_common.cc
+2
-4
modules/planning/scenarios/bare_intersection/unprotected/bare_intersection_unprotected_scenario.cc
...ion/unprotected/bare_intersection_unprotected_scenario.cc
+1
-2
未找到文件。
modules/canbus/canbus_component.cc
浏览文件 @
46ae1c26
...
...
@@ -225,9 +225,7 @@ void CanbusComponent::OnControlCommand(const ControlCommand &control_command) {
void
CanbusComponent
::
OnGuardianCommand
(
const
GuardianCommand
&
guardian_command
)
{
apollo
::
control
::
ControlCommand
control_command
;
control_command
.
CopyFrom
(
guardian_command
.
control_command
());
OnControlCommand
(
control_command
);
OnControlCommand
(
guardian_command
.
control_command
());
}
common
::
Status
CanbusComponent
::
OnError
(
const
std
::
string
&
error_msg
)
{
...
...
modules/canbus/tools/teleop.cc
浏览文件 @
46ae1c26
...
...
@@ -143,10 +143,10 @@ class Teleop {
Chassis
::
GearPosition
gear
=
Chassis
::
GEAR_INVALID
;
PadMessage
pad_msg
;
ControlCommand
&
control_command_
=
control_command
();
apollo
::
common
::
VehicleParam
vehicle_params_
;
vehicle_params_
.
CopyFrom
(
apollo
::
common
::
VehicleConfigHelper
::
Instance
()
->
GetConfig
()
.
vehicle_param
()
);
apollo
::
common
::
VehicleParam
vehicle_params_
=
apollo
::
common
::
VehicleConfigHelper
::
Instance
()
->
GetConfig
()
.
vehicle_param
(
);
// get the console in raw mode
tcgetattr
(
kfd_
,
&
cooked_
);
...
...
modules/canbus/vehicle/vehicle_controller.cc
浏览文件 @
46ae1c26
...
...
@@ -97,8 +97,7 @@ ErrorCode VehicleController::Update(const ControlCommand &command) {
return
ErrorCode
::
CANBUS_ERROR
;
}
ControlCommand
control_command
;
control_command
.
CopyFrom
(
command
);
ControlCommand
control_command
=
command
;
// Execute action to transform driving mode
if
(
control_command
.
has_pad_msg
()
&&
control_command
.
pad_msg
().
has_action
())
{
...
...
modules/control/control_component.cc
浏览文件 @
46ae1c26
...
...
@@ -232,8 +232,7 @@ Status ControlComponent::ProduceControlCommand(
local_view_
.
trajectory
().
header
());
if
(
local_view_
.
trajectory
().
is_replan
())
{
latest_replan_trajectory_header_
.
CopyFrom
(
local_view_
.
trajectory
().
header
());
latest_replan_trajectory_header_
=
local_view_
.
trajectory
().
header
();
}
if
(
latest_replan_trajectory_header_
.
has_sequence_num
())
{
...
...
modules/perception/camera/test/camera_lib_obstacle_detector_yolo_yolo_obstacle_detector_test.cc
浏览文件 @
46ae1c26
...
...
@@ -146,8 +146,7 @@ TEST(YoloCameraDetectorTest, inference_init_test) {
GetAbsolutePath
(
init_options
.
root_dir
,
init_options
.
conf_file
);
yolo
::
YoloParam
yolo_param
;
cyber
::
common
::
GetProtoFromFile
(
config_path
,
&
yolo_param
);
yolo
::
YoloParam
origin_yolo_param
;
origin_yolo_param
.
CopyFrom
(
yolo_param
);
yolo
::
YoloParam
origin_yolo_param
=
yolo_param
;
yolo_param
.
mutable_model_param
()
->
set_model_type
(
"Unknownnet"
);
{
...
...
modules/perception/inference/tensorrt/rt_common.cc
浏览文件 @
46ae1c26
...
...
@@ -50,8 +50,7 @@ void ParseNetParam(const NetParameter &net_param,
std
::
map
<
std
::
string
,
std
::
string
>
*
tensor_modify_map
,
std
::
vector
<
LayerParameter
>
*
order
)
{
for
(
int
i
=
0
;
i
<
net_param
.
layer_size
();
++
i
)
{
LayerParameter
tensorrt_layer_param
;
tensorrt_layer_param
.
CopyFrom
(
net_param
.
layer
(
i
));
LayerParameter
tensorrt_layer_param
=
net_param
.
layer
(
i
);
if
(
tensorrt_layer_param
.
type
()
==
"Input"
)
{
InputParameter
input
=
tensorrt_layer_param
.
input_param
();
nvinfer1
::
DimsCHW
dims
{
static_cast
<
int
>
(
input
.
shape
(
0
).
dim
(
1
)),
...
...
@@ -69,8 +68,7 @@ void ParseNetParam(const NetParameter &net_param,
order
->
push_back
(
tensorrt_layer_param
);
continue
;
}
LayerParameter
fake_layer_param
;
fake_layer_param
.
CopyFrom
(
tensorrt_layer_param
);
LayerParameter
fake_layer_param
=
tensorrt_layer_param
;
fake_layer_param
.
set_type
(
"Padding"
);
fake_layer_param
.
set_name
(
absl
::
StrCat
(
"padding_split_"
,
i
));
fake_layer_param
.
clear_pooling_param
();
...
...
modules/planning/scenarios/bare_intersection/unprotected/bare_intersection_unprotected_scenario.cc
浏览文件 @
46ae1c26
...
...
@@ -111,8 +111,7 @@ bool BareIntersectionUnprotectedScenario::GetScenarioConfig() {
AERROR
<<
"miss scenario specific config"
;
return
false
;
}
context_
.
scenario_config
.
CopyFrom
(
config_
.
bare_intersection_unprotected_config
());
context_
.
scenario_config
=
config_
.
bare_intersection_unprotected_config
();
return
true
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录