Assertion `px != 0' failed 原因:智能指针没有初始化 解决:使用前初始化 PointCloud<PointT>::Ptr cloud; cloud.reset(new PointCloud<PointT>());