kinematics-dynamics
Loading...
Searching...
No Matches
roboticslab::FtCompensation Class Reference

Produces motion in the direction of an externally applied force measured by a force-torque sensor (pretty much mimicking a classical gravity compensation app).

#include <FtCompensation.hpp>

Inheritance diagram for roboticslab::FtCompensation:

Public Member Functions

bool configure (yarp::os::ResourceFinder &rf) override
bool updateModule () override
bool interruptModule () override
double getPeriod () override
bool close () override

Protected Member Functions

void run () override

Private Types

using cartesian_cmd = void (ICartesianControl::*)(const std::vector<double> &)

Private Member Functions

bool readSensor (KDL::Wrench &wrench) const
bool compensateTool (KDL::Wrench &wrench) const
bool applyImpedance (KDL::Wrench &wrench)

Private Attributes

yarp::dev::PolyDriver cartesianDevice
ICartesianControl * iCartesianControl {nullptr}
int sensorIndex {-1}
yarp::dev::PolyDriver sensorDevice
yarp::dev::ISixAxisForceTorqueSensors * sensor {nullptr}
KDL::Rotation R_N_sensor
KDL::Vector toolCoM_N
KDL::Wrench toolWeight_0
KDL::Wrench initialOffset
KDL::Frame initialPose
KDL::Frame previousPose
cartesian_cmd command
bool dryRun {false}
bool usingTool {false}
bool enableImpedance {false}
double linGain {0.0}
double rotGain {0.0}
double linStiffness {0.0}
double rotStiffness {0.0}
double linDamping {0.0}
double rotDamping {0.0}
double forceDeadband {0.0}
double torqueDeadband {0.0}

The documentation for this class was generated from the following files: