39 #include <sensor_msgs/CameraInfo.h> 40 #include <nav_msgs/Odometry.h> 75 private_nh.
param(
"queue_size", queueSize, queueSize);
78 sync_->registerCallback(boost::bind(&
DataOdomSyncNodelet::callback,
this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4));
80 image_sub_.subscribe(rgb_it, rgb_nh.
resolveName(
"image_in"), 1, hintsRgb);
81 image_depth_sub_.subscribe(depth_it, depth_nh.
resolveName(
"image_in"), 1, hintsDepth);
82 info_sub_.subscribe(rgb_nh,
"camera_info_in", 1);
91 void callback(
const sensor_msgs::ImageConstPtr& image,
92 const sensor_msgs::ImageConstPtr& imageDepth,
93 const sensor_msgs::CameraInfoConstPtr& camInfo,
94 const nav_msgs::OdometryConstPtr & odom)
message_filters::Subscriber< nav_msgs::Odometry > odom_sub_
message_filters::Subscriber< sensor_msgs::CameraInfo > info_sub_
image_transport::SubscriberFilter image_depth_sub_
uint32_t getNumSubscribers() const
ros::NodeHandle & getNodeHandle() const
virtual ~DataOdomSyncNodelet()
Publisher advertise(const std::string &base_topic, uint32_t queue_size, bool latch=false)
image_transport::Publisher imageDepthPub_
image_transport::Publisher imagePub_
ros::NodeHandle & getPrivateNodeHandle() const
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
void publish(const boost::shared_ptr< M > &message) const
void callback(const sensor_msgs::ImageConstPtr &image, const sensor_msgs::ImageConstPtr &imageDepth, const sensor_msgs::CameraInfoConstPtr &camInfo, const nav_msgs::OdometryConstPtr &odom)
message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, sensor_msgs::Image, sensor_msgs::CameraInfo, nav_msgs::Odometry > MySyncPolicy
std::string resolveName(const std::string &name, bool remap=true) const
message_filters::Synchronizer< MySyncPolicy > * sync_
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
void publish(const sensor_msgs::Image &message) const
void subscribe(ros::NodeHandle &nh, const std::string &topic, uint32_t queue_size, const ros::TransportHints &transport_hints=ros::TransportHints(), ros::CallbackQueueInterface *callback_queue=0)
image_transport::SubscriberFilter image_sub_
PLUGINLIB_EXPORT_CLASS(rtabmap_ros::CoreWrapper, nodelet::Nodelet)
uint32_t getNumSubscribers() const