duration_recorder.cpp
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 
18 #include <actionlib_msgs/GoalID.h>
19 #include <ros/ros.h>
20 
21 #include <recorder_msgs/DurationRecorderAction.h>
22 
27 
28 
29 namespace Aws
30 {
31 namespace Rosbag
32 {
33 
35 
37 {}
38 
40  duration_recorder_options_(std::move(duration_recorder_options)),
41  node_handle_("~"),
42  action_server_(node_handle_, "RosbagDurationRecord", false),
43  upload_client_("/s3_file_uploader/UploadFiles", true),
44  rosbag_recorder_(std::make_unique<Utils::RosbagRecorder<Utils::Recorder>>())
45 {
50  }
51  );
52 
56  }
57  );
59 }
60 
61 } // namespace Rosbag
62 } // namespace Aws
void registerGoalCallback(boost::function< void(GoalHandle)> cb)
static void DurationRecorderStart(Utils::RosbagRecorder< Utils::Recorder > &rosbag_recorder, const DurationRecorderOptions &duration_recorder_options, UploadClientT &upload_client, GoalHandleT &goal_handle)
void registerCancelCallback(boost::function< void(GoalHandle)> cb)
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