PointCloudAnnotationTool icon indicating copy to clipboard operation
PointCloudAnnotationTool copied to clipboard

flash cut error ?

Open Qureal opened this issue 5 years ago • 4 comments

I successfully executed the following command:

./point_cloud_annotation is 

After I press 'a' : avatar

Qureal avatar Apr 03 '19 07:04 Qureal

I have encountered the same problem, have you solved it?

MENG1996 avatar Aug 05 '19 08:08 MENG1996

I successfully executed the following command:

./point_cloud_annotation is 

After I press 'a' : avatar

I also met the same problem. How did you solve it?

zlei96 avatar Jan 18 '20 03:01 zlei96

Same problem. Have you solved it? thx

houhaol avatar Mar 15 '20 02:03 houhaol

It seems that the variable "m_annotationClassNum" of the class "BNModel" is not 0 by default. In my case, it was some random unsigned int. This causes IndexOutOfArrayException in "std::string BNLabelStore::GetNameForLabel(uint labelID)" and "BNLabelColor BNLabelStore::GetColorForLabel(uint labelID)" of the class BNLabelStore. After I added the line m_annotationClassNum = 0;

at the end of the function "void BNModel::InitModel(pcl::PointCloudpcl::PointXYZRGB::Ptr inPointCloud)" in the class "BNModel" and it seemed to work. I would also recommend to prevent the Exceptions with, e.g., if statements such as

if(labelID > m_labels.size()){
	 	std::cout << "labelID " << labelID << " cannot be accessed -- max label: " << m_labels.size() << std::endl;
		return m_labels[0].m_color;
}

in the functions "std::string BNLabelStore::GetNameForLabel(uint labelID)" and "BNLabelColor BNLabelStore::GetColorForLabel(uint labelID)".

mati3230 avatar Sep 25 '20 16:09 mati3230