File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
common/include/pcl/console
sample_consensus/include/pcl/sample_consensus Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,6 @@ namespace pcl
287287 va_list ap;
288288 while (true ) {
289289 formatted.reset (new char [n]); /* Wrap the plain char array into the unique_ptr */
290- std::strcpy (&formatted[0 ], fmt_str.c_str ());
291290 va_start (ap, fmt_str);
292291 final_n = vsnprintf (&formatted[0 ], n, fmt_str.c_str (), ap);
293292 va_end (ap);
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ namespace pcl
174174
175175 // Get a second point which is different than the first
176176 samples.resize (getSampleSize ());
177- for (unsigned int iter = 0 ; iter < getMaxSampleSize (); ++iter)
177+ for (unsigned int iter = 0 ; iter < getMaxSampleChecks (); ++iter)
178178 {
179179 // Choose the random indices
180180 if (samples_radius_ < std::numeric_limits<double >::epsilon ())
@@ -192,7 +192,7 @@ namespace pcl
192192 PCL_DEBUG (" [pcl::SampleConsensusModel::getSamples] WARNING: Could not select "
193193 " %d sample points in %d iterations!\n " ,
194194 getSampleSize (),
195- getMaxSampleSize ());
195+ getMaxSampleChecks ());
196196 samples.clear ();
197197 }
198198
@@ -351,7 +351,7 @@ namespace pcl
351351 }
352352
353353 static unsigned int
354- getMaxSampleSize ()
354+ getMaxSampleChecks ()
355355 {
356356 /* * The maximum number of samples to try until we get a good one */
357357 static const unsigned int max_sample_checks_ = 1000 ;
@@ -556,7 +556,7 @@ namespace pcl
556556 IndicesPtr indices_;
557557
558558 /* * The maximum number of samples to try until we get a good one */
559- PCL_DEPRECATED (1 , 18 , " Use getMaxSampleSize () instead." )
559+ PCL_DEPRECATED (1 , 18 , " Use getMaxSampleChecks () instead." )
560560 static const unsigned int max_sample_checks_ = 1000 ;
561561
562562 /* * \brief The minimum and maximum radius limits for the model.
Original file line number Diff line number Diff line change 66TEST (PCL, printStreamsMacros) {
77 pcl::console::setVerbosityLevel (pcl::console::L_VERBOSE);
88
9- PCL_ALWAYS_STREAM (" Always_stream\n " );
9+ PCL_ALWAYS_STREAM (" Always_stream\n " )
1010 PCL_ERROR_STREAM (" Error_stream\n " )
11- PCL_WARN_STREAM (" Warn_stream\n " );
11+ PCL_WARN_STREAM (" Warn_stream\n " )
1212 PCL_INFO_STREAM (" Info_stream: this is a point: " << pcl::PointXYZ (1.0 , 2.0 , 3.0 )
13- << " \n " );
14- PCL_DEBUG_STREAM (" Debug_stream\n " );
13+ << " \n " )
14+ PCL_DEBUG_STREAM (" Debug_stream\n " )
1515 PCL_VERBOSE_STREAM (" Verbose_stream: an Eigen vector: "
1616 << " \n "
17- << Eigen::Vector3f (1.0 , 2.0 , 3.0 ) << " \n " );
17+ << Eigen::Vector3f (1.0 , 2.0 , 3.0 ) << " \n " )
1818}
1919
2020TEST (PCL, printMacros)
You can’t perform that action at this time.
0 commit comments