Skip to content

Commit ac0b506

Browse files
committed
Fix remaining build issues
1 parent af277b9 commit ac0b506

File tree

18 files changed

+41
-38
lines changed

18 files changed

+41
-38
lines changed

apps/3d_rec_framework/tools/apps/src/global_classification.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ main (int argc, char ** argv)
176176
vfh_estimator->setNormalEstimator (normal_estimator);
177177

178178
std::shared_ptr<pcl::rec_3d_framework::GlobalEstimator<pcl::PointXYZ, pcl::VFHSignature308> > cast_estimator;
179-
cast_estimator = boost::dynamic_pointer_cast<pcl::rec_3d_framework::VFHEstimation<pcl::PointXYZ, pcl::VFHSignature308> > (vfh_estimator);
179+
cast_estimator = std::dynamic_pointer_cast<pcl::rec_3d_framework::VFHEstimation<pcl::PointXYZ, pcl::VFHSignature308> > (vfh_estimator);
180180

181181
pcl::rec_3d_framework::GlobalNNPipeline<flann::L1, pcl::PointXYZ, pcl::VFHSignature308> global;
182182
global.setDataSource (cast_source);
@@ -196,7 +196,7 @@ main (int argc, char ** argv)
196196
vfh_estimator->setNormalEstimator (normal_estimator);
197197

198198
std::shared_ptr<pcl::rec_3d_framework::GlobalEstimator<pcl::PointXYZ, pcl::VFHSignature308> > cast_estimator;
199-
cast_estimator = boost::dynamic_pointer_cast<pcl::rec_3d_framework::CVFHEstimation<pcl::PointXYZ, pcl::VFHSignature308> > (vfh_estimator);
199+
cast_estimator = std::dynamic_pointer_cast<pcl::rec_3d_framework::CVFHEstimation<pcl::PointXYZ, pcl::VFHSignature308> > (vfh_estimator);
200200

201201
pcl::rec_3d_framework::GlobalNNPipeline<Metrics::HistIntersectionUnionDistance, pcl::PointXYZ, pcl::VFHSignature308> global;
202202
global.setDataSource (cast_source);
@@ -215,7 +215,7 @@ main (int argc, char ** argv)
215215
estimator.reset (new pcl::rec_3d_framework::ESFEstimation<pcl::PointXYZ, pcl::ESFSignature640>);
216216

217217
std::shared_ptr<pcl::rec_3d_framework::GlobalEstimator<pcl::PointXYZ, pcl::ESFSignature640> > cast_estimator;
218-
cast_estimator = boost::dynamic_pointer_cast<pcl::rec_3d_framework::ESFEstimation<pcl::PointXYZ, pcl::ESFSignature640> > (estimator);
218+
cast_estimator = std::dynamic_pointer_cast<pcl::rec_3d_framework::ESFEstimation<pcl::PointXYZ, pcl::ESFSignature640> > (estimator);
219219

220220
pcl::rec_3d_framework::GlobalNNPipeline<flann::L1, pcl::PointXYZ, pcl::ESFSignature640> global;
221221
global.setDataSource (cast_source);

apps/3d_rec_framework/tools/apps/src/local_recognition_mian_dataset.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ main (int argc, char ** argv)
464464
estimator->setSupportRadius (0.04f);
465465

466466
std::shared_ptr<pcl::rec_3d_framework::LocalEstimator<pcl::PointXYZ, pcl::Histogram<352> > > cast_estimator;
467-
cast_estimator = boost::dynamic_pointer_cast<pcl::rec_3d_framework::LocalEstimator<pcl::PointXYZ, pcl::Histogram<352> > > (estimator);
467+
cast_estimator = std::dynamic_pointer_cast<pcl::rec_3d_framework::LocalEstimator<pcl::PointXYZ, pcl::Histogram<352> > > (estimator);
468468

469469
pcl::rec_3d_framework::LocalRecognitionPipeline<flann::L1, pcl::PointXYZ, pcl::Histogram<352> > local;
470470
local.setDataSource (cast_source);
@@ -496,7 +496,7 @@ main (int argc, char ** argv)
496496
estimator->setSupportRadius (desc_radius);
497497

