#include <ros_stream_subscription_installer.h>
Public Member Functions | |
RosStreamSubscriptionInstaller (ros::NodeHandle &handle) | |
void | set_stream_manager (KinesisStreamManagerInterface *stream_manager) |
virtual bool | SetDefaultCallbacks () |
bool | SetupImageTransport (const ImageTransportCallbackFn callback) |
bool | SetupKinesisVideoFrameTransport (const KinesisVideoFrameTransportCallbackFn callback) |
bool | SetupRekognitionEnabledKinesisVideoFrameTransport (const RekognitionEnabledKinesisVideoFrameTransportCallbackFn callback) |
void | Uninstall (const std::string &topic_name) override |
Public Member Functions inherited from Aws::Kinesis::StreamSubscriptionInstaller | |
virtual KinesisManagerStatus | Install (const StreamSubscriptionDescriptor &descriptor) const |
StreamSubscriptionInstaller ()=default | |
virtual | ~StreamSubscriptionInstaller ()=default |
Private Attributes | |
ros::NodeHandle * | handle_ |
std::vector< image_transport::Subscriber > | image_transport_subscribers_ |
std::map< std::string, ros::Publisher > | publishers_ |
std::vector< ros::Subscriber > | standard_subscribers_ |
Aws::Kinesis::KinesisStreamManagerInterface * | stream_manager_ |
Additional Inherited Members | |
Protected Attributes inherited from Aws::Kinesis::StreamSubscriptionInstaller | |
std::map< KinesisStreamInputType, SubscriberSetupFn > | installers_ |
Sets up subscriptions for ROS topics, supporting image transport and KinesisVideoFrame.
Definition at line 56 of file ros_stream_subscription_installer.h.
|
inline |
Definition at line 59 of file ros_stream_subscription_installer.h.
|
inline |
Updates the pointer to the stream manager which will be passed along to subscription callback functions.
stream_manager |
Definition at line 118 of file ros_stream_subscription_installer.h.
|
inlinevirtual |
Initializes the subscription installer with the default callbacks defined at subscriber_callbacks.h. Alternatively, the individual Setup* functions can be called to use custom callbacks.
Definition at line 70 of file ros_stream_subscription_installer.h.
bool Aws::Kinesis::RosStreamSubscriptionInstaller::SetupImageTransport | ( | const ImageTransportCallbackFn | callback | ) |
Subscriber installation for sensor_msgs::Image
callback |
Definition at line 22 of file ros_stream_subscription_installer.cpp.
bool Aws::Kinesis::RosStreamSubscriptionInstaller::SetupKinesisVideoFrameTransport | ( | const KinesisVideoFrameTransportCallbackFn | callback | ) |
Subscriber installation for kinesis_video_msgs::KinesisVideoFrame
callback |
Definition at line 44 of file ros_stream_subscription_installer.cpp.
bool Aws::Kinesis::RosStreamSubscriptionInstaller::SetupRekognitionEnabledKinesisVideoFrameTransport | ( | const RekognitionEnabledKinesisVideoFrameTransportCallbackFn | callback | ) |
|
overridevirtual |
Shuts down all ROS subscribers for topic_name.
topic_name |
Implements Aws::Kinesis::StreamSubscriptionInstaller.
Definition at line 97 of file ros_stream_subscription_installer.cpp.
|
private |
Definition at line 125 of file ros_stream_subscription_installer.h.
|
private |
Definition at line 127 of file ros_stream_subscription_installer.h.
|
private |
Definition at line 128 of file ros_stream_subscription_installer.h.
|
private |
Definition at line 126 of file ros_stream_subscription_installer.h.
|
private |
Definition at line 124 of file ros_stream_subscription_installer.h.