mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-10 11:39:49 +08:00
ported rtabmap_ros_pkg_split to ros2
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
|
||||
#include <rtabmap_util/visibility.h>
|
||||
#include "rclcpp/rclcpp.hpp"
|
||||
|
||||
#include <tf2_ros/buffer.h>
|
||||
#include <tf2_ros/transform_listener.h>
|
||||
|
||||
#include <sensor_msgs/msg/point_cloud2.hpp>
|
||||
#include <sensor_msgs/msg/laser_scan.hpp>
|
||||
|
||||
namespace rtabmap_util
|
||||
{
|
||||
|
||||
class LidarDeskewing : public rclcpp::Node
|
||||
{
|
||||
public:
|
||||
RTABMAP_UTIL_PUBLIC
|
||||
explicit LidarDeskewing(const rclcpp::NodeOptions & options);
|
||||
virtual ~LidarDeskewing();
|
||||
|
||||
private:
|
||||
void callbackScan(const sensor_msgs::msg::LaserScan::ConstSharedPtr msg);
|
||||
void callbackCloud(const sensor_msgs::msg::PointCloud2::ConstSharedPtr msg);
|
||||
|
||||
private:
|
||||
rclcpp::Publisher<sensor_msgs::msg::PointCloud2>::SharedPtr pubScan_;
|
||||
rclcpp::Publisher<sensor_msgs::msg::PointCloud2>::SharedPtr pubCloud_;
|
||||
rclcpp::Subscription<sensor_msgs::msg::LaserScan>::SharedPtr subScan_;
|
||||
rclcpp::Subscription<sensor_msgs::msg::PointCloud2>::SharedPtr subCloud_;
|
||||
std::string fixedFrameId_;
|
||||
double waitForTransformDuration_;
|
||||
bool slerp_;
|
||||
std::shared_ptr<tf2_ros::Buffer> tfBuffer_;
|
||||
std::shared_ptr<tf2_ros::TransformListener> tfListener_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user