Looking for Caresses
SoRo project to let Miro interact as a pet would do
 All Classes Functions Variables Pages
Aa_faceDetection.h
1 #ifndef AA_FACEDETECTION_H
2 #define AA_FACEDETECTION_H
3 
4 #include <ros/ros.h>
5 #include "opencv_apps/FaceArrayStamped.h"
6 #include "look_caresses_pkg/platform_control.h"
7 
9 private:
10  bool detectedLeft;
11  int detectedFaceConsec;
12  ros::Publisher pubPlat;
13  ros::Subscriber subImageDetectRight;
14  ros::Subscriber subImageDetectLeft;
15  ros::NodeHandle nh;
16 
17  void subImgDetectCallbackRight(const opencv_apps::FaceArrayStamped &msgFacesRight);
18  void subImgDetectCallbackLeft(const opencv_apps::FaceArrayStamped &msgFacesLeft);
19  void subTopics();
20  void unsubTopics();
21 
22 public:
23  Aa_faceDetection (ros::NodeHandle nh, ros::Publisher pubPlat);
24  int main();
25 };
26 
27 #endif // AA_FACEDETECTION_H
int main()
The main for face detection task. It make MiRo turns around z axis until a face is visible in both ca...
Aa_faceDetection(ros::NodeHandle nh, ros::Publisher pubPlat)
Costructor for phase Aa task.