libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
hatpConnection.hpp
1 #ifndef HATPCONNECTION_HPP
2 #define HATPCONNECTION_HPP
3 
4 #include <string>
5 
6 
7 #include "../taskManagerInterface.hpp"
8 
10 extern taskManagerInterface* TMI;
11 
14 struct HumanJoint {
15  p3d_vector3 pos;
16  double confidence;
17 };
18 
24 {
25  HumanJoint HEAD, NECK, TORSO;
26  HumanJoint SHOULDER_RIGHT;
27  HumanJoint SHOULDER_LEFT;
28  HumanJoint ELBOW_RIGHT;
29  HumanJoint ELBOW_LEFT;
30  HumanJoint HIP_LEFT;
31  HumanJoint HIP_RIGHT;
32  HumanJoint HAND_RIGHT;
33  HumanJoint HAND_LEFT;
34  HumanJoint KNEE_RIGHT;
35  HumanJoint KNEE_LEFT;
36  HumanJoint FOOT_RIGHT;
37  HumanJoint FOOT_LEFT;
38 };
39 
40 
41 
43 {
44  MOVE3D_STATIC_LOGGER;
45 public:
47 
48  bool connectMsgConnector();
49 
50  const std::string& interpreteJson(const std::string& u);
51  configPt getConfFromJointsPos( p3d_rob* robot, HumanJoints& data );
52 
60  void readFromFile(std::string path);
61 
76  void updateScenario(std::string rootStr);
77 
78 
79 private:
80  std::string _result;
81 };
82 
83 #endif // HATPCONNECTION_HPP
Kinect joint.
Definition: hatpConnection.hpp:14
Only HEAD, NECK, TORSO, SHOULDERS, ELBOW, HAND, HIP, KNEE and FOOT.
Definition: hatpConnection.hpp:23
Definition: taskManagerInterface.hpp:43
Definition: hatpConnection.hpp:42
configPt getConfFromJointsPos(p3d_rob *robot, HumanJoints &data)
Computes a condfiguration from a set of points.
Definition: hatpConnection.cpp:22
void updateScenario(std::string rootStr)
Change the current scene following the details in the param.
Definition: hatpConnection.cpp:1072
void readFromFile(std::string path)
read the file with the given path this file must be under json format, with all the commands numbered...
Definition: hatpConnection.cpp:1030