|
#include <armarx/control/common/ft/FTSensor.h>
Public Types | |
using | FTConfig = arondto::FTConfig |
Public Member Functions | |
bool | calibrate (const FTConfig &c, double deltaT) |
Eigen::Vector6f & | compensateTCPGravity (const FTConfig &data) |
void | enableSafeGuard (bool enableForceGuard, bool enableTorqueGuard) |
FTSensor () | |
Eigen::Vector6f & | getFilteredForceTorque (const FTConfig &data) |
Eigen::Vector3f & | getSafeGuardForceOffset () |
void | initialize (const VirtualRobot::RobotNodeSetPtr &rns, const armarx::RobotUnitPtr &robotUnit, const FTConfig &c) |
bool | isForceGuardEnabled () |
bool | isSafe (const FTConfig &c) |
bool | isTorqueGuardEnabled () |
void | reset () |
void | resetSafeGuardOffset (const FTConfig &c) |
void | updateStatus (const FTConfig &c, Eigen::Vector6f ¤tFT, double deltaT, bool firstRun) |
~FTSensor () | |
Public Attributes | |
std::atomic_bool | calibrated {false} |
std::atomic_bool | ftSafe {true} |
Definition at line 51 of file FTSensor.h.
using FTConfig = arondto::FTConfig |
Definition at line 54 of file FTSensor.h.
|
inline |
Definition at line 56 of file FTSensor.h.
|
inline |
Definition at line 57 of file FTSensor.h.
bool calibrate | ( | const FTConfig & | c, |
double | deltaT | ||
) |
this will calibrate the force torque value in FTSensorFrame until timeLimit is reached
rt is ready only if the FT sensor is calibrated, and the rt2interface buffer is updated (see above)
Definition at line 211 of file FTSensor.cpp.
Eigen::Vector6f & compensateTCPGravity | ( | const FTConfig & | data | ) |
static compensation in root frame
Definition at line 264 of file FTSensor.cpp.
void enableSafeGuard | ( | bool | enableForceGuard, |
bool | enableTorqueGuard | ||
) |
Definition at line 173 of file FTSensor.cpp.
Eigen::Vector6f & getFilteredForceTorque | ( | const FTConfig & | data | ) |
Eigen::Vector3f & getSafeGuardForceOffset | ( | ) |
Definition at line 332 of file FTSensor.cpp.
void initialize | ( | const VirtualRobot::RobotNodeSetPtr & | rns, |
const armarx::RobotUnitPtr & | robotUnit, | ||
const FTConfig & | c | ||
) |
bool isForceGuardEnabled | ( | ) |
Definition at line 186 of file FTSensor.cpp.
bool isSafe | ( | const FTConfig & | c | ) |
bool isTorqueGuardEnabled | ( | ) |
Definition at line 192 of file FTSensor.cpp.
void reset | ( | ) |
you have to call this method only in the first loop of rtRun
Definition at line 91 of file FTSensor.cpp.
void resetSafeGuardOffset | ( | const FTConfig & | c | ) |
void updateStatus | ( | const FTConfig & | c, |
Eigen::Vector6f & | currentFT, | ||
double | deltaT, | ||
bool | firstRun | ||
) |
TODO how to toggle recalibration?
Definition at line 119 of file FTSensor.cpp.
std::atomic_bool calibrated {false} |
Definition at line 76 of file FTSensor.h.
std::atomic_bool ftSafe {true} |
Definition at line 77 of file FTSensor.h.