<fix> Avoid adding high frequency odom data for recorddata functionality
This commit is contained in:
@@ -16,7 +16,7 @@ This driver package provides core functionality for point cloud SLAM application
|
|||||||
|
|
||||||
## 1. Version
|
## 1. Version
|
||||||
|
|
||||||
Current Version: v0.5.0
|
Current Version: v0.5.1
|
||||||
|
|
||||||
## 2. Preparation
|
## 2. Preparation
|
||||||
|
|
||||||
|
|||||||
@@ -1020,7 +1020,7 @@ void process_pair(const ImageConstPtr &rgb_msg, const PointCloud2ConstPtr &pcd_m
|
|||||||
msg.pose.pose.orientation.w = static_cast<double>(odom_data->orient[3]) / 1e6;
|
msg.pose.pose.orientation.w = static_cast<double>(odom_data->orient[3]) / 1e6;
|
||||||
|
|
||||||
// Enqueue binary logging for pose
|
// Enqueue binary logging for pose
|
||||||
if (data_logger_) {
|
if (!is_highfreq && data_logger_) {
|
||||||
const uint32_t idx_now = pose_index_.fetch_add(1, std::memory_order_relaxed);
|
const uint32_t idx_now = pose_index_.fetch_add(1, std::memory_order_relaxed);
|
||||||
const double ts_sec = static_cast<double>(odom_data->timestamp_ns) / 1e9;
|
const double ts_sec = static_cast<double>(odom_data->timestamp_ns) / 1e9;
|
||||||
float pose_arr[7];
|
float pose_arr[7];
|
||||||
|
|||||||
Reference in New Issue
Block a user