in h264_video_encoder/src/h264_video_encoder.cpp [161:188]
AwsError RunEncoderNode(int argc, char ** argv)
{
ros::init(argc, argv, "h264_video_encoder");
ros::NodeHandle nh("~");
Aws::Utils::Logging::InitializeAWSLogging(
Aws::MakeShared<Aws::Utils::Logging::AWSROSLogger>("h264_video_encoder"));
AWS_LOG_INFO(__func__, "Starting H264 Video Node...");
ros::Publisher pub;
image_transport::Subscriber image_sub;
ros::Subscriber metadata_sub;
std::unique_ptr<H264Encoder> encoder;
uint64_t frame_num = 0;
kinesis_video_msgs::KinesisImageMetadata metadata;
Aws::Client::Ros1NodeParameterReader param_reader;
InitializeCommunication(nh, metadata_sub, image_sub, pub,
encoder, frame_num, metadata, param_reader);
//
// run the node
//
ros::spin();
AWS_LOG_INFO(__func__, "Shutting down H264 Video Node...");
Aws::Utils::Logging::ShutdownAWSLogging();
return AWS_ERR_OK;
}