30 using namespace ForceTorqueUtility;
40 in.getTriggerOnIncreasingForceVectorLength());
42 const float forceThreshold = in.getForceVectorLengthThreshold();
44 getForceTorqueObserver()->getForceDatafield(in.getFTDatafieldName()));
45 const Eigen::Vector3f weights = in.getForceWeights()->toEigen();
46 const float initialForce =
49 while (!isRunningTaskStopped())
55 if ((in.getTriggerOnDecreasingForceVectorLength() && force < initialForce &&
56 initialForce - force >= forceThreshold) ||
57 (in.getTriggerOnIncreasingForceVectorLength() && force > initialForce &&
58 force - initialForce >= forceThreshold))
63 std::this_thread::sleep_for(std::chrono::milliseconds{10});