498498
std::shared_ptr<pcl::rec_3d_framework::LocalEstimator<pcl::PointXYZ, pcl::Histogram<352> > > cast_estimator;
499-
cast_estimator = boost::dynamic_pointer_cast<pcl::rec_3d_framework::LocalEstimator<pcl::PointXYZ, pcl::Histogram<352> > > (estimator);
499+
cast_estimator = std::dynamic_pointer_cast<pcl::rec_3d_framework::LocalEstimator<pcl::PointXYZ, pcl::Histogram<352> > > (estimator);
500500

501501
pcl::rec_3d_framework::LocalRecognitionPipeline<flann::L1, pcl::PointXYZ, pcl::Histogram<352> > local;
502502
local.setDataSource (cast_source);
@@ -528,7 +528,7 @@ main (int argc, char ** argv)
528528
estimator->setSupportRadius (0.04f);
529529

530530
std::shared_ptr<pcl::rec_3d_framework::LocalEstimator<pcl::PointXYZ, pcl::FPFHSignature33> > cast_estimator;
531-
cast_estimator = boost::dynamic_pointer_cast<pcl::rec_3d_framework::LocalEstimator<pcl::PointXYZ, pcl::FPFHSignature33> > (estimator);
531+
cast_estimator = std::dynamic_pointer_cast<pcl::rec_3d_framework::LocalEstimator<pcl::PointXYZ, pcl::FPFHSignature33> > (estimator);
532532

533533
pcl::rec_3d_framework::LocalRecognitionPipeline<flann::L1, pcl::PointXYZ, pcl::FPFHSignature33> local;
534534
local.setDataSource (cast_source);

