kinematics-dynamics
HaarDetectionController.hpp
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 #ifndef __HAAR_DETECTION_CONTROLLER_HPP__
4 #define __HAAR_DETECTION_CONTROLLER_HPP__
5 
6 #include <yarp/os/BufferedPort.h>
7 #include <yarp/os/RFModule.h>
8 
9 #include <yarp/dev/PolyDriver.h>
10 
11 #include "ICartesianControl.h"
12 #include "IProximitySensors.h"
13 
14 #include "GrabberResponder.hpp"
15 
16 namespace roboticslab
17 {
18 
25 class HaarDetectionController : public yarp::os::RFModule
26 {
27 public:
28  ~HaarDetectionController() override
29  { close(); }
30 
31  bool configure(yarp::os::ResourceFinder & rf) override;
32  bool updateModule() override;
33  bool interruptModule() override;
34  bool close() override;
35  double getPeriod() override;
36 
37 private:
38  GrabberResponder grabberResponder;
39  yarp::os::BufferedPort<yarp::os::Bottle> grabberPort;
40 
41  yarp::dev::PolyDriver cartesianControlDevice;
42  roboticslab::ICartesianControl * iCartesianControl;
43 
44  yarp::dev::PolyDriver sensorsClientDevice;
45  roboticslab::IProximitySensors * iProximitySensors;
46 
47  double period;
48 };
49 
50 } // namespace roboticslab
51 
52 #endif // __HAAR_DETECTION_CONTROLLER_HPP__
Contains roboticslab::ICartesianControl and related vocabs.
Callback class for dealing with incoming grabber data streams.
Definition: GrabberResponder.hpp:21
Create seek-and-follow trajectories based on Haar detection algorithms.
Definition: HaarDetectionController.hpp:26
Abstract base class for a cartesian controller.
Definition: ICartesianControl.h:146
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:6