PointCloudT::Ptr cloud;
cloud.reset(new PointCloudT);
cloud->points.resize(500);
for(int index =0;index <500;index++)
{
  cloud->point[index].x = 1.0;
cloud->point[index].y =1.0;
}
采用以上方式赋值程序崩溃。
Point t;
for(int index =0;index <500;index++)
{
  t.x =1.0;
t.y =1.0;
cloud->pushback(t);
}
采用这种方式ok。



posted on 2018-08-27 15:05  卡贝天师  阅读(591)  评论(1编辑  收藏  举报