robotis_state.h
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright 2018 ROBOTIS CO., LTD.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *******************************************************************************/
16 
17 #ifndef MANIPULATOR_BASE_MODULE_ROBOTIS_STATE_H_
18 #define MANIPULATOR_BASE_MODULE_ROBOTIS_STATE_H_
19 
20 #include <eigen3/Eigen/Eigen>
21 
22 #include <std_msgs/Float64.h>
23 #include <std_msgs/String.h>
24 
26 
27 #include "manipulator_h_base_module_msgs/JointPose.h"
28 #include "manipulator_h_base_module_msgs/KinematicsPose.h"
30 
31 namespace robotis_manipulator_h
32 {
33 
35 {
36 public:
37  RobotisState();
38  ~RobotisState();
39 
40  bool is_moving_;
41 
42  // trajectory
43  int cnt_;
45  double mov_time_;
46  double smp_time_;
47 
48  Eigen::MatrixXd calc_joint_tra_;
49  Eigen::MatrixXd calc_task_tra_;
50 
51  Eigen::MatrixXd joint_ini_pose_;
52 
53  // msgs
54  manipulator_h_base_module_msgs::JointPose joint_pose_msg_;
55  manipulator_h_base_module_msgs::KinematicsPose kinematics_pose_msg_;
56 
57  // inverse kinematics
58  bool ik_solve_;
59  Eigen::MatrixXd ik_target_position_;
62 
63  void setInverseKinematics(int cnt, Eigen::MatrixXd start_rotation);
64 };
65 
66 }
67 
68 #endif /* MANIPULATOR_BASE_MODULE_ROBOTIS_STATE_H_ */
void setInverseKinematics(int cnt, Eigen::MatrixXd start_rotation)
manipulator_h_base_module_msgs::JointPose joint_pose_msg_
Definition: robotis_state.h:54
manipulator_h_base_module_msgs::KinematicsPose kinematics_pose_msg_
Definition: robotis_state.h:55


manipulator_h_base_module
Author(s): SCH
autogenerated on Mon Jun 10 2019 14:02:58