Subversion Repositories seema-scanner

Rev

Rev 36 | Rev 42 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36 Rev 41
Line 48... Line 48...
48
 
48
 
49
    updateCalibrationParameters();
49
    updateCalibrationParameters();
50
    //time.start();
50
    //time.start();
51
}
51
}
52
 
52
 
-
 
53
void SMPointCloudWidget::addPointCloud(PointCloudConstPtr _pointCloudPCL){
-
 
54
 
-
 
55
//    time.restart();
-
 
56
 
-
 
57
    pointCloudPCL = _pointCloudPCL;
-
 
58
 
-
 
59
    // Note: using the color handler makes a copy of the rgb fields
-
 
60
    colorHandler->setInputCloud(_pointCloudPCL);
-
 
61
 
-
 
62
    visualizer->addPointCloud(pointCloudPCL, *colorHandler, "pointCloudPCL");
-
 
63
    visualizer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 2.0, "pointCloudPCL");
-
 
64
 
-
 
65
    this->update();
-
 
66
    emit newPointCloudDisplayed();
-
 
67
 
-
 
68
//    std::cout << "PCL Widget: " << time.restart() << "ms" << std::endl;
-
 
69
}
-
 
70
 
53
void SMPointCloudWidget::updatePointCloud(PointCloudConstPtr _pointCloudPCL){
71
void SMPointCloudWidget::updatePointCloud(PointCloudConstPtr _pointCloudPCL){
54
 
72
 
55
//    time.restart();
73
//    time.restart();
56
 
74
 
57
    pointCloudPCL = _pointCloudPCL;
75
    pointCloudPCL = _pointCloudPCL;