Go to the documentation of this file.
37 ForceSensor(
const std::string & name,
const std::string & parentBodyName,
const sva::PTransformd & X_p_f);
59 inline const sva::ForceVecd &
wrench()
const {
return wrench_; }
65 inline const Eigen::Vector3d &
force()
const {
return wrench().force(); }
71 inline const Eigen::Vector3d &
couple()
const {
return wrench().couple(); }
77 inline void wrench(
const sva::ForceVecd & wrench) { wrench_ =
wrench; }
86 sva::ForceVecd wrenchWithoutGravity(
const mc_rbdyn::Robot & robot)
const;
104 sva::ForceVecd worldWrenchWithoutGravity(
const mc_rbdyn::Robot & robot)
const;
124 void loadCalibrator(
const std::string & calib_file,
const Eigen::Vector3d &
gravity = {0., 0., 9.81});
137 void resetCalibrator();
142 const sva::PTransformd & X_fsmodel_fsactual()
const;
146 const sva::PTransformd X_fsactual_parent()
const;
152 const sva::ForceVecd & offset()
const;
163 sva::ForceVecd wrench_;
const Eigen::Vector3d gravity
Definition: constants.h:16
sva::PTransformd X_0_s(const mc_rbdyn::Robot &robot) const
const sva::PTransformd & X_p_f() const
Definition: ForceSensor.h:53
const sva::ForceVecd & wrench() const
Definition: ForceSensor.h:59
sva::PTransformd X_0_f(const mc_rbdyn::Robot &robot) const
Definition: ForceSensor.h:56
const sva::PTransformd & X_p_s() const
Definition: Device.h:64
Definition: ForceSensor.h:19
const Eigen::Vector3d & couple() const
Definition: ForceSensor.h:71
const std::string & name() const
Definition: Device.h:49
void wrench(const sva::ForceVecd &wrench)
Definition: ForceSensor.h:77
#define MC_RBDYN_DLLAPI
Definition: api.h:50
const std::string & parentBody() const
Definition: ForceSensor.h:50
bool operator==(const mc_rbdyn::BodySensor &lhs, const mc_rbdyn::BodySensor &rhs)
Definition: BodySensor.h:147
const std::string & parent() const
Definition: Device.h:55
std::unique_ptr< Device > DevicePtr
Definition: Device.h:20
Definition: generic_gripper.h:14
auto Robot(const std::string &name, GetT get_fn)
Definition: Robot.h:56
Definition: ForceSensorCalibData.h:8
const detail::ForceSensorCalibData & calib() const noexcept
Definition: ForceSensor.h:155
const Eigen::Vector3d & force() const
Definition: ForceSensor.h:65