tabletop-objects: fix potentially uninitialized variable
authorTim Niemueller <niemueller@kbsg.rwth-aachen.de>
Mon, 18 Jun 2012 06:12:01 +0000 (01:12 -0500)
committerTim Niemueller <niemueller@kbsg.rwth-aachen.de>
Mon, 18 Jun 2012 06:12:01 +0000 (01:12 -0500)
src/plugins/perception/tabletop-objects/tabletop_objects_thread.cpp

index 97232e1..ae0f8d5 100644 (file)
@@ -346,7 +346,7 @@ TabletopObjectsThread::loop()
 
   pcl::ModelCoefficients::Ptr coeff(new pcl::ModelCoefficients());
   pcl::PointIndices::Ptr inliers(new pcl::PointIndices());
-  Eigen::Vector4f table_centroid, baserel_table_centroid;
+  Eigen::Vector4f table_centroid, baserel_table_centroid(0,0,0,0);
 
   // This will search for the first plane which:
   // 1. has a considerable amount of points (>= some percentage of input points)