fixed save image counter

This commit is contained in:
Joe Dong
2024-01-30 11:21:18 +08:00
parent 3dc1080376
commit 754e2eae53
3 changed files with 26 additions and 12 deletions
@@ -397,6 +397,7 @@ class OBCameraNode {
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_;
int max_save_images_count_ = 10;
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_;