Skip to content

Commit

Permalink
Map: Simple code clean of map data checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxq committed Jun 29, 2019
1 parent e67dd11 commit 2e8ad6f
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 82 deletions.
2 changes: 1 addition & 1 deletion modules/bridge/udp_bridge_receiver_component.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ bool UDPBridgeReceiverComponent<T>::RemoveInvalidBuf(uint32_t msg_id) {
return false;
}
typename std::vector<BridgeProtoDiserializedBuf<T> *>::iterator itor =
proto_list_.begin();
proto_list_.begin();
for (; itor != proto_list_.end();) {
if ((*itor)->GetMsgID() < msg_id) {
BridgeProtoDiserializedBuf<T> *tmp = *itor;
Expand Down
59 changes: 26 additions & 33 deletions modules/map/tools/map_datachecker/client/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
load("//tools:cpplint.bzl", "cpplint")


package(default_visibility = ["//visibility:public"])

cc_binary(
Expand All @@ -15,36 +14,36 @@ cc_library(
srcs = [
"main.cc",
],
deps = [
":client",
":client_gflags",
],
linkopts = [
"-lboost_filesystem",
"-lgrpc++",
],
deps = [
":client",
":client_gflags",
],
)

cc_library(
name = "client",
srcs = [
"client.cc"
"client.cc",
],
hdrs = [
"client.h",
"client_alignment.h",
],
linkopts = [
"-lboost_filesystem",
"-lgrpc++",
],
deps = [
":client_gflags",
":client_channel_checker",
":client_common",
":client_gflags",
":client_loops_check",
"//cyber",
"@yaml_cpp//:yaml",
"//cyber:cyber",
],
linkopts = [
"-lboost_filesystem",
"-lgrpc++",
],
)

Expand All @@ -56,18 +55,18 @@ cc_library(
hdrs = [
"client_channel_checker.h",
],
linkopts = [
"-lboost_filesystem",
"-lgrpc++",
],
deps = [
":client_gflags",
":client_common",
":client_gflags",
":exception_handler",
"//cyber:cyber",
"//cyber",
"//modules/map/tools/map_datachecker/proto:map_datachecker_grpc",
"@yaml_cpp//:yaml",
],
linkopts = [
"-lboost_filesystem",
"-lgrpc++",
],
)

cc_library(
Expand All @@ -78,13 +77,13 @@ cc_library(
hdrs = [
"client_common.h",
],
deps = [
"//cyber:cyber",
],
linkopts = [
"-lboost_filesystem",
"-lgrpc++",
],
deps = [
"//cyber",
],
)

cc_library(
Expand All @@ -98,9 +97,6 @@ cc_library(
deps = [
"//external:gflags",
],
linkopts = [

],
)

cc_library(
Expand All @@ -111,18 +107,18 @@ cc_library(
hdrs = [
"client_loops_check.h",
],
linkopts = [
"-lboost_filesystem",
"-lgrpc++",
],
deps = [
":client_common",
":client_gflags",
":exception_handler",
"//cyber:cyber",
"//cyber",
"//modules/map/tools/map_datachecker/proto:map_datachecker_grpc",
"@yaml_cpp//:yaml",
],
linkopts = [
"-lboost_filesystem",
"-lgrpc++",
],
)

cc_library(
Expand All @@ -135,12 +131,9 @@ cc_library(
],
deps = [
":client_common",
"//cyber:cyber",
"//cyber",
"//modules/map/tools/map_datachecker/proto:map_datachecker_proto",
],
linkopts = [

],
)

cpplint()
3 changes: 2 additions & 1 deletion modules/map/tools/map_datachecker/proto/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
load("//tools:cpplint.bzl", "cpplint")
load("//tools:grpc_library.bzl", "cc_grpc_library")

package(default_visibility = ["//visibility:public"])

cc_proto_library(
Expand Down Expand Up @@ -27,7 +28,7 @@ cc_grpc_library(
],
deps = [
":map_datachecker_proto_lib",
]
],
)

cpplint()
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto2";
package apollo.hdmap;

enum ErrorCode
enum ErrorCode
{
// common: x
SUCCESS = 0;
Expand Down
Loading

0 comments on commit 2e8ad6f

Please sign in to comment.