Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
14a5f6a7
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,发现更多精彩内容 >>
提交
14a5f6a7
编写于
9月 12, 2018
作者:
J
Jiangtao Hu
提交者:
Liangliang Zhang
9月 12, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: fix lint test error.
上级
a5c09222
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
45 addition
and
20 deletion
+45
-20
modules/example/component_driver/BUILD
modules/example/component_driver/BUILD
+5
-1
modules/example/component_perception/BUILD
modules/example/component_perception/BUILD
+5
-1
modules/example/component_planning/BUILD
modules/example/component_planning/BUILD
+5
-1
modules/example/component_watchdog/BUILD
modules/example/component_watchdog/BUILD
+5
-1
modules/guardian/guardian_component.h
modules/guardian/guardian_component.h
+1
-0
modules/prediction/util/BUILD
modules/prediction/util/BUILD
+4
-0
modules/routing/common/routing_gflags.cc
modules/routing/common/routing_gflags.cc
+2
-1
modules/routing/routing.cc
modules/routing/routing.cc
+6
-6
modules/routing/routing.h
modules/routing/routing.h
+3
-2
modules/routing/routing_component.cc
modules/routing/routing_component.cc
+2
-2
modules/routing/routing_component.h
modules/routing/routing_component.h
+7
-5
未找到文件。
modules/example/component_driver/BUILD
浏览文件 @
14a5f6a7
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
package
(
default_visibility
=
[
"//visibility:public"
])
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library
...
...
@@ -19,3 +21,5 @@ cc_library(
],
copts
=
[
'-DMODULE_NAME=
\\
"driver
\\
"'
]
)
cpplint
()
modules/example/component_perception/BUILD
浏览文件 @
14a5f6a7
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
package
(
default_visibility
=
[
"//visibility:public"
])
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library
...
...
@@ -19,3 +21,5 @@ cc_library(
],
copts
=
[
'-DMODULE_NAME=
\\
"perception
\\
"'
]
)
cpplint
()
modules/example/component_planning/BUILD
浏览文件 @
14a5f6a7
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
package
(
default_visibility
=
[
"//visibility:public"
])
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library
...
...
@@ -16,3 +18,5 @@ cc_library(
deps
=
[
"//framework:cybertron"
],
copts
=
[
'-DMODULE_NAME=
\\
"planning
\\
"'
]
)
cpplint
()
modules/example/component_watchdog/BUILD
浏览文件 @
14a5f6a7
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
package
(
default_visibility
=
[
"//visibility:public"
])
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library
...
...
@@ -20,3 +22,5 @@ cc_library(
],
copts
=
[
'-DMODULE_NAME=
\\
"watchdog
\\
"'
]
)
cpplint
()
modules/guardian/guardian_component.h
浏览文件 @
14a5f6a7
...
...
@@ -22,6 +22,7 @@
#define MODEULES_GUARDIAN_GUARDIAN_COMPONENT_H_
#include <map>
#include <memory>
#include <mutex>
#include <queue>
#include <string>
...
...
modules/prediction/util/BUILD
浏览文件 @
14a5f6a7
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
package
(
default_visibility
=
[
"//visibility:public"
])
cc_library
(
...
...
@@ -14,3 +16,5 @@ cc_library(
"//framework:cybertron"
,
],
)
cpplint
()
modules/routing/common/routing_gflags.cc
浏览文件 @
14a5f6a7
...
...
@@ -16,7 +16,8 @@
#include "modules/routing/common/routing_gflags.h"
DEFINE_string
(
routing_conf_file
,
"/apollo/modules/routing/conf/routing_config.pb.txt"
,
DEFINE_string
(
routing_conf_file
,
"/apollo/modules/routing/conf/routing_config.pb.txt"
,
"default routing conf data file"
);
DEFINE_string
(
routing_node_name
,
"routing"
,
"the name for this node"
);
...
...
modules/routing/routing.cc
浏览文件 @
14a5f6a7
...
...
@@ -54,9 +54,9 @@ apollo::common::Status Routing::Start() {
"Navigator not ready"
);
}
AINFO
<<
"Routing service is ready."
;
//apollo::common::monitor::MonitorLogBuffer buffer(&monitor_logger_);
//buffer.INFO("Routing started");
// FIXME(all): migrate monitor log when it is ready.
//
apollo::common::monitor::MonitorLogBuffer buffer(&monitor_logger_);
//
buffer.INFO("Routing started");
return
apollo
::
common
::
Status
::
OK
();
}
...
...
@@ -95,15 +95,15 @@ bool Routing::Process(
RoutingResponse
*
const
routing_response
)
{
CHECK_NOTNULL
(
routing_response
);
AINFO
<<
"Get new routing request:"
<<
routing_request
->
DebugString
();
//apollo::common::monitor::MonitorLogBuffer buffer(&monitor_logger_);
//
apollo::common::monitor::MonitorLogBuffer buffer(&monitor_logger_);
const
auto
&
fixed_request
=
FillLaneInfoIfMissing
(
*
routing_request
);
if
(
!
navigator_ptr_
->
SearchRoute
(
fixed_request
,
routing_response
))
{
AERROR
<<
"Failed to search route with navigator."
;
//buffer.WARN("Routing failed! " + routing_response->status().msg());
//
buffer.WARN("Routing failed! " + routing_response->status().msg());
return
false
;
}
//buffer.INFO("Routing success!");
//
buffer.INFO("Routing success!");
return
true
;
}
...
...
modules/routing/routing.h
浏览文件 @
14a5f6a7
...
...
@@ -60,11 +60,12 @@ class Routing {
bool
Process
(
const
std
::
shared_ptr
<
RoutingRequest
>
&
routing_request
,
RoutingResponse
*
const
routing_response
);
private:
RoutingRequest
FillLaneInfoIfMissing
(
const
RoutingRequest
&
routing_request
);
private:
std
::
unique_ptr
<
Navigator
>
navigator_ptr_
;
//apollo::common::monitor::MonitorLogger monitor_logger_;
//
apollo::common::monitor::MonitorLogger monitor_logger_;
RoutingConfig
routing_conf_
;
const
hdmap
::
HDMap
*
hdmap_
=
nullptr
;
...
...
modules/routing/routing_component.cc
浏览文件 @
14a5f6a7
...
...
@@ -37,5 +37,5 @@ bool RoutingComponent::Proc(const std::shared_ptr<RoutingRequest>& request) {
}
}
// namespace routing
}
// nameps
ace apollo
}
// namesp
ace apollo
modules/routing/routing_component.h
浏览文件 @
14a5f6a7
...
...
@@ -17,6 +17,8 @@
#ifndef MODULES_ROUTING_ROUTING_COMPONENT_H_
#define MODULES_ROUTING_ROUTING_COMPONENT_H_
#include <memory>
#include "cybertron/class_loader/class_loader.h"
#include "cybertron/component/component.h"
...
...
@@ -25,7 +27,8 @@
namespace
apollo
{
namespace
routing
{
class
RoutingComponent
final
:
public
::
apollo
::
cybertron
::
Component
<
RoutingRequest
>
{
class
RoutingComponent
final
:
public
::
apollo
::
cybertron
::
Component
<
RoutingRequest
>
{
public:
RoutingComponent
()
=
default
;
~
RoutingComponent
()
=
default
;
...
...
@@ -41,8 +44,7 @@ class RoutingComponent final : public ::apollo::cybertron::Component<RoutingRequ
CYBERTRON_REGISTER_COMPONENT
(
RoutingComponent
)
}
// namespace routing
}
// namepsace apollo
}
// namespace apollo
#endif // MODULES_ROUTING_ROUTING_COMPONENT_H_
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录