lidar_scanner_node.hpp
Go to the documentation of this file.
1 
3 
4 // Original Author of FLOAM: Wang Han
5 // Email wh200720041@gmail.com
6 // Homepage https://wanghan.pro
7 #ifndef FLOAM__LIDAR_SCANNER_NODE_HPP_
8 #define FLOAM__LIDAR_SCANNER_NODE_HPP_
9 
10 #include <ros/ros.h>
11 #include <nodelet/nodelet.h>
12 #include <sensor_msgs/PointCloud2.h>
13 #include <tf/transform_listener.h>
14 
16 #include <pcl/point_cloud.h>
17 #include <pcl/point_types.h>
18 
19 //local lib
20 #include "floam/lidar.hpp"
21 #include "floam/lidar_utils.hpp"
22 
23 namespace floam
24 {
25 namespace lidar
26 {
27 
28 
30 {
31 public:
34 
35  void onInit();
36 
37  void handlePoints(const sensor_msgs::PointCloud2ConstPtr &lidarCloudMsg);
38 
40 
41 private:
43 
45 
49 
52 
53  std::queue<sensor_msgs::PointCloud2ConstPtr> m_points;
54 };
55 
56 } // namespace lidar
57 } // namespace floam
58 
59 #endif // FLOAM__LIDAR_SCANNER_NODE_HPP_
tf2_ros::TransformListener m_tf2Listener
void handlePoints(const sensor_msgs::PointCloud2ConstPtr &lidarCloudMsg)
Lidar< floam::lidar::Scanner > m_lidar
std::queue< sensor_msgs::PointCloud2ConstPtr > m_points
Major rewrite Author: Evan Flynn.
Definition: lidar.hpp:15


floam
Author(s): Han Wang
autogenerated on Mon Feb 28 2022 22:25:11