naoqidriver
Public Member Functions | Private Types | Private Attributes
naoqi::converter::CameraConverter Class Reference

#include <camera.hpp>

Inheritance diagram for naoqi::converter::CameraConverter:
naoqi::converter::BaseConverter< CameraConverter >

Public Member Functions

 CameraConverter (const std::string &name, const float &frequency, const qi::SessionPtr &session, const int &camera_source, const int &resolution)
 
 ~CameraConverter ()
 
void reset ()
 
void registerCallback (const message_actions::MessageAction action, Callback_t cb)
 
void callAll (const std::vector< message_actions::MessageAction > &actions)
 
- Public Member Functions inherited from naoqi::converter::BaseConverter< CameraConverter >
 BaseConverter (const std::string &name, float frequency, qi::SessionPtr session)
 
virtual ~BaseConverter ()
 
std::string name () const
 
float frequency () const
 

Private Types

typedef boost::function< void(sensor_msgs::ImagePtr, sensor_msgs::CameraInfo)> Callback_t
 

Private Attributes

std::map< message_actions::MessageAction, Callback_tcallbacks_
 
qi::AnyObject p_video_
 
int camera_source_
 
int resolution_
 
int colorspace_
 
std::string handle_
 
std::string msg_colorspace_
 
int cv_mat_type_
 
std::string msg_frameid_
 
sensor_msgs::CameraInfo camera_info_
 
sensor_msgs::ImagePtr msg_
 

Additional Inherited Members

- Protected Attributes inherited from naoqi::converter::BaseConverter< CameraConverter >
std::string name_
 
float frequency_
 
const robot::Robotrobot_
 
qi::SessionPtr session_
 
bool record_enabled_
 

Member Typedef Documentation

typedef boost::function<void(sensor_msgs::ImagePtr, sensor_msgs::CameraInfo)> naoqi::converter::CameraConverter::Callback_t
private

Constructor & Destructor Documentation

naoqi::converter::CameraConverter::CameraConverter ( const std::string &  name,
const float &  frequency,
const qi::SessionPtr &  session,
const int &  camera_source,
const int &  resolution 
)
naoqi::converter::CameraConverter::~CameraConverter ( )

Member Function Documentation

void naoqi::converter::CameraConverter::callAll ( const std::vector< message_actions::MessageAction > &  actions)
void naoqi::converter::CameraConverter::registerCallback ( const message_actions::MessageAction  action,
Callback_t  cb 
)
void naoqi::converter::CameraConverter::reset ( )

Field Documentation

std::map<message_actions::MessageAction, Callback_t> naoqi::converter::CameraConverter::callbacks_
private
sensor_msgs::CameraInfo naoqi::converter::CameraConverter::camera_info_
private
int naoqi::converter::CameraConverter::camera_source_
private
int naoqi::converter::CameraConverter::colorspace_
private
int naoqi::converter::CameraConverter::cv_mat_type_
private
std::string naoqi::converter::CameraConverter::handle_
private
sensor_msgs::ImagePtr naoqi::converter::CameraConverter::msg_
private
std::string naoqi::converter::CameraConverter::msg_colorspace_
private
std::string naoqi::converter::CameraConverter::msg_frameid_
private
qi::AnyObject naoqi::converter::CameraConverter::p_video_
private

VideoDevice (Proxy) configurations

int naoqi::converter::CameraConverter::resolution_
private

The documentation for this class was generated from the following files: