Main Page
Namespaces
Classes
Files
File List
File Members
src
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>
19
#include <
aws_ros1_common/sdk_utils/logging/aws_ros_logger.h
>
20
#include <
ros/ros.h
>
21
#include <
s3_common/s3_upload_manager.h
>
22
#include <
s3_file_uploader/s3_file_uploader.h
>
23
24
using
Aws::S3::S3FileUploader
;
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
}
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
Aws::S3::S3FileUploader::Spin
void Spin()
Definition:
s3_file_uploader.cpp:84
options
options
ros.h
s3_file_uploader.h
Aws::S3::S3FileUploader
Definition:
s3_file_uploader.h:32
s3_upload_manager.h
aws_ros_logger.h
kNodeName
constexpr char kNodeName[]
Definition:
main.cpp:26
main
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