pose_graph_stub.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 The Cartographer Authors
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef CARTOGRAPHER_CLOUD_INTERNAL_CLIENT_POSE_GRAPH_STUB_H_
18 #define CARTOGRAPHER_CLOUD_INTERNAL_CLIENT_POSE_GRAPH_STUB_H_
19 
21 #include "grpc++/grpc++.h"
22 
23 namespace cartographer {
24 namespace cloud {
25 
27  public:
28  PoseGraphStub(std::shared_ptr<::grpc::Channel> client_channel);
29 
30  PoseGraphStub(const PoseGraphStub&) = delete;
31  PoseGraphStub& operator=(const PoseGraphStub&) = delete;
32 
33  void RunFinalOptimization() override;
35  const override;
37  const override;
39  int trajectory_id) const override;
41  GetTrajectoryNodes() const override;
43  GetTrajectoryNodePoses() const override;
44  std::map<std::string, transform::Rigid3d> GetLandmarkPoses() const override;
45  void SetLandmarkPose(const std::string& landmark_id,
46  const transform::Rigid3d& global_pose) override;
47  bool IsTrajectoryFinished(int trajectory_id) const override;
48  bool IsTrajectoryFrozen(int trajectory_id) const override;
49  std::map<int, mapping::PoseGraphInterface::TrajectoryData> GetTrajectoryData()
50  const override;
51  std::vector<Constraint> constraints() const override;
52  mapping::proto::PoseGraph ToProto() const override;
54  GlobalSlamOptimizationCallback callback) override;
55 
56  private:
57  std::shared_ptr<::grpc::Channel> client_channel_;
58 };
59 
60 } // namespace cloud
61 } // namespace cartographer
62 
63 #endif // CARTOGRAPHER_CLOUD_INTERNAL_CLIENT_POSE_GRAPH_STUB_H_
transform::Rigid3d GetLocalToGlobalTransform(int trajectory_id) const override
bool IsTrajectoryFrozen(int trajectory_id) const override
PoseGraphStub & operator=(const PoseGraphStub &)=delete
std::vector< Constraint > constraints() const override
void SetGlobalSlamOptimizationCallback(GlobalSlamOptimizationCallback callback) override
std::function< void(const std::map< int, SubmapId > &, const std::map< int, NodeId > &)> GlobalSlamOptimizationCallback
std::map< std::string, transform::Rigid3d > GetLandmarkPoses() const override
std::map< int, mapping::PoseGraphInterface::TrajectoryData > GetTrajectoryData() const override
bool IsTrajectoryFinished(int trajectory_id) const override
mapping::MapById< mapping::NodeId, mapping::TrajectoryNodePose > GetTrajectoryNodePoses() const override
mapping::MapById< mapping::SubmapId, SubmapData > GetAllSubmapData() const override
PoseGraphStub(std::shared_ptr<::grpc::Channel > client_channel)
void SetLandmarkPose(const std::string &landmark_id, const transform::Rigid3d &global_pose) override
mapping::MapById< mapping::SubmapId, SubmapPose > GetAllSubmapPoses() const override
std::shared_ptr<::grpc::Channel > client_channel_
mapping::MapById< mapping::NodeId, mapping::TrajectoryNode > GetTrajectoryNodes() const override
mapping::proto::PoseGraph ToProto() const override


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:58