From 0f3a0557538d3ea6751cc20b37661fa5eee5343b Mon Sep 17 00:00:00 2001 From: chenzhiwo Date: Thu, 18 Aug 2016 16:25:23 +0800 Subject: [PATCH 1/2] Add a launch file that using usb camera. --- launch/face_recognition.launch | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 launch/face_recognition.launch diff --git a/launch/face_recognition.launch b/launch/face_recognition.launch new file mode 100644 index 0000000..e661398 --- /dev/null +++ b/launch/face_recognition.launch @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + From 745c464538580ce8e0ca94014029fcee7e3dce3d Mon Sep 17 00:00:00 2001 From: chenzhiwo Date: Thu, 18 Aug 2016 16:32:08 +0800 Subject: [PATCH 2/2] [face_recognition.cpp] Fix Wreorder warning, it_ will be initialized after pnh_. --- src/face_recognition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/face_recognition.cpp b/src/face_recognition.cpp index 48b764f..24d5861 100644 --- a/src/face_recognition.cpp +++ b/src/face_recognition.cpp @@ -48,9 +48,9 @@ class FaceRecognition public: FaceRecognition(std::string name) : + pnh_("~"), frl(), it_(nh_), - pnh_("~"), as_(nh_, name, boost::bind(&FaceRecognition::executeCB, this, _1), false) { //a face recognized with confidence value higher than the confidence_value threshold is accepted as valid.