This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import rospy | |
| import os | |
| import cv2 | |
| from cv_bridge import CvBridge | |
| from sensor_msgs.msg import Image, CompressedImage | |
| class ImageAcquisitionNode: | |
| def __init__(self, topic, out_dir, n_images, interval): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import argparse | |
| import glob | |
| import subprocess | |
| import wave | |
| import cv2 | |
| import rosbag | |
| from cv_bridge import CvBridge |