PointCloudAnnotationTool
PointCloudAnnotationTool copied to clipboard
flash cut error ?
I successfully executed the following command:
./point_cloud_annotation is
After I press 'a' :
I have encountered the same problem, have you solved it?
I successfully executed the following command:
./point_cloud_annotation is
After I press 'a' :
I also met the same problem. How did you solve it?
Same problem. Have you solved it? thx
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)".