ForceTorqueUtility.h
Go to the documentation of this file.
1 /**
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package control::ArmarXObjects::controller_creator
17  * @author Jianfeng Gao ( jianfeng dot gao at kit dot edu )
18  * @date 2023
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 
24 #pragma once
25 
26 #include <memory>
27 
28 #include <Eigen/Dense>
29 
31 #include <RobotAPI/interface/units/ForceTorqueUnit.h>
33 
35 {
36  class ForceTorqueUtility;
37  using ForceTorqueUtilityPtr = std::shared_ptr<ForceTorqueUtility>;
38 
40  {
41  public:
42  ForceTorqueUtility(const ForceTorqueUnitObserverInterfacePrx& forceTorqueObserver, const std::string& FTDatefieldName);
43 
44  Eigen::Vector3f getForce();
46 
47  Eigen::Vector3f getTorque();
49 
50  void calibrate();
51 
54  Eigen::Vector3f initialForce = Eigen::Vector3f::Zero();
55  Eigen::Vector3f initialTorque = Eigen::Vector3f::Zero();
56  };
57 }
armarx::control::common::ft::ForceTorqueUtility::getForce
Eigen::Vector3f getForce()
Definition: ForceTorqueUtility.cpp:38
armarx::control::common::ft
This file is part of ArmarX.
Definition: aron_conversions.cpp:29
armarx::control::common::ft::ForceTorqueUtility::getForceTorque
Eigen::Vector6f getForceTorque()
Definition: ForceTorqueUtility.cpp:55
armarx::control::common::ft::ForceTorqueUtility::torqueDf
DatafieldRefPtr torqueDf
Definition: ForceTorqueUtility.h:53
armarx::control::common::ft::ForceTorqueUtility::getFramedForce
FramedDirection getFramedForce()
Definition: ForceTorqueUtility.cpp:43
IceInternal::Handle< DatafieldRef >
DatafieldRef.h
armarx::control::common::ft::ForceTorqueUtilityPtr
std::shared_ptr< ForceTorqueUtility > ForceTorqueUtilityPtr
Definition: ForceTorqueUtility.h:37
FramedPose.h
armarx::control::common::ft::ForceTorqueUtility::calibrate
void calibrate()
Definition: ForceTorqueUtility.cpp:64
armarx::control::common::ft::ForceTorqueUtility::ForceTorqueUtility
ForceTorqueUtility(const ForceTorqueUnitObserverInterfacePrx &forceTorqueObserver, const std::string &FTDatefieldName)
Definition: ForceTorqueUtility.cpp:31
armarx::FramedDirection
FramedDirection is a 3 dimensional direction vector with a reference frame. The reference frame can b...
Definition: FramedPose.h:83
armarx::control::common::ft::ForceTorqueUtility::initialForce
Eigen::Vector3f initialForce
Definition: ForceTorqueUtility.h:54
Eigen::Matrix< float, 6, 1 >
armarx::control::common::ft::ForceTorqueUtility::initialTorque
Eigen::Vector3f initialTorque
Definition: ForceTorqueUtility.h:55
armarx::control::common::ft::ForceTorqueUtility::forceDf
DatafieldRefPtr forceDf
Definition: ForceTorqueUtility.h:52
armarx::control::common::ft::ForceTorqueUtility::getTorque
Eigen::Vector3f getTorque()
Definition: ForceTorqueUtility.cpp:50
armarx::control::common::ft::ForceTorqueUtility
Definition: ForceTorqueUtility.h:39