#include <driver.h>
Classes | |
struct | modeComp |
Public Member Functions | |
virtual | ~DriverNodelet () |
Private Types | |
typedef OpenNIConfig | Config |
typedef dynamic_reconfigure::Server < Config > | ReconfigureServer |
Private Member Functions | |
void | checkFrameCounters () |
void | configCb (Config &config, uint32_t level) |
void | depthCb (boost::shared_ptr< openni_wrapper::DepthImage > depth_image, void *cookie) |
void | depthConnectCb () |
sensor_msgs::CameraInfoPtr | getDefaultCameraInfo (int width, int height, double f) const |
sensor_msgs::CameraInfoPtr | getDepthCameraInfo (int width, int height, ros::Time time) const |
sensor_msgs::CameraInfoPtr | getIrCameraInfo (int width, int height, ros::Time time) const |
sensor_msgs::CameraInfoPtr | getProjectorCameraInfo (int width, int height, ros::Time time) const |
sensor_msgs::CameraInfoPtr | getRgbCameraInfo (int width, int height, ros::Time time) const |
void | irCb (boost::shared_ptr< openni_wrapper::IRImage > ir_image, void *cookie) |
void | irConnectCb () |
XnMapOutputMode | mapConfigMode2XnMode (int mode) const |
int | mapXnMode2ConfigMode (const XnMapOutputMode &output_mode) const |
virtual void | onInit () |
Nodelet initialization routine. | |
void | onInitImpl () |
void | publishDepthImage (const openni_wrapper::DepthImage &depth, ros::Time time) const |
void | publishIrImage (const openni_wrapper::IRImage &ir, ros::Time time) const |
void | publishRgbImage (const openni_wrapper::Image &image, ros::Time time) const |
void | rgbCb (boost::shared_ptr< openni_wrapper::Image > image, void *cookie) |
void | rgbConnectCb () |
void | setupDevice () |
void | setupDeviceModes (int image_mode, int depth_mode) |
void | startSynchronization () |
void | stopSynchronization () |
void | updateModeMaps () |
void | watchDog (const ros::TimerEvent &event) |
Private Attributes | |
std::map< int, XnMapOutputMode > | config2xn_map_ |
Config | config_ |
bool | config_init_ |
boost::mutex | connect_mutex_ |
boost::mutex | counter_mutex_ |
int | depth_frame_counter_ |
std::string | depth_frame_id_ |
unsigned | depth_height_ |
double | depth_ir_offset_x_ |
double | depth_ir_offset_y_ |
unsigned | depth_width_ |
boost::shared_ptr < openni_wrapper::OpenNIDevice > | device_ |
the actual openni device | |
unsigned | image_height_ |
unsigned | image_width_ |
boost::thread | init_thread_ |
int | ir_frame_counter_ |
boost::shared_ptr < camera_info_manager::CameraInfoManager > | ir_info_manager_ |
image_transport::CameraPublisher | pub_depth_ |
image_transport::CameraPublisher | pub_depth_registered_ |
image_transport::CameraPublisher | pub_ir_ |
ros::Publisher | pub_projector_info_ |
image_transport::CameraPublisher | pub_rgb_ |
bool | publish_depth_ |
bool | publish_ir_ |
bool | publish_rgb_ |
boost::shared_ptr < ReconfigureServer > | reconfigure_server_ |
reconfigure server | |
int | rgb_frame_counter_ |
std::string | rgb_frame_id_ |
boost::shared_ptr < camera_info_manager::CameraInfoManager > | rgb_info_manager_ |
Camera info manager objects. | |
double | time_out_ |
timeout value in seconds to throw TIMEOUT exception | |
ros::Time | time_stamp_ |
ros::Timer | watch_dog_timer_ |
std::map< XnMapOutputMode, int, modeComp > | xn2config_map_ |
int | z_offset_mm_ |
double | z_scaling_ |
typedef OpenNIConfig openni_camera::DriverNodelet::Config [private] |
typedef dynamic_reconfigure::Server<Config> openni_camera::DriverNodelet::ReconfigureServer [private] |
openni_camera::DriverNodelet::~DriverNodelet | ( | ) | [virtual] |
Definition at line 62 of file driver.cpp.
void openni_camera::DriverNodelet::checkFrameCounters | ( | ) | [private] |
Definition at line 370 of file driver.cpp.
void openni_camera::DriverNodelet::configCb | ( | Config & | config, |
uint32_t | level | ||
) | [private] |
Definition at line 727 of file driver.cpp.
void openni_camera::DriverNodelet::depthCb | ( | boost::shared_ptr< openni_wrapper::DepthImage > | depth_image, |
void * | cookie | ||
) | [private] |
Definition at line 410 of file driver.cpp.
void openni_camera::DriverNodelet::depthConnectCb | ( | ) | [private] |
Definition at line 322 of file driver.cpp.
sensor_msgs::CameraInfoPtr openni_camera::DriverNodelet::getDefaultCameraInfo | ( | int | width, |
int | height, | ||
double | f | ||
) | const [private] |
Definition at line 609 of file driver.cpp.
sensor_msgs::CameraInfoPtr openni_camera::DriverNodelet::getDepthCameraInfo | ( | int | width, |
int | height, | ||
ros::Time | time | ||
) | const [private] |
Definition at line 698 of file driver.cpp.
sensor_msgs::CameraInfoPtr openni_camera::DriverNodelet::getIrCameraInfo | ( | int | width, |
int | height, | ||
ros::Time | time | ||
) | const [private] |
Definition at line 671 of file driver.cpp.
sensor_msgs::CameraInfoPtr openni_camera::DriverNodelet::getProjectorCameraInfo | ( | int | width, |
int | height, | ||
ros::Time | time | ||
) | const [private] |
Definition at line 716 of file driver.cpp.
sensor_msgs::CameraInfoPtr openni_camera::DriverNodelet::getRgbCameraInfo | ( | int | width, |
int | height, | ||
ros::Time | time | ||
) | const [private] |
Definition at line 644 of file driver.cpp.
void openni_camera::DriverNodelet::irCb | ( | boost::shared_ptr< openni_wrapper::IRImage > | ir_image, |
void * | cookie | ||
) | [private] |
Definition at line 435 of file driver.cpp.
void openni_camera::DriverNodelet::irConnectCb | ( | ) | [private] |
Definition at line 343 of file driver.cpp.
XnMapOutputMode openni_camera::DriverNodelet::mapConfigMode2XnMode | ( | int | mode | ) | const [private] |
Definition at line 910 of file driver.cpp.
int openni_camera::DriverNodelet::mapXnMode2ConfigMode | ( | const XnMapOutputMode & | output_mode | ) | const [private] |
Definition at line 897 of file driver.cpp.
void openni_camera::DriverNodelet::onInit | ( | ) | [private, virtual] |
Nodelet initialization routine.
Implements nodelet::Nodelet.
Definition at line 77 of file driver.cpp.
void openni_camera::DriverNodelet::onInitImpl | ( | ) | [private] |
Definition at line 96 of file driver.cpp.
void openni_camera::DriverNodelet::publishDepthImage | ( | const openni_wrapper::DepthImage & | depth, |
ros::Time | time | ||
) | const [private] |
Definition at line 527 of file driver.cpp.
void openni_camera::DriverNodelet::publishIrImage | ( | const openni_wrapper::IRImage & | ir, |
ros::Time | time | ||
) | const [private] |
Definition at line 586 of file driver.cpp.
void openni_camera::DriverNodelet::publishRgbImage | ( | const openni_wrapper::Image & | image, |
ros::Time | time | ||
) | const [private] |
Definition at line 459 of file driver.cpp.
void openni_camera::DriverNodelet::rgbCb | ( | boost::shared_ptr< openni_wrapper::Image > | image, |
void * | cookie | ||
) | [private] |
Definition at line 385 of file driver.cpp.
void openni_camera::DriverNodelet::rgbConnectCb | ( | ) | [private] |
Definition at line 289 of file driver.cpp.
void openni_camera::DriverNodelet::setupDevice | ( | ) | [private] |
Definition at line 213 of file driver.cpp.
void openni_camera::DriverNodelet::setupDeviceModes | ( | int | image_mode, |
int | depth_mode | ||
) | [private] |
void openni_camera::DriverNodelet::startSynchronization | ( | ) | [private] |
Definition at line 832 of file driver.cpp.
void openni_camera::DriverNodelet::stopSynchronization | ( | ) | [private] |
Definition at line 844 of file driver.cpp.
void openni_camera::DriverNodelet::updateModeMaps | ( | ) | [private] |
Definition at line 853 of file driver.cpp.
void openni_camera::DriverNodelet::watchDog | ( | const ros::TimerEvent & | event | ) | [private] |
Definition at line 922 of file driver.cpp.
std::map<int, XnMapOutputMode> openni_camera::DriverNodelet::config2xn_map_ [private] |
Config openni_camera::DriverNodelet::config_ [private] |
bool openni_camera::DriverNodelet::config_init_ [private] |
boost::mutex openni_camera::DriverNodelet::connect_mutex_ [private] |
boost::mutex openni_camera::DriverNodelet::counter_mutex_ [private] |
int openni_camera::DriverNodelet::depth_frame_counter_ [private] |
std::string openni_camera::DriverNodelet::depth_frame_id_ [private] |
unsigned openni_camera::DriverNodelet::depth_height_ [private] |
double openni_camera::DriverNodelet::depth_ir_offset_x_ [private] |
double openni_camera::DriverNodelet::depth_ir_offset_y_ [private] |
unsigned openni_camera::DriverNodelet::depth_width_ [private] |
boost::shared_ptr<openni_wrapper::OpenNIDevice> openni_camera::DriverNodelet::device_ [private] |
unsigned openni_camera::DriverNodelet::image_height_ [private] |
unsigned openni_camera::DriverNodelet::image_width_ [private] |
boost::thread openni_camera::DriverNodelet::init_thread_ [private] |
int openni_camera::DriverNodelet::ir_frame_counter_ [private] |
boost::shared_ptr<camera_info_manager::CameraInfoManager> openni_camera::DriverNodelet::ir_info_manager_ [private] |
bool openni_camera::DriverNodelet::publish_depth_ [private] |
bool openni_camera::DriverNodelet::publish_ir_ [private] |
bool openni_camera::DriverNodelet::publish_rgb_ [private] |
boost::shared_ptr<ReconfigureServer> openni_camera::DriverNodelet::reconfigure_server_ [private] |
int openni_camera::DriverNodelet::rgb_frame_counter_ [private] |
std::string openni_camera::DriverNodelet::rgb_frame_id_ [private] |
boost::shared_ptr<camera_info_manager::CameraInfoManager> openni_camera::DriverNodelet::rgb_info_manager_ [private] |
double openni_camera::DriverNodelet::time_out_ [private] |
std::map<XnMapOutputMode, int, modeComp> openni_camera::DriverNodelet::xn2config_map_ [private] |
int openni_camera::DriverNodelet::z_offset_mm_ [private] |
double openni_camera::DriverNodelet::z_scaling_ [private] |