mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-05 17:27:46 +08:00
demo_hector_mapping.launch: when "hector" argument is false, icp_odometry is used
This commit is contained in:
+1
-1
@@ -533,7 +533,7 @@ void OdometryROS::processData(const SensorData & data, const ros::Time & stamp)
|
||||
if(odomLocalScanMap_.getNumSubscribers() && !info.localScanMap.empty())
|
||||
{
|
||||
sensor_msgs::PointCloud2 cloudMsg;
|
||||
if(info.localScanMap.channels() == 6)
|
||||
if(info.localScanMap.channels() >= 5)
|
||||
{
|
||||
pcl::PointCloud<pcl::PointNormal>::Ptr cloud = util3d::laserScanToPointCloudNormal(info.localScanMap);
|
||||
pcl::toROSMsg(*cloud, cloudMsg);
|
||||
|
||||
Reference in New Issue
Block a user