file_utils.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 #pragma once
16 
17 #include <string>
18 #include <functional>
19 #include <ros/ros.h>
20 #include <rosbag/bag.h>
21 #include <rosbag/view.h>
22 
24 
25 namespace Aws
26 {
27 namespace Rosbag
28 {
29 namespace Utils
30 {
31 
39 bool ExpandAndCreateDir(const std::string & dir, std::string & expanded_dir);
40 
49 Aws::Rosbag::RecorderErrorCode DeleteFile(const std::string & file_path);
50 
57 ros::Time GetRosBagStartTime(const std::string& file_path);
58 
59 std::vector<std::string> GetRosbagsToUpload(const std::string& write_directory, const std::function<bool (rosbag::View&)>& select_file);
60 
61 } // namespace Utils
62 } // namespace Rosbag
63 } // namespace Aws
bool ExpandAndCreateDir(const std::string &dir, std::string &expanded_dir)
Definition: file_utils.cpp:57
ros::Time GetRosBagStartTime(const std::string &file_path)
Get the time a rosbag started.
Definition: file_utils.cpp:119
std::vector< std::string > GetRosbagsToUpload(const std::string &write_directory, const std::function< bool(rosbag::View &)> &select_file)
Definition: file_utils.cpp:181
Aws::Rosbag::RecorderErrorCode DeleteFile(const std::string &file_path)
delete a file
Definition: file_utils.cpp:93


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