src/shape_detector/src/cylinder_computer.cpp
/** \brief Extract points with given indices from given cloud.
 * \param[in] cloud Cloud from which points are extracted.
 * \param[in] indices Indices of the points that are extracted from the
 *  input cloud.
 * \return Cloud containing the extracted points.
 */
\brief Extract points with given indices from given cloud.
\param[in] cloud Cloud from which points are extracted.
\param[in] indices Indices of the points that are extracted from the
input cloud.
\return Cloud containing the extracted points.
\ brief Extract points with given indices from given cloud . \ param [ in ] cloud Cloud from which points are extracted . \ param [ in ] indices Indices of the points that are extracted from the input cloud . \ return Cloud containing the extracted points .
inline PointCloudT::Ptr extractIndexedPoints(
    const PointCloudT::ConstPtr& cloud,
    const pcl::PointIndices::ConstPtr& indices)
{
    pcl::ExtractIndices<PointT> extractor;
    extractor.setInputCloud(cloud);
    extractor.setIndices(indices);
    extractor.setNegative(false);
    PointCloudT::Ptr indexed_points {new PointCloudT};
    extractor.filter(*indexed_points);
    return indexed_points;
}
inline PointCloudT :: Ptr extractIndexedPoints ( const PointCloudT :: ConstPtr & cloud , const pcl :: PointIndices :: ConstPtr & indices ) { pcl :: ExtractIndices < PointT > extractor ; extractor . setInputCloud ( cloud ) ; extractor . setIndices ( indices ) ; extractor . setNegative ( false ) ; PointCloudT :: Ptr indexed_points { new PointCloudT } ; extractor . filter ( * indexed_points ) ; return indexed_points ; }
\brief Extract points with given indices from given cloud.
\ brief Extract points with given indices from given cloud .