5 #ifndef ORB_SLAM2_POINTCLOUDPUBLISHER_H 6 #define ORB_SLAM2_POINTCLOUDPUBLISHER_H 9 #include <cv_bridge/cv_bridge.h> 13 #include <sensor_msgs/PointCloud2.h> 16 #include <sensor_msgs/CameraInfo.h> 17 #include <sensor_msgs/Image.h> 20 #include <image_transport/image_transport.h> 21 #include <image_transport/subscriber_filter.h> 25 #include <pcl/point_cloud.h> 26 #include <pcl/point_types.h> 27 #include <pcl/io/pcd_io.h> 28 #include <pcl_conversions/pcl_conversions.h> 29 #include <pcl/filters/voxel_grid.h> 30 #include <pcl/filters/passthrough.h> 32 #include "nav_msgs/Odometry.h" 77 int getPose(
float &x,
float &y,
float &z,
float &qx,
float &qy,
float &qz,
float &qw);
85 #endif //ORB_SLAM2_POINTCLOUDPUBLISHER_H shared_ptr< PointCloudMapping > mpPointCloudMapping
tf::Transform base_to_camera
ros::Publisher mOccupancyMapPub
tf::TransformBroadcaster tf_broadcaster
PointCloudPublisher(ros::NodeHandle *nh, ORB_SLAM2::System *SLAM)
void printTf(tf::Transform tf)
shared_ptr< thread > OdomPublishThread
std::string camera_frame_id
int getPose(float &x, float &y, float &z, float &qx, float &qy, float &qz, float &qw)
tf::Transform camera_to_base
ros::Publisher mPointCloudPub
std::string world_frame_id
DataCache< System::PointCloud > * mpPointCloudDataCache
tf::TransformListener tf_listener
DataCache< cv::Mat > * mpTcwDataCache
shared_ptr< thread > PointCloudPublishThread
ros::Publisher mOctomapPub
tf::Transform get_tf_from_stamped_tf(tf::StampedTransform sTf)
std::string base_frame_id
int32_t miTcwDataCacheIndex
void printStampedTf(tf::StampedTransform sTf)
int32_t miPointCloudDataCacheIndex