This node publishes all the images contained in an specified folder, in the specified topic. The images will be published in BGR8 format.
- Clone this repo
git clone https://github.com/golizheh/RosImageFolderPublisher
- Change to repo dir
cd RosImageFolderPublisher
- Execute
catkin_make
- Source the workspace
source devel/setup.bash
If you want to integrate this into another catkin workspace, just copy the image_folder_publisher
into the src
target workspace.
Once in a sourced terminal, execute:
rosrun image_folder_publisher image_folder_publisher.py
rosrun image_folder_publisher image_folder_publisher.py _image_folder:=/PATH/Images _topic_name=/image_topic
- Invalid files will be skipped. The supported image formats will correspond to the ones supported by CvBridge and OpenCV.
- Publish Rate will depend on the speed of the Hard disk.