acceptancetest_ros.hpp
Go to the documentation of this file.
1 #ifndef ACCEPTANCE_TEST_HPP
2 #define ACCEPTANCE_TEST_HPP
3 
4 #include <ros/ros.h>
6 #include <ros_client.cpp>
7 
8 #include <vector>
9 
11 public:
14  : AbstAcceptanceTest(rclient)
15  {
17  }
19 
20  void go_initpos(double dtaskduration = 7.0){
21  robot_client.go_init(dtaskduration);
22  }
23 
24  void set_joint_angles(std::string joint_group,
25  std::vector<double> joint_angles,
26  std::string msg_tasktitle = "",
27  double task_duration = 7.0,
28  bool do_wait = true
29  ){
30  /*
31  Move by passing joint angles of an arm.
32  @type joint_group: str
33  @type joint_angles: [double]
34  @type msg_tasktitle: str
35  @type task_duration: double
36  */
37  ROS_INFO("'''%s'''",msg_tasktitle.c_str());
38  robot_client.set_joint_angles_deg(joint_group,joint_angles,task_duration,do_wait);
39  }
40 
41  void set_pose(std::string joint_group,
42  std::vector<double> pose,
43  std::vector<double> rpy,
44  std::string msg_tasktitle="",
45  double task_duration=7.0,
46  bool do_wait=true,
47  std::string ref_frame_name=""){
48  ROS_INFO("This method has not been implemented yet.");
49  }
50 
51  void set_pose_relative(std::string joint_group,
52  int dx=0, int dy=0,int dz=0, int dr=0,int dp=0,int dw=0,
53  std::string msg_tasktitle="",
54  double task_duration=7.0,
55  bool do_wait=true){
56  ROS_INFO("This method has not been implemented yet.");
57  }
58 
59 };
60 #endif
void go_init(double task_duration=7.0)
Definition: ros_client.cpp:166
void go_initpos(double dtaskduration=7.0)
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="")
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)
#define ROS_INFO(...)
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)
AcceptanceTestRos(ROS_Client rclient)
void set_joint_angles_deg(std::string groupname, std::vector< double > positions_deg, double duration=7.0, bool wait=false)
Definition: ros_client.cpp:251
void init_action_clients()
Definition: ros_client.cpp:105


hironx_ros_bridge
Author(s): Kei Okada , Isaac I.Y. Saito
autogenerated on Thu May 14 2020 03:52:05