video_streamer_vlc
Streamer.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Streamer.hpp */
2 
3 #ifndef VIDEO_STREAMER_VLC_STREAMER_TASK_HPP
4 #define VIDEO_STREAMER_VLC_STREAMER_TASK_HPP
5 
6 #include "video_streamer_vlc/StreamerBase.hpp"
7 #include "opencv2/opencv.hpp"
8 #include "frame_helper/FrameHelper.h"
9 #include "video_streamer_vlc/VlcStream.hpp"
10 
11 
12 namespace video_streamer_vlc {
13 
29  struct PortHelper{
30  RTT::InputPort< ::RTT::extras::ReadOnlyPointer< ::base::samples::frame::Frame > > *port;
31  VlcStream *streamer;
33  };
34 
35  class Streamer : public StreamerBase
36  {
37  friend class StreamerBase;
38  protected:
39  RTT::extras::ReadOnlyPointer<base::samples::frame::Frame> current_image_;
40  frame_helper::FrameHelper frame_helper;
41  base::samples::frame::Frame rgb_image;
42 
43  virtual bool createInput(::video_streamer_vlc::PortConfig const & config);
44 
45  std::vector<PortHelper> my_ports;
46  public:
51  Streamer(std::string const& name = "video_streamer_vlc::Streamer");
52 
58  Streamer(std::string const& name, RTT::ExecutionEngine* engine);
59 
62  ~Streamer();
63 
78  bool configureHook();
79 
85  bool startHook();
86 
101  void updateHook();
102 
109  void errorHook();
110 
114  void stopHook();
115 
120  void cleanupHook();
121  };
122 }
123 
124 #endif
125 
Definition: Capturer.hpp:9
frame_helper::FrameHelper frame_helper
Definition: Streamer.hpp:40
The task context provides and requires services. It uses an ExecutionEngine to perform its functions...
Definition: Streamer.hpp:35
base::samples::frame::Frame rgb_image
Definition: Streamer.hpp:41
Definition: VLCConfig.hpp:76
Definition: Streamer.hpp:29
RTT::InputPort< ::RTT::extras::ReadOnlyPointer< ::base::samples::frame::Frame > > * port
Definition: Streamer.hpp:30
RTT::extras::ReadOnlyPointer< base::samples::frame::Frame > current_image_
Definition: Streamer.hpp:39
PortConfig config
Definition: Streamer.hpp:32
VlcStream * streamer
Definition: Streamer.hpp:31
std::vector< PortHelper > my_ports
Definition: Streamer.hpp:45