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
32#include <RobotAPI/interface/units/ForceTorqueUnit.h>
34
36{
38 using ForceTorqueUtilityPtr = std::shared_ptr<ForceTorqueUtility>;
39
41 {
42 public:
43 ForceTorqueUtility(const ForceTorqueUnitObserverInterfacePrx& forceTorqueObserver,
44 const std::string& FTDatefieldName);
45
46 Eigen::Vector3f getForce();
48
49 Eigen::Vector3f getTorque();
51
52 void calibrate();
53
56 Eigen::Vector3f initialForce = Eigen::Vector3f::Zero();
57 Eigen::Vector3f initialTorque = Eigen::Vector3f::Zero();
58 };
59} // namespace armarx::control::common::ft
FramedDirection is a 3 dimensional direction vector with a reference frame.
Definition FramedPose.h:87
ForceTorqueUtility(const ForceTorqueUnitObserverInterfacePrx &forceTorqueObserver, const std::string &FTDatefieldName)
Matrix< float, 6, 1 > Vector6f
This file is part of ArmarX.
std::shared_ptr< ForceTorqueUtility > ForceTorqueUtilityPtr
IceInternal::Handle< DatafieldRef > DatafieldRefPtr
Definition Observer.h:43