duration_recorder.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #pragma once
17 
20 #include <ros/ros.h>
21 #include <ros/spinner.h>
22 
23 #include <file_uploader_msgs/UploadFilesAction.h>
24 #include <recorder_msgs/DurationRecorderAction.h>
28 
29 namespace Aws {
30 namespace Rosbag {
31 
32 // Will contain option for deleting the rosbag after upload
34 {
35  uint64_t min_free_space_mib {0}; // minimum free disk space in mebibytes
36  std::string write_directory;
37  double upload_timeout_s {0};
39 };
40 
47 {
48 public:
50  explicit DurationRecorder(DurationRecorderOptions duration_recorder_options);
51  ~DurationRecorder() = default;
52 
53 private:
58  std::unique_ptr<Utils::RosbagRecorder<Utils::Recorder>> rosbag_recorder_;
59 
60 };
61 
62 } // namespace Rosbag
63 } // namespace Aws
std::unique_ptr< Utils::RosbagRecorder< Utils::Recorder > > rosbag_recorder_
S3FileUploaderSimpleActionClient upload_client_
DurationRecorderOptions duration_recorder_options_
DurationRecorderActionServer action_server_


rosbag_cloud_recorders
Author(s): AWS RoboMaker
autogenerated on Tue Jun 1 2021 02:51:27