MCPcopy Create free account
hub / github.com/ISEE-Technology/CamVox / IntegrateGyr

Method IntegrateGyr

isee-preprocessing/src/data_process.cpp:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void ImuProcess::IntegrateGyr(const std::vector<sensor_msgs::Imu::ConstPtr> &v_imu)
45{
46 /// Reset gyr integrator
47 gyr_int_.Reset(last_lidar_->header.stamp.toSec(), last_imu_);
48 /// And then integrate all the imu measurements
49 for (const auto &imu : v_imu)
50 {
51 gyr_int_.Integrate(imu);
52 }
53 ROS_INFO("integrate rotation angle [x, y, z]: [%.2f, %.2f, %.2f]",
54 gyr_int_.GetRot().angleX() * 180.0 / M_PI,
55 gyr_int_.GetRot().angleY() * 180.0 / M_PI,
56 gyr_int_.GetRot().angleZ() * 180.0 / M_PI);
57}
58
59void ImuProcess::UndistortPcl(const PointCloudXYZI::Ptr &pcl_in_out,double dt_be, const Sophus::SE3d &Tbe)
60{

Callers

nothing calls this directly

Calls 6

IntegrateMethod · 0.80
angleXMethod · 0.80
GetRotMethod · 0.80
angleYMethod · 0.80
angleZMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected