Remove empty leftover of pose_estimate.h (#740)

Follow-up of #670.
master
Michael Grupp 2017-12-07 08:53:04 +01:00 committed by Wally B. Feed
parent 5c694adf93
commit 176fc42c3f
6 changed files with 6 additions and 11 deletions

View File

@ -21,7 +21,6 @@
#include "cartographer/common/time.h" #include "cartographer/common/time.h"
#include "cartographer/internal/mapping/motion_filter.h" #include "cartographer/internal/mapping/motion_filter.h"
#include "cartographer/mapping/pose_estimate.h"
#include "cartographer/mapping/pose_extrapolator.h" #include "cartographer/mapping/pose_extrapolator.h"
#include "cartographer/mapping_2d/proto/local_trajectory_builder_options.pb.h" #include "cartographer/mapping_2d/proto/local_trajectory_builder_options.pb.h"
#include "cartographer/mapping_2d/scan_matching/ceres_scan_matcher.h" #include "cartographer/mapping_2d/scan_matching/ceres_scan_matcher.h"

View File

@ -21,7 +21,6 @@
#include "cartographer/common/time.h" #include "cartographer/common/time.h"
#include "cartographer/internal/mapping/motion_filter.h" #include "cartographer/internal/mapping/motion_filter.h"
#include "cartographer/mapping/pose_estimate.h"
#include "cartographer/mapping/pose_extrapolator.h" #include "cartographer/mapping/pose_extrapolator.h"
#include "cartographer/mapping_3d/proto/local_trajectory_builder_options.pb.h" #include "cartographer/mapping_3d/proto/local_trajectory_builder_options.pb.h"
#include "cartographer/mapping_3d/scan_matching/ceres_scan_matcher.h" #include "cartographer/mapping_3d/scan_matching/ceres_scan_matcher.h"

View File

@ -23,7 +23,6 @@
#include <vector> #include <vector>
#include "cartographer/common/time.h" #include "cartographer/common/time.h"
#include "cartographer/mapping/pose_estimate.h"
#include "cartographer/mapping/submaps.h" #include "cartographer/mapping/submaps.h"
#include "cartographer/sensor/fixed_frame_pose_data.h" #include "cartographer/sensor/fixed_frame_pose_data.h"
#include "cartographer/sensor/imu_data.h" #include "cartographer/sensor/imu_data.h"

View File

@ -25,7 +25,6 @@
#include "cartographer/common/make_unique.h" #include "cartographer/common/make_unique.h"
#include "cartographer/common/port.h" #include "cartographer/common/port.h"
#include "cartographer/common/time.h" #include "cartographer/common/time.h"
#include "cartographer/mapping/pose_estimate.h"
#include "cartographer/mapping/proto/trajectory_builder_options.pb.h" #include "cartographer/mapping/proto/trajectory_builder_options.pb.h"
#include "cartographer/mapping/submaps.h" #include "cartographer/mapping/submaps.h"
#include "cartographer/sensor/point_cloud.h" #include "cartographer/sensor/point_cloud.h"

View File

@ -51,8 +51,8 @@ class GetSumHandler
int sum_ = 0; int sum_ = 0;
}; };
class GetRunningSumHandler class GetRunningSumHandler : public RpcHandler<Stream<proto::GetSumRequest>,
: public RpcHandler<Stream<proto::GetSumRequest>, Stream<proto::GetSumResponse>> { Stream<proto::GetSumResponse>> {
public: public:
void OnRequest(const proto::GetSumRequest& request) override { void OnRequest(const proto::GetSumRequest& request) override {
sum_ += request.input(); sum_ += request.input();
@ -66,9 +66,7 @@ class GetRunningSumHandler
Send(std::move(response)); Send(std::move(response));
} }
void OnReadsDone() override { void OnReadsDone() override { Finish(::grpc::Status::OK); }
Finish(::grpc::Status::OK);
}
private: private:
int sum_ = 0; int sum_ = 0;
@ -98,7 +96,8 @@ class ServerTest : public ::testing::Test {
server_builder.SetNumberOfThreads(kNumThreads); server_builder.SetNumberOfThreads(kNumThreads);
server_builder.RegisterHandler<GetSumHandler, proto::Math>("GetSum"); server_builder.RegisterHandler<GetSumHandler, proto::Math>("GetSum");
server_builder.RegisterHandler<GetSquareHandler, proto::Math>("GetSquare"); server_builder.RegisterHandler<GetSquareHandler, proto::Math>("GetSquare");
server_builder.RegisterHandler<GetRunningSumHandler, proto::Math>("GetRunningSum"); server_builder.RegisterHandler<GetRunningSumHandler, proto::Math>(
"GetRunningSum");
server_ = server_builder.Build(); server_ = server_builder.Build();
client_channel_ = client_channel_ =
@ -123,7 +122,7 @@ TEST_F(ServerTest, ProcessRpcStreamTest) {
server_->Start(); server_->Start();
proto::GetSumResponse result; proto::GetSumResponse result;
std::unique_ptr<grpc::ClientWriter<proto::GetSumRequest> > writer( std::unique_ptr<grpc::ClientWriter<proto::GetSumRequest>> writer(
stub_->GetSum(&client_context_, &result)); stub_->GetSum(&client_context_, &result));
for (int i = 0; i < 3; ++i) { for (int i = 0; i < 3; ++i) {
proto::GetSumRequest request; proto::GetSumRequest request;