File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8383 - RawLogViewer: Operation "convert to SF format" didn't take into account odometry observations.
8484 - Fix build errors with GCC 4.9
8585 - Fix crash of mrpt::hwdrivers::CIMUXSens_MT4's destructor when it fails to scan and open a device.
86+ - Fix potential crash in mrpt::slam::data_association_full_covariance with JCBB when no individually compatible matching exists [(commit)]()
8687
8788<hr>
8889 <a name="1.1.0">
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ double joint_pdf_metric (
7070{
7171 // Make a list of the indices of the predictions that appear in "currentAssociation":
7272 const size_t N = info.currentAssociation .size ();
73+ ASSERT_ (N>0 )
7374
7475 vector_size_t indices_pred (N); // Appearance order indices in the std::maps
7576 vector_size_t indices_obs (N);
@@ -166,7 +167,7 @@ void JCBB_recursive(
166167 info,
167168 results);
168169 }
169- else if ( info.currentAssociation .size ()==results.associations .size () )
170+ else if ( !info. currentAssociation . empty () && info.currentAssociation .size ()==results.associations .size () )
170171 {
171172 // The same # of features matched than the previous best one... decide by better distance:
172173 const double d2 = joint_pdf_metric<T,METRIC>(
You can’t perform that action at this time.
0 commit comments