in rosbag_cloud_recorders/src/rolling_recorder/rolling_recorder.cpp [40:58]
bool RollingRecorder::ValidInputParam(Aws::Rosbag::RollingRecorderOptions rolling_recorder_options) {
if (rolling_recorder_options.bag_rollover_time.toSec() <= 0) {
AWS_LOG_ERROR(__func__, "bag_rollover_time must be a positive integer.");
return false;
}
if (rolling_recorder_options.max_record_time.toSec() <= 0) {
AWS_LOG_ERROR(__func__, "max_record_time must be a positive integer.");
return false;
}
if (rolling_recorder_options.bag_rollover_time.toSec() > rolling_recorder_options.max_record_time.toSec()) {
AWS_LOG_ERROR(__func__, "bag_rollover_time cannot be greater than max_record_time.");
return false;
}
if (rolling_recorder_options.upload_timeout_s <= 0) {
AWS_LOG_ERROR(__func__, "upload_timeout_s must be a positive number.");
return false;
}
return true;
}