abst_acceptancetest.hpp
Go to the documentation of this file.
1 #ifndef ABST_ACCEPTANCETEST_HPP
2 #define ABST_ACCEPTANCETEST_HPP
3 
4 #include <string>
5 #include <vector>
6 
7 #include <ros/ros.h>
8 #include <ros_client.cpp>
9 
11 public:
12  const std::string MSG_ERR_NOTIMPLEMENTED;
13 
15 
16  static std::string GRNAME_LEFT_ARM;
17  static std::string GRNAME_RIGHT_ARM;
18  static std::string GRNAME_TORSO;
19  static std::string GRNAME_HEAD;
20 
22 
25  :default_task_duration(7.0),
26  MSG_ERR_NOTIMPLEMENTED("The method is not implemented in the derived class"),
27  robot_client(rclient)
28  {
29  /*
30  @type robot_client: hironx_ros_bridge.ros_client.ROS_Client or
31  hrpsys.hrpsys_config.HrpsysConfigurator
32  */
33  };
34 
35  AbstAcceptanceTest(ROS_Client rclient, double default_task_duration)
36  :default_task_duration(default_task_duration),
37  MSG_ERR_NOTIMPLEMENTED("The method is not implemented in the derived class"),
38  robot_client(rclient)
39  {
40  /*
41  @type robot_client: hironx_ros_bridge.ros_client.ROS_Client or
42  hrpsys.hrpsys_config.HrpsysConfigurator
43  */
44  };
45 
46  virtual ~AbstAcceptanceTest(){};
47 
48  virtual void go_initpos(double dtaskduration=7.0){
49  //throw NotImplementedError(MSG_ERR_NOTIMPLEMENTED);
50  }
51 
52  virtual void set_joint_angles(std::string joint_group,
53  std::vector<double> joint_angles,
54  std::string msg_tasktitle="",
55  double task_duration=7.0,
56  bool do_wait=true)
57  {
58  /*
59  Move by passing joint angles of an arm.
60  @type joint_group: str
61  @type joint_angles: [double]
62  @type msg_tasktitle: str
63  @type task_duration: double
64  */
65  //throw NotImplementedError(MSG_ERR_NOTIMPLEMENTED);
66  }
67 
68  virtual void set_pose(std::string joint_group,
69  std::vector<double> pose,
70  std::vector<double> rpy,
71  std::string msg_tasktitle="",
72  double task_duration=7.0,
73  bool do_wait=true,
74  std::string ref_frame_name=""){
75  //throw NotImplementedError(MSG_ERR_NOTIMPLEMENTED);
76  }
77 
78  virtual void set_pose_relative(std::string joint_group,
79  int dx=0, int dy=0,int dz=0, int dr=0,int dp=0,int dw=0,
80  std::string msg_tasktitle="",
81  double task_duration=7.0,
82  bool do_wait=true){
83  //throw NotImplementedError(MSG_ERR_NOTIMPLEMENTED);
84  }
85 
86 };
87 
88 std::string AbstAcceptanceTest::GRNAME_LEFT_ARM = "larm";
89 std::string AbstAcceptanceTest::GRNAME_RIGHT_ARM = "rarm";
90 std::string AbstAcceptanceTest::GRNAME_TORSO = "torso";
91 std::string AbstAcceptanceTest::GRNAME_HEAD = "head";
92 
93 
94 #endif
virtual void set_pose_relative(std::string joint_group, int dx=0, int dy=0, int dz=0, int dr=0, int dp=0, int dw=0, std::string msg_tasktitle="", double task_duration=7.0, bool do_wait=true)
static std::string GRNAME_HEAD
AbstAcceptanceTest(ROS_Client rclient, double default_task_duration)
static std::string GRNAME_LEFT_ARM
AbstAcceptanceTest(ROS_Client rclient)
virtual void set_pose(std::string joint_group, std::vector< double > pose, std::vector< double > rpy, std::string msg_tasktitle="", double task_duration=7.0, bool do_wait=true, std::string ref_frame_name="")
const std::string MSG_ERR_NOTIMPLEMENTED
virtual void set_joint_angles(std::string joint_group, std::vector< double > joint_angles, std::string msg_tasktitle="", double task_duration=7.0, bool do_wait=true)
static std::string GRNAME_RIGHT_ARM
virtual void go_initpos(double dtaskduration=7.0)
static std::string GRNAME_TORSO


hironx_ros_bridge
Author(s): Kei Okada , Isaac I.Y. Saito
autogenerated on Mon Feb 28 2022 23:45:15