i have many pcd files which were collected in every scan of a lidar. I want to convert my pcd files into pointcloud2 format to use them as a rosbag. I saw the pcd_to_pointcloud from point cloud library, however it is only applicable to a single pcd file. How is it possible to iterate this code for multiple pcd files?
rosrun pcl_ros pcd_to_pointcloud <file.pcd> [ <interval> ]
Files are like scan1.pcd scan2.pcd scan3.pcd etc.
Thank you