gravity_compensation_params.h
Go to the documentation of this file.
1 /*
2  * gravity_compensation_params.h
3  *
4  * Created on: Nov 11, 2013
5  * Authors: Francisco Viña
6  * fevb <at> kth.se
7  */
8 
9 /* Copyright (c) 2013, Francisco Viña, CVAP, KTH
10  All rights reserved.
11 
12  Redistribution and use in source and binary forms, with or without
13  modification, are permitted provided that the following conditions are met:
14  * Redistributions of source code must retain the above copyright
15  notice, this list of conditions and the following disclaimer.
16  * Redistributions in binary form must reproduce the above copyright
17  notice, this list of conditions and the following disclaimer in the
18  documentation and/or other materials provided with the distribution.
19  * Neither the name of KTH nor the
20  names of its contributors may be used to endorse or promote products
21  derived from this software without specific prior written permission.
22 
23  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26  DISCLAIMED. IN NO EVENT SHALL KTH BE LIABLE FOR ANY
27  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34 
35 
36 #ifndef GRAVITY_COMPENSATION_PARAMS_H_
37 #define GRAVITY_COMPENSATION_PARAMS_H_
38 
39 #include <vector>
40 #include <tf/transform_datatypes.h>
41 #include <eigen3/Eigen/Core>
42 
44 {
45 public:
46 
48 
50 
51  // set/get the F/T sensor bias
52  // used to 'zero' the F/T sensor signal
53  void setBias(const Eigen::Matrix<double, 6, 1> &bias);
54  Eigen::Matrix<double, 6, 1> getBias();
55 
56  // set/get the mass of the gripper
57  // used for compensating gravity
58  void setGripperMass(const double &gripper_mass);
59  double getGripperMass();
60 
61  // set/get the COM of the gripper
62  // Used for compensating gravity.
63  // Compensation assumes that the gripper COM is fixed
64  // with respect to the F/T sensor
65  void setGripperCOM(const tf::StampedTransform &gripper_com);
67 
68 private:
69 
70  // 6 element bias vector
71  Eigen::Matrix<double, 6, 1> m_bias;
72 
73  // the mass of the gripper
75 
76  // (fixed) pose of the center of mass of the gripper
77  // with respect to the F/T sensor
79 
80 };
81 
82 
83 
84 #endif
void setGripperMass(const double &gripper_mass)
Eigen::Matrix< double, 6, 1 > m_bias
void setBias(const Eigen::Matrix< double, 6, 1 > &bias)
void setGripperCOM(const tf::StampedTransform &gripper_com)
Eigen::Matrix< double, 6, 1 > getBias()


gravity_compensation
Author(s): Francisco Vina
autogenerated on Mon May 10 2021 02:27:45