18 #ifndef CONVERTER_CAMERA_HPP
19 #define CONVERTER_CAMERA_HPP
30 #include <image_transport/image_transport.h>
40 typedef boost::function<void(sensor_msgs::ImagePtr, sensor_msgs::CameraInfo)>
Callback_t;
43 CameraConverter(
const std::string&
name,
const float&
frequency,
const qi::SessionPtr& session,
const int& camera_source,
const int& resolution );
51 void callAll(
const std::vector<message_actions::MessageAction>& actions );
54 std::map<message_actions::MessageAction, Callback_t>
callbacks_;
70 sensor_msgs::ImagePtr
msg_;
std::string name() const
Definition: converter_base.hpp:54
float frequency() const
Definition: converter_base.hpp:59
Definition: camera.hpp:37
void callAll(const std::vector< message_actions::MessageAction > &actions)
Definition: camera.cpp:192
int resolution_
Definition: camera.hpp:59
MessageAction
Definition: message_actions.h:9
sensor_msgs::CameraInfo camera_info_
Definition: camera.hpp:69
int camera_source_
Definition: camera.hpp:58
void reset()
Definition: camera.cpp:169
std::string msg_frameid_
Definition: camera.hpp:68
~CameraConverter()
Definition: camera.cpp:159
int colorspace_
Definition: camera.hpp:60
Definition: converter_base.hpp:40
int cv_mat_type_
Definition: camera.hpp:66
void registerCallback(const message_actions::MessageAction action, Callback_t cb)
Definition: camera.cpp:187
boost::function< void(sensor_msgs::ImagePtr, sensor_msgs::CameraInfo)> Callback_t
Definition: camera.hpp:40
qi::AnyObject p_video_
Definition: camera.hpp:57
CameraConverter(const std::string &name, const float &frequency, const qi::SessionPtr &session, const int &camera_source, const int &resolution)
Definition: camera.cpp:123
std::string msg_colorspace_
Definition: camera.hpp:65
std::map< message_actions::MessageAction, Callback_t > callbacks_
Definition: camera.hpp:54
std::string handle_
Definition: camera.hpp:61
sensor_msgs::ImagePtr msg_
Definition: camera.hpp:70