|
编译了一段代码,出现了下面的报错:
3>..\source\Visualization.cpp(100): error C2039: 'toROSMsg' : is not a member of 'pcl'
3>..\source\Visualization.cpp(100): error C3861: 'toROSMsg': identifier not found
然后我添加了#include <pcl/ros/conversions.h>之后,错误变成了:
3>C:\Program Files\PCL\include\pcl-1.7\pcl/ros/conversions.h(68): warning C4091: '' : ignored on left of 'int' when no variable is declared
3>C:\Program Files\PCL\include\pcl-1.7\pcl/ros/conversions.h(68): error C2143: syntax error : missing ';' before ''template<''
3>C:\Program Files\PCL\include\pcl-1.7\pcl/ros/conversions.h(83): warning C4091: '' : ignored on left of 'int' when no variable is declared
3>C:\Program Files\PCL\include\pcl-1.7\pcl/ros/conversions.h(83): error C2143: syntax error : missing ';' before ''template<''
3>C:\Program Files\PCL\include\pcl-1.7\pcl/ros/conversions.h(96): warning C4091: '' : ignored on left of 'int' when no variable is declared
3>C:\Program Files\PCL\include\pcl-1.7\pcl/ros/conversions.h(96): error C2143: syntax error : missing ';' before ''template<''
3>C:\Program Files\PCL\include\pcl-1.7\pcl/ros/conversions.h(111): warning C4091: '' : ignored on left of 'int' when no variable is declared
3>C:\Program Files\PCL\include\pcl-1.7\pcl/ros/conversions.h(111): error C2143: syntax error : missing ';' before ''template<''
错误指向了conversions.h中:
PCL_DEPRECATED (template<typename CloudT> void toROSMsg (
const CloudT& cloud, pcl::PCLImage& msg),
"pcl::fromROSMsg is deprecated, please use fromPCLPointCloud2 instead.");
template<typename CloudT> void
toROSMsg (const CloudT& cloud, pcl::PCLImage& msg)
{
toPCLPointCloud2 (cloud, msg);
}
各位有没有遇到这种问题,求解答,谢谢!
|
|