Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cloudwatch_metrics_collector/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ using Aws::CloudWatchMetrics::Utils::MetricsCollector;

int main(int argc, char * argv[])
{
Aws::SDKOptions options;
Aws::InitAPI(options);
int status = 0;
ros::init(argc, argv, kNodeName);
ros::NodeHandle node_handle;
Expand Down Expand Up @@ -124,5 +126,6 @@ int main(int argc, char * argv[])
metrics_collector.shutdown();
Aws::Utils::Logging::ShutdownAWSLogging();
ros::shutdown();
Aws::ShutdownAPI(options);
return status;
}