Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef POSTURES_HPP
00018 #define POSTURES_HPP
00019
00020 #include <stdlib.h>
00021 #include <string>
00022 #include <vector>
00023
00024 namespace moveit_simple_actions
00025 {
00027 class Posture
00028 {
00029 public:
00031 Posture(const std::string robot_name,
00032 const std::string eef_name,
00033 const std::string group_name);
00034
00036 void initHandPose(const double &value, const int &pose);
00037
00039 bool poseHeadDown();
00040
00042 bool poseHeadZero();
00043
00045 bool poseHandOpen(const std::string &end_eff);
00046
00048 bool poseHandClose(const std::string &end_eff);
00049
00051 bool poseHand(const std::string &end_eff,
00052 const std::string &group,
00053 const int &pose_id);
00054
00055 private:
00057 bool goToPose(const std::string group_name,
00058 std::vector<double> *pose);
00059
00061 std::vector<double> pose_head_down_;
00062
00064 std::vector<double> pose_head_zero_;
00065
00067 std::vector< std::vector<double> > pose_hand_;
00068
00070 std::vector< std::vector<double> > pose_arm_;
00071 };
00072 }
00073 #endif // POSTURES_HPP