#include <aws_ros1_common/sdk_utils/ros1_node_parameter_reader.h>
#include <aws/core/utils/logging/AWSLogging.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <gtest/gtest.h>
#include <h264_encoder_core/h264_encoder.h>
#include <h264_encoder_core/h264_encoder_node_config.h>
#include <image_transport/image_transport.h>
#include <kinesis_video_msgs/KinesisImageMetadata.h>
#include <kinesis_video_msgs/KinesisVideoFrame.h>
#include <ros/ros.h>
#include <sensor_msgs/image_encodings.h>
Go to the source code of this file.
|
void | CreateImageMsg (sensor_msgs::ImagePtr &msg, int frame_num) |
|
void | Aws::Kinesis::ImageCallback (const sensor_msgs::ImageConstPtr &msg, const H264Encoder *encoder, uint64_t &frame_num, kinesis_video_msgs::KinesisImageMetadata &metadata, ros::Publisher &pub) |
|
void | Aws::Kinesis::InitializeCommunication (ros::NodeHandle &nh, ros::Subscriber &metadata_sub, image_transport::Subscriber &image_sub, ros::Publisher &pub, std::unique_ptr< H264Encoder > &encoder, uint64_t &frame_num, kinesis_video_msgs::KinesisImageMetadata &metadata, Aws::Client::Ros1NodeParameterReader ¶m_reader) |
|
void | Aws::Kinesis::InitializeEncoder (const sensor_msgs::ImageConstPtr &msg, std::unique_ptr< H264Encoder > &encoder, const Aws::Client::ParameterReaderInterface ¶m_reader) |
|
int | main (int argc, char **argv) |
|
static void | RainbowColor (const float h, uint8_t &r_out, uint8_t &g_out, uint8_t &b_out) |
|
| TEST_F (H264EncoderNodeSuite, EncoderInit) |
|
| TEST_F (H264EncoderNodeSuite, EncoderCallback) |
|
| TEST_F (H264EncoderNodeSuite, InitializeCommunicaiton) |
|
void CreateImageMsg |
( |
sensor_msgs::ImagePtr & |
msg, |
|
|
int |
frame_num |
|
) |
| |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
static void RainbowColor |
( |
const float |
h, |
|
|
uint8_t & |
r_out, |
|
|
uint8_t & |
g_out, |
|
|
uint8_t & |
b_out |
|
) |
| |
|
static |
constexpr int kBytesPerPixel = 3 |
|
static |
constexpr int kDefaultHeight = 308 |
|
static |
constexpr char kDefaultMetadataTopicName[] = "/image_metadata" |
|
static |
constexpr char kDefaultPublicationTopicName[] = "/video/encoded" |
|
static |
constexpr char kDefaultSubscriptionTopicName[] = "/raspicam_node/image" |
|
static |
constexpr int kDefaultWidth = 410 |
|
static |
constexpr int kNumTestFrames = 30 |