imu_data.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_SENSOR_IMU_DATA_H_
18 #define CARTOGRAPHER_SENSOR_IMU_DATA_H_
19 
20 #include "Eigen/Core"
22 #include "cartographer/sensor/proto/sensor.pb.h"
23 
24 namespace cartographer {
25 namespace sensor {
26 
27 struct ImuData {
29  Eigen::Vector3d linear_acceleration;
30  Eigen::Vector3d angular_velocity;
31 };
32 
33 // Converts 'imu_data' to a proto::ImuData.
34 proto::ImuData ToProto(const ImuData& imu_data);
35 
36 // Converts 'proto' to an ImuData.
37 ImuData FromProto(const proto::ImuData& proto);
38 
39 } // namespace sensor
40 } // namespace cartographer
41 
42 #endif // CARTOGRAPHER_SENSOR_IMU_DATA_H_
proto::FixedFramePoseData ToProto(const FixedFramePoseData &pose_data)
FixedFramePoseData FromProto(const proto::FixedFramePoseData &proto)
UniversalTimeScaleClock::time_point Time
Definition: time.h:44
Eigen::Vector3d angular_velocity
Definition: imu_data.h:30
Eigen::Vector3d linear_acceleration
Definition: imu_data.h:29


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