Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused variables reported by -Wunused-variable #2778

Merged
merged 1 commit into from
Jan 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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