TerrainCallBack详解(2)
上回讲到更新temp_obs_ptr和temp_free_ptr ,我们接着往下讲。接着就用到了ExtractNewObsPointCloud函数去更新抽取NewObsPointCloud
函数把temp_obs_ptr_和surround_obs_cloud_输入,把surround_obs_cloud_作为一个参考点列,把其intensity设置为255。temp_obs_ptr_的intensity设为0 然后把这两个都并到一起,得到一个temp_new_cloud 。对temp_new_cloud进行下采样,减少点云的数量,其中intensity也会变化。具体咋变,我也不是很清楚。
根据采样完的temp_new_cloud,我们把每个点提取出来进行判断,判断它的intensity是否小于2,如果小于2,