39 #ifndef OPENNI_CAMERA_DRIVER_H 40 #define OPENNI_CAMERA_DRIVER_H 46 #include <boost/thread.hpp> 50 #include <dynamic_reconfigure/server.h> 51 #include <freenect_camera/FreenectConfig.h> 90 void configCb(Config &config, uint32_t level);
sensor_msgs::CameraInfoPtr getDepthCameraInfo(const ImageBuffer &image, ros::Time time) const
boost::shared_ptr< diagnostic_updater::Updater > diagnostic_updater_
bool enable_rgb_diagnostics_
diagnostic_updater::HeaderlessTopicDiagnostic TopicDiagnostic
bool libfreenect_debug_
enable libfreenect debugging
ros::Publisher pub_projector_info_
OutputMode mapConfigMode2OutputMode(int mode) const
sensor_msgs::CameraInfoPtr getIrCameraInfo(const ImageBuffer &image, ros::Time time) const
int mapMode2ConfigMode(const OutputMode &output_mode) const
void stopSynchronization()
diagnostic_updater::FrequencyStatusParam FrequencyStatusParam
ros::Timer watch_dog_timer_
void publishIrImage(const ImageBuffer &ir, ros::Time time) const
virtual void onInit()
Nodelet initialization routine.
boost::mutex counter_mutex_
void watchDog(const ros::TimerEvent &event)
image_transport::CameraPublisher pub_ir_
image_transport::CameraPublisher pub_rgb_
boost::shared_ptr< camera_info_manager::CameraInfoManager > rgb_info_manager_
Camera info manager objects.
std::map< int, OutputMode > config2mode_map_
boost::mutex connect_mutex_
bool enable_depth_diagnostics_
freenect_resolution OutputMode
boost::shared_ptr< camera_info_manager::CameraInfoManager > ir_info_manager_
sensor_msgs::CameraInfoPtr getProjectorCameraInfo(const ImageBuffer &image, ros::Time time) const
double depth_ir_offset_y_
void startSynchronization()
sensor_msgs::CameraInfoPtr getDefaultCameraInfo(int width, int height, double f) const
Holds an image buffer with all the metadata required to transmit the image over ROS channels...
dynamic_reconfigure::Server< Config > ReconfigureServer
sensor_msgs::CameraInfoPtr getRgbCameraInfo(const ImageBuffer &image, ros::Time time) const
boost::shared_ptr< FreenectDevice > device_
the actual openni device
boost::thread init_thread_
double depth_ir_offset_x_
TopicDiagnosticPtr pub_rgb_freq_
void checkFrameCounters()
boost::shared_ptr< TopicDiagnostic > TopicDiagnosticPtr
TopicDiagnosticPtr pub_ir_freq_
ros::Time rgb_time_stamp_
image_transport::CameraPublisher pub_depth_
void publishDepthImage(const ImageBuffer &depth, ros::Time time) const
void publishRgbImage(const ImageBuffer &image, ros::Time time) const
std::string rgb_frame_id_
void rgbCb(const ImageBuffer &image, void *cookie)
void irCb(const ImageBuffer &_image, void *cookie)
boost::thread diagnostics_thread_
void depthCb(const ImageBuffer &depth_image, void *cookie)
TopicDiagnosticPtr pub_depth_freq_
ros::Time depth_time_stamp_
std::map< OutputMode, int > mode2config_map_
image_transport::CameraPublisher pub_depth_registered_
double time_out_
timeout value in seconds to throw TIMEOUT exception
void configCb(Config &config, uint32_t level)
bool enable_ir_diagnostics_
std::string depth_frame_id_
boost::shared_ptr< ReconfigureServer > reconfigure_server_
reconfigure server