Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
record_audio
package to improve disk usage management and update configuration handling. The most important changes include adding disk usage checks before and during recording, loading configuration parameters from a YAML file, and updating the package metadata.Disk usage management improvements:
script/record_audio.py
: Added disk usage checks before starting a recording and during the recording process to ensure there is sufficient disk space. This includes calculating theoretical remaining space and stopping the recording if disk space is running out. [1] [2] [3] [4] [5]Configuration handling improvements:
config/default.yaml
: Added configuration parameters such asdevice
,folder_path
,format
,microphone_rate
,max_disk_usage
, andmax_disk_usage_recording
.launch/record_launch.launch
: Modified the launch file to load parameters from the YAML configuration file instead of defining them directly in the launch file.Package metadata update:
package.xml
: Updated the package version to0.1.0
and added an additional maintainer.