YARP
Yet Another Robot Platform
yarp::pcl Namespace Reference

Functions

template<class T1 , class T2 >
bool toPCL (const yarp::sig::PointCloud< T1 > &yarpCloud, ::pcl::PointCloud< T2 > &pclCloud)
 Convert a yarp::sig::PointCloud to a pcl::PointCloud object. More...
 
template<class T1 , class T2 >
bool fromPCL (const ::pcl::PointCloud< T1 > &pclCloud, yarp::sig::PointCloud< T2 > &yarpCloud)
 Convert a pcl::PointCloud to a yarp::sig::PointCloud object. More...
 
template<class T1 , class T2 >
int savePCD (const std::string &file_name, const yarp::sig::PointCloud< T1 > &yarpCloud)
 Save a yarp::sig::PointCloud to PCD file, ASCII format. More...
 
template<class T1 , class T2 >
int loadPCD (const std::string &file_name, yarp::sig::PointCloud< T2 > &yarpCloud)
 Load a yarp::sig::PointCloud from a PCD file, ASCII format. More...
 

Function Documentation

◆ fromPCL()

template<class T1 , class T2 >
bool yarp::pcl::fromPCL ( const ::pcl::PointCloud< T1 > &  pclCloud,
yarp::sig::PointCloud< T2 > &  yarpCloud 
)
inline

Convert a pcl::PointCloud to a yarp::sig::PointCloud object.

Parameters
[in]pclCloudpcl::PointCloud input
[out]yarpCloudyarp cloud filled with data contained in the pcl cloud.
Returns
true on success, false otherwise.

Definition at line 45 of file Pcl.h.

◆ loadPCD()

template<class T1 , class T2 >
int yarp::pcl::loadPCD ( const std::string &  file_name,
yarp::sig::PointCloud< T2 > &  yarpCloud 
)
inline

Load a yarp::sig::PointCloud from a PCD file, ASCII format.

Parameters
[in]file_nameof the PCD file containing the cloud
[out]yarpCloudyarp::sig::PointCloud obtained from the PCD file
Returns
result of the load operation(see pcl::io::loadPCDFile documentation)

Definition at line 74 of file Pcl.h.

◆ savePCD()

template<class T1 , class T2 >
int yarp::pcl::savePCD ( const std::string &  file_name,
const yarp::sig::PointCloud< T1 > &  yarpCloud 
)
inline

Save a yarp::sig::PointCloud to PCD file, ASCII format.

Parameters
[in]file_namename of the file to be created with the cloud
[in]yarpCloudyarp::sig::PointCloud input
Returns
result of the save operation(see pcl::io::savePCDFile documentation)

Definition at line 59 of file Pcl.h.

◆ toPCL()

template<class T1 , class T2 >
bool yarp::pcl::toPCL ( const yarp::sig::PointCloud< T1 > &  yarpCloud,
::pcl::PointCloud< T2 > &  pclCloud 
)
inline

Convert a yarp::sig::PointCloud to a pcl::PointCloud object.

Parameters
[in]yarpCloudyarp::sig::PointCloud input
[out]pclCloudpcl::PointCloud filled with data contained in the yarp cloud
Returns
true on success, false otherwise.

Definition at line 27 of file Pcl.h.