MCPcopy Create free account
hub / github.com/GDUT-Kyle/faster_lio_sam / ImageProjection

Method ImageProjection

src/ImageProjection.cpp:65–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64public:
65 ImageProjection():deskewFlag(0)
66 {
67 subImu = nh.subscribe<sensor_msgs::Imu>(imuTopic, 2000, &ImageProjection::imuHandler, this, ros::TransportHints().tcpNoDelay());
68 subOdom = nh.subscribe<nav_msgs::Odometry>(odomTopic+"_incremental", 2000, &ImageProjection::odometryHandler, this, ros::TransportHints().tcpNoDelay());
69 subLaserCloud = nh.subscribe<faster_lio_sam::merge_cloud>("/livox_merge_pcl0", 5, &ImageProjection::cloudHandler, this, ros::TransportHints().tcpNoDelay());
70 subImuBias = nh.subscribe<std_msgs::Float64MultiArray>("lio_sam/imu/bias", 5, &ImageProjection::imuBiasHandler, this, ros::TransportHints().tcpNoDelay());
71
72 pubOriginalCloud = nh.advertise<sensor_msgs::PointCloud2> ("lio_sam/deskew/cloud_original", 1);
73 pubExtractedCloud = nh.advertise<sensor_msgs::PointCloud2> ("lio_sam/deskew/cloud_deskewed", 1);
74 pubExtractedCloudRGB = nh.advertise<sensor_msgs::PointCloud2> ("lio_sam/deskew/cloud_deskewed_rgb", 1);
75 pubLaserCloudInfo = nh.advertise<faster_lio_sam::cloud_info> ("lio_sam/deskew/cloud_info", 1);
76
77 allocateMemory();
78 resetParameters();
79 }
80
81 void allocateMemory(){
82 laserCloudIn.reset(new PointCloudXYZIT);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected