RobustFieldAutonomyLab / LeGO-LOAM

LeGO-LOAM: Lightweight and Ground-Optimized Lidar Odometry and Mapping on Variable Terrain
BSD 3-Clause "New" or "Revised" License
2.35k stars 1.11k forks source link

why "extern const string pointCloudTopic = "/velodyne_points";" is true? #170

Closed qiaozhijian closed 4 years ago

qiaozhijian commented 4 years ago

why not output the error "multiple definition of `pointCloudTopic'", because pointCloudTopic is used in two cpps.

YushengWHU commented 4 years ago

Actually, I didn't quite understand you. This point cloud topic is reused in two cpps for sure, and you can change it to whatever topic you like, for my case, I just changed it to subLaserCloud = nh.subscribe<sensor_msgs::PointCloud2>("/lidar0/points_raw", 1, &ImageProjection::cloudHandler, this);

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.