apps/src/feature_matching.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,13 @@ void ICCVTutorial<FeatureType>::extractDescriptors (typename pcl::PointCloud<pcl
247247

248248
pcl::copyPointCloud(*keypoints, *kpts);
249249

250-
typename pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType>::Ptr feature_from_normals = boost::dynamic_pointer_cast<pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType> > (feature_extractor_);
250+
typename pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType>::Ptr feature_from_normals = std::dynamic_pointer_cast<pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType> > (feature_extractor_);
251251

252252
feature_extractor_->setSearchSurface(input);
253253
feature_extractor_->setInputCloud(kpts);
254254

255255
if (feature_from_normals)
256-
//if (boost::dynamic_pointer_cast<typename pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType> > (feature_extractor_))
256+
//if (std::dynamic_pointer_cast<typename pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType> > (feature_extractor_))
257257
{
258258
cout << "normal estimation..." << std::flush;
259259
typename pcl::PointCloud<pcl::Normal>::Ptr normals (new pcl::PointCloud<pcl::Normal>);

apps/src/organized_segmentation_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ OrganizedSegmentationDemo::cloud_cb (const CloudConstPtr& cloud)
279279
ne.setInputCloud (cloud);
280280
ne.compute (*normal_cloud);
281281
float* distance_map = ne.getDistanceMap ();
282-
std::shared_ptr<pcl::EdgeAwarePlaneComparator<PointT,pcl::Normal> > eapc = boost::dynamic_pointer_cast<pcl::EdgeAwarePlaneComparator<PointT,pcl::Normal> >(edge_aware_comparator_);
282+
std::shared_ptr<pcl::EdgeAwarePlaneComparator<PointT,pcl::Normal> > eapc = std::dynamic_pointer_cast<pcl::EdgeAwarePlaneComparator<PointT,pcl::Normal> >(edge_aware_comparator_);
283283
eapc->setDistanceMap (distance_map);
284284
eapc->setDistanceThreshold (0.01f, false);
285285

doc/tutorials/content/sources/iccv2011/src/tutorial.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,13 @@ void ICCVTutorial<FeatureType>::extractDescriptors (typename pcl::PointCloud<pcl
255255

256256
pcl::copyPointCloud(*keypoints, *kpts);
257257

258-
typename pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType>::Ptr feature_from_normals = boost::dynamic_pointer_cast<pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType> > (feature_extractor_);
258+
typename pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType>::Ptr feature_from_normals = std::dynamic_pointer_cast<pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType> > (feature_extractor_);
259259

260260
feature_extractor_->setSearchSurface(input);
261261
feature_extractor_->setInputCloud(kpts);
262262

263263
if (feature_from_normals)
264-
//if (boost::dynamic_pointer_cast<typename pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType> > (feature_extractor_))
264+
//if (std::dynamic_pointer_cast<typename pcl::FeatureFromNormals<pcl::PointXYZRGB, pcl::Normal, FeatureType> > (feature_extractor_))
265265
{
266266
cout << "normal estimation..." << std::flush;
267267
typename pcl::PointCloud<pcl::Normal>::Ptr normals (new pcl::PointCloud<pcl::Normal>);

io/src/oni_grabber.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ ONIGrabber::ONIGrabber (const std::string& file_name, bool repeat, bool stream)
8585
, point_cloud_rgba_signal_ ()
8686
{
8787
openni_wrapper::OpenNIDriver& driver = openni_wrapper::OpenNIDriver::getInstance ();
88-
device_ = boost::dynamic_pointer_cast< openni_wrapper::DeviceONI> (driver.createVirtualDevice (file_name, repeat, stream));
88+
device_ = std::dynamic_pointer_cast< openni_wrapper::DeviceONI> (driver.createVirtualDevice (file_name, repeat, stream));
8989

9090
if (!device_->hasDepthStream ())
9191
PCL_THROW_EXCEPTION (pcl::IOException, "Device does not provide 3D information.");

outofcore/include/pcl/outofcore/impl/monitor_queue.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#define PCL_OUTOFCORE_MONITOR_QUEUE_IMPL_H_
55

66
#include <queue>
7+
#include <condition_variable>
78

89
template<typename DataT>
910
class MonitorQueue : boost::noncopyable
@@ -12,15 +13,15 @@ class MonitorQueue : boost::noncopyable
1213
void
1314
push (const DataT& newData)
1415
{
15-
std::lock_guard<std::mutex> lock (monitor_mutex_);
16+
std::unique_lock<std::mutex> lock (monitor_mutex_);
1617
queue_.push (newData);
1718
item_available_.notify_one ();
1819
}
1920

2021
DataT
2122
pop ()
2223
{
23-
std::lock_guard<std::mutex> lock (monitor_mutex_);
24+
std::unique_lock<std::mutex> lock (monitor_mutex_);
2425

2526
if (queue_.empty ())
2627
{

outofcore/include/pcl/outofcore/visualization/object.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
//#include <boost/date_time.hpp>
1717
//#include <boost/filesystem.hpp>
1818
#include <thread>
19+
#include <mutex>
1920

2021
//Forward Declaration
2122
class Scene;

outofcore/src/visualization/outofcore_cloud.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ OutofcoreCloud::pcdReaderThread ()
6262
while (true)
6363
{
6464
//{
65-
//std::lock_guard<std::mutex> lock (pcd_queue_mutex);
66-
//pcd_queue_mutex.wait (lock);
67-
pcd_queue_ready.wait(pcd_queue_mutex);
65+
std::unique_lock<std::mutex> lock (pcd_queue_mutex);
66+
pcd_queue_ready.wait (lock);
67+
//pcd_queue_ready.wait(pcd_queue_mutex);
6868
//}
6969
//pcd_queue_ready
7070

recognition/include/pcl/recognition/3rdparty/metslib/abstract-search.hh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ namespace mets {
133133
/// An exception mets::no_moves_error can be risen when no move is
134134
/// possible.
135135
virtual void
136-
search()
137-
throw(no_moves_error) = 0;
136+
search() = 0;
138137

139138
/// @brief The solution recorder instance.
140139
const solution_recorder&

0 commit comments

Comments
 (0)