ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

kerollosghobrial's profile - activity

2016-04-28 07:54:21 -0500 commented answer How to calculate sensor_msgs/Imu data from IMU sensor

but how can i integrate with the other sensors. do you can a code to give me the orientation Yaw, pitch and roll ?thanks in advance

2015-11-14 16:54:15 -0500 answered a question Getting Error in OrganizedMultiPlaneSegmentation.

this is my code and i got this errors :

[pcl::OrganizedMultiPlaneSegmentation::segment] Organized point cloud is required for this plane extraction method! code:

pcl::search::KdTree<pcl::pointxyz>::Ptr kdtree(new pcl::search::KdTree<pcl::pointxyz>); pcl::NormalEstimation<pcl::pointxyz, pcl::normal=""> normalEstimation;

pcl::PointCloud <pcl::normal>::Ptr normals (new pcl::PointCloud <pcl::normal>); normalEstimation.setInputCloud(cloud); normalEstimation.setSearchMethod(kdtree); normalEstimation.setKSearch(3); normalEstimation.compute(*normals);

pcl::OrganizedMultiPlaneSegmentation< pcl::PointXYZ, pcl::Normal, pcl::Label > mps; mps.setMinInliers (10000); mps.setInputNormals(normals); mps.setAngularThreshold (0.017453 * 2.0); mps.setDistanceThreshold (0.02);

std::vector<pcl::planarregion<pcl::pointxyz>,Eigen::aligned_allocator<pcl::planarregion<pcl::pointxyz> > > regions; mps.setInputCloud (cloud); mps.segment(regions);
ROS_INFO_STREAM("the number of regions: " << regions.size ()); is there anyone can help me to solve this problem, i really appreciate that. tanks in advance.

2015-11-14 16:51:44 -0500 answered a question Getting Error in OrganizedMultiPlaneSegmentation.

this is my code and i got this errors :

[pcl::OrganizedMultiPlaneSegmentation::segment] Organized point cloud is required for this plane extraction method! code:

pcl::search::KdTree<pcl::pointxyz>::Ptr kdtree(new pcl::search::KdTree<pcl::pointxyz>); pcl::NormalEstimation<pcl::pointxyz, pcl::normal=""> normalEstimation;

pcl::PointCloud <pcl::normal>::Ptr normals (new pcl::PointCloud <pcl::normal>); normalEstimation.setInputCloud(cloud); normalEstimation.setSearchMethod(kdtree); normalEstimation.setKSearch(3); normalEstimation.compute(*normals);

pcl::OrganizedMultiPlaneSegmentation< pcl::PointXYZ, pcl::Normal, pcl::Label > mps; mps.setMinInliers (10000); mps.setInputNormals(normals); mps.setAngularThreshold (0.017453 * 2.0); mps.setDistanceThreshold (0.02);

std::vector<pcl::planarregion<pcl::pointxyz>,Eigen::aligned_allocator<pcl::planarregion<pcl::pointxyz> > > regions; mps.setInputCloud (cloud); mps.segment(regions);
ROS_INFO_STREAM("the number of regions: " << regions.size ()); is there anyone can help me to solve this problem, i really appreciate that. tanks in advance.

2015-11-12 19:14:36 -0500 commented answer How can I construct convex hull from point cloud?

i got this errors: 1- ‘class pcl::ConcaveHull<pcl::pointxyz>’ has no member named ‘setComputeAreaVolume’ hull.setComputeAreaVolume(true); 2- ‘class pcl::ConcaveHull<pcl::pointxyz>’ has no member named ‘getTotalArea’ Area_planes[i]= hull.getTotalArea();

2015-10-31 08:56:15 -0500 commented answer Publish unknown number of topics?

hello Barbas, i want use your concept for publishing unknown topic, can you send your code again because this link does not work. thanks in advance.

2015-10-31 08:49:39 -0500 received badge  Supporter (source)
2015-10-25 19:58:24 -0500 answered a question Error: Invalid argument passed to canTransform argument source_frame

// For every cluster... int currentClusterNum = 1; std::vector<pcl::pointindices>::const_iterator i; for (i = cluster_indices.begin(); i != cluster_indices.end(); ++i) { // ...add all its points to a new cloud... pcl::PointCloud<pcl::pointxyz>::Ptr cluster(new pcl::PointCloud<pcl::pointxyz>); for (std::vector<int>::const_iterator point = i->indices.begin(); point != i->indices.end(); point++) { //push_back: add a point to the end of the existing vector cluster->points.push_back(cloud->points[*point]); } cluster->width = cluster->points.size(); cluster->height = 1; cluster->is_dense = true;

            // ...and save it to disk.
            if (cluster->points.size() <= 0){
               break;
            }

            *clustered_cloud += *cluster;

            currentClusterNum++;
        }

    clustered_cloud->header = cloud->header;

sensor_msgs::PointCloud2 output; pcl::toROSMsg(*clustered_cloud, output); pcl_pub.publish(output);

2015-10-25 19:08:39 -0500 commented answer Error: Invalid argument passed to canTransform argument source_frame

hello, when i used this commend "cloudCluster.header = filtered_cloud.header" i did not get any error in rviz, but it does not show anything. where exactly you put this commend before the "sensor_msgs::PointCloud2 cloud2;" or inside the loop. thanks in advance.

2015-10-12 06:59:45 -0500 received badge  Enthusiast