提交 14a5f6a7 编写于 作者: J Jiangtao Hu 提交者: Liangliang Zhang

build: fix lint test error.

上级 a5c09222
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library
......@@ -18,4 +20,6 @@ cc_library(
"//framework:cybertron",
],
copts = ['-DMODULE_NAME=\\"driver\\"']
)
\ No newline at end of file
)
cpplint()
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library
......@@ -18,4 +20,6 @@ cc_library(
"//modules/example/component_driver/proto:driver_proto"
],
copts = ['-DMODULE_NAME=\\"perception\\"']
)
\ No newline at end of file
)
cpplint()
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library
......@@ -15,4 +17,6 @@ cc_library(
hdrs = ["planning_component.h"],
deps = ["//framework:cybertron"],
copts = ['-DMODULE_NAME=\\"planning\\"']
)
\ No newline at end of file
)
cpplint()
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library
......@@ -19,4 +21,6 @@ cc_library(
"//framework:cybertron"
],
copts = ['-DMODULE_NAME=\\"watchdog\\"']
)
\ No newline at end of file
)
cpplint()
......@@ -22,6 +22,7 @@
#define MODEULES_GUARDIAN_GUARDIAN_COMPONENT_H_
#include <map>
#include <memory>
#include <mutex>
#include <queue>
#include <string>
......
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()
......@@ -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");
......
......@@ -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;
}
......
......@@ -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;
......
......@@ -36,6 +36,6 @@ bool RoutingComponent::Proc(const std::shared_ptr<RoutingRequest>& request) {
return true;
}
} // namespace routing
} // namepsace apollo
} // namespace routing
} // namespace apollo
......@@ -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;
......@@ -40,9 +43,8 @@ class RoutingComponent final : public ::apollo::cybertron::Component<RoutingRequ
CYBERTRON_REGISTER_COMPONENT(RoutingComponent)
} // namespace routing
} // namepsace apollo
} // namespace routing
} // namespace apollo
#endif // MODULES_ROUTING_ROUTING_COMPONENT_H_
#endif // MODULES_ROUTING_ROUTING_COMPONENT_H_
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册