Fix stopIMU and startIMUSyncStream callback

This commit is contained in:
xiexun
2025-09-05 11:15:02 +08:00
parent 87994008ce
commit 5b47280625
2 changed files with 21 additions and 14 deletions
@@ -670,7 +670,7 @@ class OBCameraNode {
// IMU
std::map<stream_index_pair, rclcpp::Publisher<sensor_msgs::msg::Imu>::SharedPtr> imu_publishers_;
rclcpp::Publisher<sensor_msgs::msg::Imu>::SharedPtr imu_gyro_accel_publisher_;
bool imu_sync_output_start_ = false;
std::atomic_bool imu_sync_output_start_{false};
std::map<stream_index_pair, std::string> imu_rate_;
std::map<stream_index_pair, std::string> imu_range_;
std::map<stream_index_pair, std::string> imu_qos_;