Revision 0c8d22a5 include/humotion/server/controller.h
include/humotion/server/controller.h | ||
---|---|---|
25 | 25 |
* Excellence Initiative. |
26 | 26 |
*/ |
27 | 27 |
|
28 |
#pragma once |
|
29 |
#include "../gaze_state.h" |
|
30 |
#include "../mouth_state.h" |
|
31 |
#include "../timestamp.h" |
|
32 |
#include "motion_generator.h" |
|
33 |
#include "joint_interface.h" |
|
28 |
#ifndef INCLUDE_HUMOTION_SERVER_CONTROLLER_H_ |
|
29 |
#define INCLUDE_HUMOTION_SERVER_CONTROLLER_H_ |
|
34 | 30 |
|
35 |
namespace humotion{ |
|
36 |
namespace server{ |
|
31 |
#include <vector> |
|
37 | 32 |
|
38 |
class Controller{ |
|
39 |
public: |
|
40 |
Controller(JointInterface *j); |
|
33 |
#include "humotion/gaze_state.h" |
|
34 |
#include "humotion/mouth_state.h" |
|
35 |
#include "humotion/server/joint_interface.h" |
|
36 |
#include "humotion/server/motion_generator.h" |
|
37 |
#include "humotion/timestamp.h" |
|
38 |
|
|
39 |
namespace humotion { |
|
40 |
namespace server { |
|
41 |
|
|
42 |
class Controller { |
|
43 |
public: |
|
44 |
explicit Controller(JointInterface *j); |
|
41 | 45 |
~Controller(); |
42 | 46 |
|
43 | 47 |
void init_motion_generators(); |
44 | 48 |
void calculate_targets(); |
45 | 49 |
void publish_targets(); |
46 | 50 |
|
47 |
|
|
48 | 51 |
void set_gaze_target(GazeState s); |
49 | 52 |
void set_mouth_target(MouthState s); |
50 | 53 |
void set_activated(void); |
51 | 54 |
|
52 |
private: |
|
55 |
private:
|
|
53 | 56 |
bool activated; |
54 | 57 |
void add_motion_generator(MotionGenerator *m); |
55 | 58 |
GazeState relative_gaze_to_absolute_gaze(GazeState relative); |
... | ... | |
62 | 65 |
double last_known_absolute_target_pan; |
63 | 66 |
double last_known_absolute_target_tilt; |
64 | 67 |
double last_known_absolute_target_roll; |
65 |
|
|
66 | 68 |
}; |
67 | 69 |
|
68 |
} |
|
69 |
} |
|
70 |
} // namespace server |
|
71 |
} // namespace humotion |
|
72 |
|
|
73 |
#endif // INCLUDE_HUMOTION_SERVER_CONTROLLER_H_ |
Also available in: Unified diff