Skip to content

Commit

Permalink
Merge pull request #2778 from SunBlack/unused-variable
Browse files Browse the repository at this point in the history
Remove unused variables reported by -Wunused-variable
  • Loading branch information
taketwo authored Jan 18, 2019
2 parents 0885820 + fac1f30 commit c49b3f7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ pcl::gpu::kinfuLS::StandaloneMarchingCubes<PointT>::getMeshFromTSDFCloud (const
{

//Clearing TSDF GPU and cPU
const Eigen::Vector3f volume_size = Eigen::Vector3f::Constant (volume_size_);
std::cout << "VOLUME SIZE IS " << volume_size_ << std::endl;
const Eigen::Vector3i volume_resolution (voxels_x_, voxels_y_, voxels_z_);
std::cout << "VOLUME SIZE IS " << volume_size_ << std::endl;

//Clear values in TSDF Volume GPU
tsdf_volume_gpu_->reset (); // This one uses the same tsdf volume but clears it before loading new values. This one is our friend.
Expand Down
30 changes: 15 additions & 15 deletions gpu/people/src/face_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,21 +731,21 @@ pcl::gpu::people::FaceDetector::process(pcl::PointCloud<pcl::RGB>& cloud_in,
PCL_DEBUG("[pcl::gpu::people::FaceDetector::process] : (D) : called\n");
cols_ = cloud_in.width; rows_ = cloud_in.height;

// TODO do something with the NCVStatus return value
NCVStatus status = NCVprocess(cloud_in,
cloud_out,
haar_clas_casc_descr_,
*haar_stages_dev_,
*haar_nodes_dev_,
*haar_features_dev_,
*haar_stages_host_,
*gpu_allocator_,
*cpu_allocator_,
cuda_dev_prop_,
cloud_in.width,
cloud_in.height,
filter_rects_,
largest_object_);
// TODO do something with the NCVprocess return value
NCVprocess(cloud_in,
cloud_out,
haar_clas_casc_descr_,
*haar_stages_dev_,
*haar_nodes_dev_,
*haar_features_dev_,
*haar_stages_host_,
*gpu_allocator_,
*cpu_allocator_,
cuda_dev_prop_,
cloud_in.width,
cloud_in.height,
filter_rects_,
largest_object_);

}

1 change: 0 additions & 1 deletion gpu/people/src/people_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,6 @@ pcl::gpu::people::PeopleDetector::shs5(const pcl::PointCloud<PointT> &cloud, con
int sq_idx = 0;
seed_queue.push_back (i);

PointT p = cloud.points[i];
float h = hue[i];

while (sq_idx < (int)seed_queue.size ())
Expand Down
2 changes: 0 additions & 2 deletions gpu/surface/src/convex_hull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ pcl::gpu::PseudoConvexHull3D::reconstruct (const Cloud &cloud, DeviceArray2D<int

ps.computeInitalSimplex();

device::InitalSimplex simplex = ps.simplex;

fs.setInitialFacets(ps.simplex);
ps.initalClassify();

Expand Down
1 change: 0 additions & 1 deletion surface/include/pcl/surface/impl/texture_mapping.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,6 @@ pcl::TextureMapping<PointInT>::textureMeshwithMultipleCameras (pcl::TextureMesh

// CREATE UV MAP FOR CURRENT FACES
pcl::PointCloud<pcl::PointXY>::Ptr projections (new pcl::PointCloud<pcl::PointXY>);
std::vector<pcl::Vertices>::iterator current_face;
std::vector<bool> visibility;
visibility.resize (mesh.tex_polygons[current_cam].size ());
std::vector<UvIndex> indexes_uv_to_points;
Expand Down

0 comments on commit c49b3f7

Please sign in to comment.