#include <theora_publisher.h>
Public Member Functions | |
virtual std::string | getTransportName () const |
TheoraPublisher () | |
virtual | ~TheoraPublisher () |
Protected Member Functions | |
virtual void | connectCallback (const ros::SingleSubscriberPublisher &pub) |
virtual void | publish (const sensor_msgs::Image &message, const message_transport::SimplePublisherPlugin< sensor_msgs::Image, theora_image_transport::Packet >::PublishFn &publish_fn) const |
Private Types | |
typedef theora_imagem_transport::TheoraPublisherConfig | Config |
typedef dynamic_reconfigure::Server < Config > | ReconfigureServer |
Private Member Functions | |
virtual void | advertiseImpl (ros::NodeHandle &nh, const std::string &base_topic, uint32_t queue_size, const message_transport::SingleSubscriberPublisher< sensor_msgs::Image >::StatusCB &user_connect_cb, const message_transport::SingleSubscriberPublisher< sensor_msgs::Image >::StatusCB &user_disconnect_cb, const ros::VoidPtr &tracked_object, bool latch) |
void | configCb (Config &config, uint32_t level) |
bool | ensureEncodingContext (const sensor_msgs::Image &image, const PublishFn &publish_fn) const |
void | oggPacketToMsg (const std_msgs::Header &header, const ogg_packet &oggpacket, theora_image_transport::Packet &msg) const |
void | updateKeyframeFrequency () const |
Private Attributes | |
th_info | encoder_setup_ |
boost::shared_ptr< th_enc_ctx > | encoding_context_ |
cv_bridge::CvImage | img_image_ |
ogg_uint32_t | keyframe_frequency_ |
boost::shared_ptr < ReconfigureServer > | reconfigure_server_ |
std::vector < theora_image_transport::Packet > | stream_header_ |
Definition at line 19 of file theora_publisher.h.
typedef theora_imagem_transport::TheoraPublisherConfig theora_imagem_transport::TheoraPublisher::Config [private] |
Definition at line 47 of file theora_publisher.h.
typedef dynamic_reconfigure::Server<Config> theora_imagem_transport::TheoraPublisher::ReconfigureServer [private] |
Definition at line 48 of file theora_publisher.h.
Definition at line 18 of file theora_publisher.cpp.
Definition at line 37 of file theora_publisher.cpp.
void theora_imagem_transport::TheoraPublisher::advertiseImpl | ( | ros::NodeHandle & | nh, |
const std::string & | base_topic, | ||
uint32_t | queue_size, | ||
const message_transport::SingleSubscriberPublisher< sensor_msgs::Image >::StatusCB & | user_connect_cb, | ||
const message_transport::SingleSubscriberPublisher< sensor_msgs::Image >::StatusCB & | user_disconnect_cb, | ||
const ros::VoidPtr & | tracked_object, | ||
bool | latch | ||
) | [private, virtual] |
Definition at line 43 of file theora_publisher.cpp.
void theora_imagem_transport::TheoraPublisher::configCb | ( | Config & | config, |
uint32_t | level | ||
) | [private] |
Definition at line 62 of file theora_publisher.cpp.
void theora_imagem_transport::TheoraPublisher::connectCallback | ( | const ros::SingleSubscriberPublisher & | pub | ) | [protected, virtual] |
Reimplemented from message_transport::SimplePublisherPlugin< sensor_msgs::Image, theora_image_transport::Packet >.
Definition at line 111 of file theora_publisher.cpp.
bool theora_imagem_transport::TheoraPublisher::ensureEncodingContext | ( | const sensor_msgs::Image & | image, |
const PublishFn & | publish_fn | ||
) | const [private] |
Definition at line 204 of file theora_publisher.cpp.
virtual std::string theora_imagem_transport::TheoraPublisher::getTransportName | ( | ) | const [inline, virtual] |
Implements message_transport::PublisherPluginGen.
Definition at line 26 of file theora_publisher.h.
void theora_imagem_transport::TheoraPublisher::oggPacketToMsg | ( | const std_msgs::Header & | header, |
const ogg_packet & | oggpacket, | ||
theora_image_transport::Packet & | msg | ||
) | const [private] |
Definition at line 245 of file theora_publisher.cpp.
void theora_imagem_transport::TheoraPublisher::publish | ( | const sensor_msgs::Image & | message, |
const message_transport::SimplePublisherPlugin< sensor_msgs::Image, theora_image_transport::Packet >::PublishFn & | publish_fn | ||
) | const [protected, virtual] |
Definition at line 127 of file theora_publisher.cpp.
void theora_imagem_transport::TheoraPublisher::updateKeyframeFrequency | ( | ) | const [private] |
Definition at line 257 of file theora_publisher.cpp.
th_info theora_imagem_transport::TheoraPublisher::encoder_setup_ [mutable, private] |
Definition at line 62 of file theora_publisher.h.
boost::shared_ptr<th_enc_ctx> theora_imagem_transport::TheoraPublisher::encoding_context_ [mutable, private] |
Definition at line 64 of file theora_publisher.h.
cv_bridge::CvImage theora_imagem_transport::TheoraPublisher::img_image_ [mutable, private] |
Definition at line 61 of file theora_publisher.h.
ogg_uint32_t theora_imagem_transport::TheoraPublisher::keyframe_frequency_ [mutable, private] |
Definition at line 63 of file theora_publisher.h.
boost::shared_ptr<ReconfigureServer> theora_imagem_transport::TheoraPublisher::reconfigure_server_ [private] |
Definition at line 49 of file theora_publisher.h.
std::vector<theora_image_transport::Packet> theora_imagem_transport::TheoraPublisher::stream_header_ [mutable, private] |
Definition at line 65 of file theora_publisher.h.