op3_localization.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 /* Author: SCH */
18 
19 #ifndef OP3_LOCALIZATION_H_
20 #define OP3_LOCALIZATION_H_
21 
22 // std
23 #include <string>
24 
25 // ros dependencies
26 #include <ros/ros.h>
27 
28 // ros msg, srv
29 #include <std_msgs/String.h>
30 #include <std_msgs/Int16.h>
31 #include <geometry_msgs/PoseStamped.h>
34 
35 // eigen
36 #include <eigen3/Eigen/Eigen>
37 
38 // boost
39 #include <boost/thread.hpp>
40 
42 
43 namespace robotis_op
44 {
45 
47 {
48 
49 private:
50  //ros node handle
52 
53  //subscriber
55 // ros::Subscriber pelvis_base_walking_msg_sub_;
57 
60 
61  geometry_msgs::PoseStamped pelvis_pose_;
62  geometry_msgs::PoseStamped pelvis_pose_old_;
63  geometry_msgs::PoseStamped pelvis_pose_base_walking_;
64  geometry_msgs::PoseStamped pelvis_pose_offset_;
65 
66  geometry_msgs::PoseStamped pelvis_pose_base_walking_new_;
67  geometry_msgs::PoseStamped pelvis_pose_offset_new_;
68 
70  double err_tol_;
71 
73 
74  boost::mutex mutex_;
75 
76 public:
77  void initialize();
78  void pelvisPoseCallback(const geometry_msgs::PoseStamped::ConstPtr& msg);
79 // void pelvisPoseBaseWalkingCallback(const geometry_msgs::PoseStamped::ConstPtr& msg);
80  void pelvisPoseResetCallback(const std_msgs::String::ConstPtr& msg);
81  Eigen::MatrixXd calcVWerr(Eigen::MatrixXd tar_position, Eigen::MatrixXd curr_position,
82  Eigen::MatrixXd tar_orientation, Eigen::MatrixXd curr_orientation);
83 
84  //constructor
86  //destructor
88 
89  void update();
90  void process();
91 
92 };
93 
94 } // namespace
95 
96 #endif // THORMANG3_LOCALIZATION_H_
Eigen::MatrixXd calcVWerr(Eigen::MatrixXd tar_position, Eigen::MatrixXd curr_position, Eigen::MatrixXd tar_orientation, Eigen::MatrixXd curr_orientation)
geometry_msgs::PoseStamped pelvis_pose_base_walking_new_
geometry_msgs::PoseStamped pelvis_pose_base_walking_
geometry_msgs::PoseStamped pelvis_pose_offset_new_
geometry_msgs::PoseStamped pelvis_pose_old_
tf::TransformBroadcaster broadcaster_
tf::StampedTransform pelvis_trans_
void pelvisPoseResetCallback(const std_msgs::String::ConstPtr &msg)
geometry_msgs::PoseStamped pelvis_pose_offset_
geometry_msgs::PoseStamped pelvis_pose_
void pelvisPoseCallback(const geometry_msgs::PoseStamped::ConstPtr &msg)
ros::Subscriber pelvis_pose_msg_sub_
ros::Subscriber pelvis_reset_msg_sub_


op3_localization
Author(s): SCH
autogenerated on Mon Jun 10 2019 14:41:20