image_recognition_rqt.folder_image_publisher¶
Classes¶
FolderImagePublisherPlugin class that publishes images from a folder |
Functions¶
|
Find files that match one of the patterns in a directory. We return an iterator that provides a file path string |
Module Contents¶
- image_recognition_rqt.folder_image_publisher.find_files(directory, patterns)¶
Find files that match one of the patterns in a directory. We return an iterator that provides a file path string
- Parameters:
directory – Directory to index
patterns – Patterns list, e.g. [’.jpg’, ‘.png’]
- class image_recognition_rqt.folder_image_publisher.FolderImagePublisherPlugin(context)¶
Bases:
qt_gui.plugin.Plugin
FolderImagePublisherPlugin class that publishes images from a folder
- Parameters:
context – QT context, aka parent
- _widget¶
- _info¶
- _left_button¶
- _right_button¶
- _pub¶
- _bridge¶
- _files¶
- trigger_configuration()¶
Callback when the configuration button is clicked
- _index_image_files(directory)¶
Index all images in the specified directory
- Parameters:
directory – Directory to index
- _publish_image()¶
Publish the first image from the deque
- _rotate_and_publish(rotate_arg)¶
Rotate the files deque and publish an image over the topic
- Parameters:
rotate_arg – Rotate steps and direction