fixed save 10 image

This commit is contained in:
Joe Dong
2024-01-29 10:17:36 +08:00
parent 43718821f7
commit 5685fa0c7a
3 changed files with 6 additions and 3 deletions
@@ -396,6 +396,7 @@ class OBCameraNode {
bool enable_d2c_viewer_ = false;
std::unique_ptr<D2CViewer> d2c_viewer_ = nullptr;
std::map<stream_index_pair, std::atomic_bool> save_images_;
std::map<stream_index_pair, int> save_images_count_;
std::atomic_bool save_point_cloud_{false};
std::atomic_bool save_colored_point_cloud_{false};
rclcpp::Service<std_srvs::srv::Empty>::SharedPtr save_images_srv_;