|
@@ -80,7 +80,8 @@ inline LidarPointCloudMsg toRsMsg(const proto_msg::LidarPointCloud& proto_msg)
|
|
|
point.y = proto_msg.data(i + 1);
|
|
|
point.z = proto_msg.data(i + 2);
|
|
|
point.intensity = proto_msg.data(i + 3);
|
|
|
- ptr_tmp->push_back(point);
|
|
|
+ if ((!std::isnan(point.x)) && (!std::isnan(point.y)) && (!std::isnan(point.z))) // 20220221
|
|
|
+ ptr_tmp->push_back(point);
|
|
|
}
|
|
|
ptr_tmp->height = proto_msg.height();
|
|
|
ptr_tmp->width = proto_msg.width();
|