#include <mc_rbdyn/BodySensor.h>
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | BodySensor () |
BodySensor (const std::string &name, const std::string &bodyName, const sva::PTransformd &X_b_s) | |
BodySensor (const BodySensor &bs) | |
BodySensor & | operator= (const BodySensor &bs) |
BodySensor (BodySensor &&)=default | |
BodySensor & | operator= (BodySensor &&)=default |
~BodySensor () noexcept override | |
const std::string & | parentBody () const |
const sva::PTransformd & | X_b_s () const |
const Eigen::Vector3d & | position () const |
void | position (const Eigen::Vector3d &position) |
const Eigen::Quaterniond & | orientation () const |
void | orientation (const Eigen::Quaterniond &orientation) |
const Eigen::Vector3d & | linearVelocity () const |
void | linearVelocity (const Eigen::Vector3d &linear_velocity) |
const Eigen::Vector3d & | angularVelocity () const |
void | angularVelocity (const Eigen::Vector3d &angular_velocity) |
const MC_RTC_DEPRECATED Eigen::Vector3d & | acceleration () const |
MC_RTC_DEPRECATED void | acceleration (const Eigen::Vector3d &acceleration) |
const Eigen::Vector3d & | linearAcceleration () const |
void | linearAcceleration (const Eigen::Vector3d &linear_acceleration) |
const Eigen::Vector3d & | angularAcceleration () const |
void | angularAcceleration (const Eigen::Vector3d &angular_acceleration) |
DevicePtr | clone () const override |
Public Member Functions inherited from mc_rbdyn::Device | |
Device (const std::string &name) | |
Device (const std::string &name, const std::string &parent, const sva::PTransformd &X_p_s) | |
Device (const Device &)=delete | |
Device & | operator= (const Device &)=delete |
Device (Device &&)=default | |
Device & | operator= (Device &&)=default |
virtual | ~Device () noexcept=default |
const std::string & | name () const |
const std::string & | type () const |
const std::string & | parent () const |
void | parent (const std::string &p) |
const sva::PTransformd & | X_p_d () const |
const sva::PTransformd & | X_p_s () const |
void | X_p_d (const sva::PTransformd &pt) |
void | X_p_s (const sva::PTransformd &pt) |
sva::PTransformd | X_0_d (const mc_rbdyn::Robot &robot) const |
sva::PTransformd | X_0_s (const mc_rbdyn::Robot &robot) const |
Additional Inherited Members | |
Protected Attributes inherited from mc_rbdyn::Device | |
std::string | type_ |
std::string | name_ |
std::string | parent_ |
sva::PTransformd | X_p_s_ |
This structure defines a body sensor, that is a sensor that provides dynamic information about a body. It would typically be used to represent an IMU reading but in more ideal (simulation, external tracking system...) it can hold more information
|
inline |
Default constructor, does not represent a valid body sensor
|
inline |
Constructor
name | Name of the sensor |
bodyName | Name of the body to which the sensor is attached |
X_b_s | Transformation from the parent body to the sensor |
|
inline |
|
default |
|
overridenoexcept |
|
inline |
Return the sensor's linear acceleration reading, Zero if not provided
|
inline |
Set the sensor's linear acceleration reading
|
inline |
Return the sensor's angular acceleration reading, Zero if not provided
|
inline |
Set the sensor's angular acceleration reading
|
inline |
Return the sensor's angular velocity reading, Zero if not provided
|
inline |
Set the sensor's angular velocity reading
|
overridevirtual |
Perform a device copy
Implements mc_rbdyn::Device.
|
inline |
Return the sensor's linear acceleration reading, Zero if not provided
|
inline |
Set the sensor's linear acceleration reading
|
inline |
Return the sensor's linear velocity reading, Zero if not provided
|
inline |
Set the sensor's linear velocity reading
|
default |
|
inline |
|
inline |
Return the sensor's orientation reading, Identity if not provided
|
inline |
Set the sensor's orientation reading
|
inline |
Get the sensor's parent body name
|
inline |
Return the sensor's position reading, Zero if not provided
|
inline |
Set the sensor's position reading
|
inline |
Return the transformation from the parent body to the sensor