Go to the documentation of this file.
10 #include <Eigen/StdVector>
21 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
34 inline BodySensor(
const std::string & name,
const std::string & bodyName,
const sva::PTransformd & X_b_s)
35 :
Device(name, bodyName, X_b_s)
42 position_ = bs.position_;
43 orientation_ = bs.orientation_;
44 linear_velocity_ = bs.linear_velocity_;
45 angular_velocity_ = bs.angular_velocity_;
46 linear_acceleration_ = bs.linear_acceleration_;
47 angular_acceleration_ = bs.angular_acceleration_;
55 position_ = bs.position_;
56 orientation_ = bs.orientation_;
57 linear_velocity_ = bs.linear_velocity_;
58 angular_velocity_ = bs.angular_velocity_;
59 linear_acceleration_ = bs.linear_acceleration_;
60 angular_acceleration_ = bs.angular_acceleration_;
76 inline const Eigen::Vector3d &
position()
const {
return position_; }
82 inline const Eigen::Quaterniond &
orientation()
const {
return orientation_; }
93 inline const Eigen::Vector3d &
linearVelocity()
const {
return linear_velocity_; }
96 inline void linearVelocity(
const Eigen::Vector3d & linear_velocity) { linear_velocity_ = linear_velocity; }
99 inline const Eigen::Vector3d &
angularVelocity()
const {
return angular_velocity_; }
102 inline void angularVelocity(
const Eigen::Vector3d & angular_velocity) { angular_velocity_ = angular_velocity; }
108 MC_RTC_DEPRECATED
inline const Eigen::Vector3d &
acceleration()
const {
return linearAcceleration(); }
114 MC_RTC_DEPRECATED
inline void acceleration(
const Eigen::Vector3d & acceleration) { linearAcceleration(acceleration); }
122 linear_acceleration_ = linear_acceleration;
131 angular_acceleration_ = angular_acceleration;
137 Eigen::Vector3d position_ = Eigen::Vector3d::Zero();
138 Eigen::Quaterniond orientation_ = Eigen::Quaterniond::Identity();
139 Eigen::Vector3d linear_velocity_ = Eigen::Vector3d::Zero();
140 Eigen::Vector3d angular_velocity_ = Eigen::Vector3d::Zero();
141 Eigen::Vector3d linear_acceleration_ = Eigen::Vector3d::Zero();
142 Eigen::Vector3d angular_acceleration_ = Eigen::Vector3d::Zero();
void angularVelocity(const Eigen::Vector3d &angular_velocity)
Definition: BodySensor.h:102
const Eigen::Vector3d & angularAcceleration() const
Definition: BodySensor.h:126
const Eigen::Vector3d & angularVelocity() const
Definition: BodySensor.h:99
MC_RTC_DEPRECATED void acceleration(const Eigen::Vector3d &acceleration)
Definition: BodySensor.h:114
const std::string & parentBody() const
Definition: BodySensor.h:70
BodySensor(const BodySensor &bs)
Definition: BodySensor.h:40
const Eigen::Vector3d & linearVelocity() const
Definition: BodySensor.h:93
const Eigen::Vector3d & position() const
Definition: BodySensor.h:76
void orientation(const Eigen::Quaterniond &orientation)
Definition: BodySensor.h:90
std::string parent_
Definition: Device.h:87
const sva::PTransformd & X_p_s() const
Definition: Device.h:64
void linearAcceleration(const Eigen::Vector3d &linear_acceleration)
Definition: BodySensor.h:120
std::string name_
Definition: Device.h:85
const sva::PTransformd & X_b_s() const
Definition: BodySensor.h:73
const MC_RTC_DEPRECATED Eigen::Vector3d & acceleration() const
Definition: BodySensor.h:108
const std::string & name() const
Definition: Device.h:49
Definition: BodySensor.h:19
BodySensor(const std::string &name, const std::string &bodyName, const sva::PTransformd &X_b_s)
Definition: BodySensor.h:34
#define MC_RBDYN_DLLAPI
Definition: api.h:50
bool operator==(const mc_rbdyn::BodySensor &lhs, const mc_rbdyn::BodySensor &rhs)
Definition: BodySensor.h:147
void angularAcceleration(const Eigen::Vector3d &angular_acceleration)
Definition: BodySensor.h:129
const std::string & parent() const
Definition: Device.h:55
std::vector< BodySensor, Eigen::aligned_allocator< BodySensor > > BodySensorVector
Definition: BodySensor.h:145
std::unique_ptr< Device > DevicePtr
Definition: Device.h:20
EIGEN_MAKE_ALIGNED_OPERATOR_NEW BodySensor()
Definition: BodySensor.h:23
BodySensor & operator=(const BodySensor &bs)
Definition: BodySensor.h:50
const Eigen::Quaterniond & orientation() const
Definition: BodySensor.h:82
void position(const Eigen::Vector3d &position)
Definition: BodySensor.h:79
Definition: generic_gripper.h:14
const Eigen::Vector3d & linearAcceleration() const
Definition: BodySensor.h:117
sva::PTransformd X_p_s_
Definition: Device.h:89
void linearVelocity(const Eigen::Vector3d &linear_velocity)
Definition: BodySensor.h:96