main.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 
16 #include <aws/core/Aws.h>
17 #include <aws/core/utils/logging/AWSLogging.h>
18 #include <aws/core/utils/logging/LogMacros.h>
20 #include <ros/ros.h>
23 
25 
26 constexpr char kNodeName[] = "s3_file_uploader";
27 
28 int main(int argc, char* argv[])
29 {
30  Aws::Utils::Logging::InitializeAWSLogging(
31  Aws::MakeShared<Aws::Utils::Logging::AWSROSLogger>(kNodeName));
32  Aws::SDKOptions options;
33  Aws::InitAPI(options);
34 
35  ros::init(argc, argv, kNodeName);
36 
37  AWS_LOGSTREAM_INFO(__func__, "Starting S3FileUploader node");
38 
39  S3FileUploader file_uploader;
40  file_uploader.Spin();
41 
42  Aws::ShutdownAPI(options);
43  Aws::Utils::Logging::ShutdownAWSLogging();
44  return 0;
45 }
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
options
constexpr char kNodeName[]
Definition: main.cpp:26
int main(int argc, char *argv[])
Definition: main.cpp:28


s3_file_uploader
Author(s): AWS RoboMaker
autogenerated on Tue Jun 1 2021 02:51:30