3 #ifndef __FT_COMPENSATION_HPP__
4 #define __FT_COMPENSATION_HPP__
6 #include <yarp/os/PeriodicThread.h>
7 #include <yarp/os/RFModule.h>
9 #include <yarp/dev/MultipleAnalogSensorsInterfaces.h>
10 #include <yarp/dev/PolyDriver.h>
12 #include <kdl/frames.hpp>
27 public yarp::os::PeriodicThread
31 : yarp::os::PeriodicThread(1.0, yarp::os::ShouldUseSystemClock::Yes, yarp::os::PeriodicThreadClock::Absolute)
37 bool configure(yarp::os::ResourceFinder & rf)
override;
38 bool updateModule()
override;
39 bool interruptModule()
override;
40 double getPeriod()
override;
41 bool close()
override;
47 bool readSensor(KDL::Wrench & wrench)
const;
48 bool compensateTool(KDL::Wrench & wrench)
const;
49 bool applyImpedance(KDL::Wrench & wrench);
51 yarp::dev::PolyDriver cartesianDevice;
55 yarp::dev::PolyDriver sensorDevice;
56 yarp::dev::ISixAxisForceTorqueSensors * sensor;
58 KDL::Rotation R_N_sensor;
59 KDL::Vector toolCoM_N;
60 KDL::Wrench toolWeight_0;
61 KDL::Wrench initialOffset;
62 KDL::Frame initialPose;
63 KDL::Frame previousPose;
66 cartesian_cmd command;
82 double torqueDeadband;
Contains roboticslab::ICartesianControl and related vocabs.
Produces motion in the direction of an externally applied force measured by a force-torque sensor (pr...
Definition: FtCompensation.hpp:28
Abstract base class for a cartesian controller.
Definition: ICartesianControl.h:146
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:6