Go to the documentation of this file.
6 #ifndef CNOID_BODY_FORCE_SENSOR_H
7 #define CNOID_BODY_FORCE_SENSOR_H
11 #include "exportdecl.h"
20 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
25 virtual const char* typeName()
const override;
27 virtual void copyStateFrom(
const DeviceState& other)
override;
29 virtual void forEachActualType(std::function<
bool(
const std::type_info& type)> func)
override;
30 virtual void clearState()
override;
31 virtual int stateSize()
const override;
32 virtual const double* readState(
const double* buf)
override;
33 virtual double* writeState(
double* out_buf)
const override;
44 Vector6::FixedSegmentReturnType<3>::Type
force() {
return F_.head<3>(); }
45 Vector6::ConstFixedSegmentReturnType<3>::Type
force()
const {
return F_.head<3>(); }
46 Vector6::FixedSegmentReturnType<3>::Type
f() {
return F_.head<3>(); }
47 Vector6::ConstFixedSegmentReturnType<3>::Type
f()
const {
return F_.head<3>(); }
49 Vector6::FixedSegmentReturnType<3>::Type
torque() {
return F_.tail<3>(); }
50 Vector6::ConstFixedSegmentReturnType<3>::Type
torque()
const {
return F_.tail<3>(); }
51 Vector6::FixedSegmentReturnType<3>::Type
tau() {
return F_.tail<3>(); }
52 Vector6::ConstFixedSegmentReturnType<3>::Type
tau()
const {
return F_.tail<3>(); }
54 bool readSpecifications(
const Mapping* info);
55 bool writeSpecifications(
Mapping* info)
const;
64 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
67 std::unique_ptr<Spec> spec;
Definition: ValueTree.h:253
Vector6::FixedSegmentReturnType< 3 >::Type force()
Definition: ForceSensor.h:44
ref_ptr< ForceSensor > ForceSensorPtr
Definition: ForceSensor.h:70
Vector6::ConstFixedSegmentReturnType< 3 >::Type force() const
Definition: ForceSensor.h:45
Vector6 & wrench()
Definition: ForceSensor.h:36
const Vector6 & wrench() const
Definition: ForceSensor.h:35
const Vector6 & F_max() const
Definition: ForceSensor.h:41
Vector6::ConstFixedSegmentReturnType< 3 >::Type tau() const
Definition: ForceSensor.h:52
Vector6::FixedSegmentReturnType< 3 >::Type tau()
Definition: ForceSensor.h:51
Definition: Referenced.h:103
Definition: ForceSensor.h:17
Vector6::ConstFixedSegmentReturnType< 3 >::Type torque() const
Definition: ForceSensor.h:50
Vector6::FixedSegmentReturnType< 3 >::Type f()
Definition: ForceSensor.h:46
Definition: AbstractSceneLoader.h:11
Definition: CloneMap.h:13
Vector6 & F_max()
Definition: ForceSensor.h:42
Definition: Referenced.h:54
const Vector6 & maxWrench() const
Definition: ForceSensor.h:37
Eigen::Matrix< double, 6, 1 > Vector6
Definition: EigenTypes.h:61
Vector6::ConstFixedSegmentReturnType< 3 >::Type f() const
Definition: ForceSensor.h:47
Vector6 & maxWrench()
Definition: ForceSensor.h:38
Vector6::FixedSegmentReturnType< 3 >::Type torque()
Definition: ForceSensor.h:49
const Vector6 & F() const
Definition: ForceSensor.h:39
Vector6 & F()
Definition: ForceSensor.h:40