postures.hpp
Go to the documentation of this file.
00001 /*
00002  * Copyright 2016 SoftBank Robotics Europe
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
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


romeo_moveit_actions
Author(s):
autogenerated on Thu Jun 6 2019 21:57:24