How to check pointcloudrgb property has value in it or not using pcl library RRS feed

  • Question

  • Hi,

    I am trying to display point cloud of scene using pcl library.

    I am pushing sensorpoints inside cloudsecond, at that time i am facing this error.

    Here some of the properties like width,height and is_dense of cloudsecond are throwing errors like the following. cloudsecond->_vfptr:-error:expression cannot be evaluated cloudsecond->width:- error:expression cannot be evaluated cloudsecond->height:- error:expression cannot be evaluated cloudsecond->is_dense:- error:expression cannot be evaluated

    when i debug it no values inside cloudsecond. pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloudSecond(new pcl::PointCloud<pcl::PointXYZRGB>()); pcl::PointXYZRGB sensor2points; sensorpoints.b = bufferbyte[3* index]; sensorpoints.g = bufferbyte[3 *( index)+1]; sensorpoints.r = bufferbyte[3 * ( index) + 2]; sensorpoints.x = sensor2cameraSpacePoint.X; sensorpoints.y = sensor2cameraSpacePoint.Y; sensorpoints.z = sensor2cameraSpacePoint.Z; cloudSecond ->push_back( sensorpoints );

    In the above function , i want to check particular property like width,height or is_dense

    of cloudsecond point cloud has value or not.

    Please suggest me how to check this condition.


    Wednesday, August 19, 2015 2:15 PM

All replies