Converts audio data from ROS bag files to MP3 format.
This Python script extracts audio data from ROS bag files, specifically from messages of type audio_common_msgs/AudioData
, and saves them into MP3 files. The script is designed to be a helpful tool for working with ROS bag files containing audio data.
- Extracts audio data from specified ROS bag file and topic.
- Converts the audio data to a valid MP3 file.
- Simple and easy to use.
- Python 3
- ROS (Robot Operating System)
rosbag
Python package
python rosbag_to_mp3.py -source <bag_file_path> -topic <audio_topic_name> -output <output_mp3_file_path>
Feel free to contribute to the project by opening issues or submitting pull requests.
This project is licensed under the MIT License.