Skip to content

chaz1942/RosImageFolderPublisher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ROS Image Publisher

This node publishes all the images contained in an specified folder, in the specified topic. The images will be published in BGR8 format.

Setup

  1. Clone this repo git clone https://github.com/amc-nu/RosImageFolderPublisher
  2. Change to repo dir cd RosImageFolderPublisher
  3. Execute catkin_make
  4. 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.

How to Launch

Once in a sourced terminal, execute: rosrun image_folder_publisher image_folder_publisher.py

Params

Param name Type Description Default Value
topic_name String Name of the topic to publish the image stream image_raw
publish_rate Integer Frame rate in Hz to publish the image. 10
sort_files Boolean Defines if the files will be sorted before publishing True
frame_id String Sets the frame_id contained in the Image message header camera
image_folder String Path to the folder containing the images to be published

Example

rosrun image_folder_publisher image_folder_publisher.py _image_folder:=/PATH/Images _topic_name:=/image_topic

Notes

  • 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.

About

ROS node to publish the images contained in an specified folder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.1%
  • CMake 11.9%