trajectory_node.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 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_MAPPING_TRAJECTORY_NODE_H_
18 #define CARTOGRAPHER_MAPPING_TRAJECTORY_NODE_H_
19 
20 #include <memory>
21 #include <vector>
22 
23 #include "Eigen/Core"
26 #include "cartographer/mapping/proto/trajectory_node_data.pb.h"
29 
30 namespace cartographer {
31 namespace mapping {
32 
37  };
38  // The node pose in the global SLAM frame.
40 
42 };
43 
45  struct Data {
47 
48  // Transform to approximately gravity align the tracking frame as
49  // determined by local SLAM.
50  Eigen::Quaterniond gravity_alignment;
51 
52  // Used for loop closure in 2D: voxel filtered returns in the
53  // 'gravity_alignment' frame.
55 
56  // Used for loop closure in 3D.
60 
61  // The node pose in the local SLAM frame.
63  };
64 
65  common::Time time() const { return constant_data->time; }
66 
67  // This must be a shared_ptr. If the data is used for visualization while the
68  // node is being trimmed, it must survive until all use finishes.
69  std::shared_ptr<const Data> constant_data;
70 
71  // The node pose in the global SLAM frame.
73 };
74 
75 proto::TrajectoryNodeData ToProto(const TrajectoryNode::Data& constant_data);
76 TrajectoryNode::Data FromProto(const proto::TrajectoryNodeData& proto);
77 
78 } // namespace mapping
79 } // namespace cartographer
80 
81 #endif // CARTOGRAPHER_MAPPING_TRAJECTORY_NODE_H_
PoseGraph::Constraint::Tag FromProto(const proto::PoseGraph::Constraint::Tag &proto)
Definition: pose_graph.cc:38
std::shared_ptr< const Data > constant_data
UniversalTimeScaleClock::time_point Time
Definition: time.h:44
std::vector< Eigen::Vector3f > PointCloud
Definition: point_cloud.h:32
common::optional< ConstantPoseData > constant_pose_data
proto::MapLimits ToProto(const MapLimits &map_limits)
Definition: map_limits.h:92


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