odom_estimation_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 
8 #ifndef FLOAM__ODOM_ESTIMATION_NODE_HPP_
9 #define FLOAM__ODOM_ESTIMATION_NODE_HPP_
10 
11 #include "ros/ros.h"
12 #include "nodelet/nodelet.h"
13 #include "sensor_msgs/PointCloud2.h"
19 #include "geometry_msgs/TransformStamped.h"
20 
21 
22 #include "floam/lidar_utils.hpp"
24 
25 namespace floam
26 {
27 namespace odom
28 {
29 
32 
34 {
35 public:
40 
45 
51  void onInit();
52 
53 private:
55 
57 
59  geometry_msgs::TransformStampedPtr m_tfGlobal;
60 
63 
66 
67  std::shared_ptr<ApproximateSynchronizer> m_approximateSync;
68  std::shared_ptr<ExactSynchronizer> m_exactSync;
69 
70  void handleClouds(
71  const sensor_msgs::PointCloud2ConstPtr & edges,
72  const sensor_msgs::PointCloud2ConstPtr & surfaces);
73 
74  bool m_isInitialized = false;
75  bool m_useExactSync = false;
76 
77  int m_queueSize = 5;
78 
79  double m_mapResolution = 0.4;
80 
81  std::string m_frameId, m_parentFrameId;
82 
84 
85 private:
87 };
88 
89 } // namespace odom
90 } // namespace floam
91 
92 #endif // FLOAM__ODOM_ESTIMATION_NODE_HPP_
geometry_msgs::TransformStampedPtr m_tfGlobal
ROS Transorm.
void handleClouds(const sensor_msgs::PointCloud2ConstPtr &edges, const sensor_msgs::PointCloud2ConstPtr &surfaces)
std::shared_ptr< ApproximateSynchronizer > m_approximateSync
std::shared_ptr< ExactSynchronizer > m_exactSync
message_filters::Subscriber< sensor_msgs::PointCloud2 > m_subSurfaces
message_filters::Subscriber< sensor_msgs::PointCloud2 > m_subEdges
message_filters::Synchronizer< ExactSyncPolicy > ExactSynchronizer
message_filters::Synchronizer< ApproximateSyncPolicy > ApproximateSynchronizer
floam::odom::OdomEstimation m_odomEstimation
message_filters::sync_policies::ExactTime< sensor_msgs::PointCloud2, sensor_msgs::PointCloud2 > ExactSyncPolicy
Major rewrite Author: Evan Flynn.
Definition: lidar.hpp:15
message_filters::sync_policies::ApproximateTime< sensor_msgs::PointCloud2, sensor_msgs::PointCloud2 > ApproximateSyncPolicy


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