|
| | IMU () |
| | Default-constructs an empty sample (null localTransform()).
|
| |
| | IMU (const cv::Vec4d &orientation, const cv::Mat &orientationCovariance, const cv::Vec3d &angularVelocity, const cv::Mat &angularVelocityCovariance, const cv::Vec3d &linearAcceleration, const cv::Mat &linearAccelerationCovariance, const Transform &localTransform=Transform::getIdentity()) |
| | Constructs a sample with orientation and motion data.
|
| |
| | IMU (const cv::Vec3d &angularVelocity, const cv::Mat &angularVelocityCovariance, const cv::Vec3d &linearAcceleration, const cv::Mat &linearAccelerationCovariance, const Transform &localTransform=Transform::getIdentity()) |
| | Constructs a sample without orientation (e.g. no magnetometer / no attitude).
|
| |
| const cv::Vec4d & | orientation () const |
| |
| const cv::Mat & | orientationCovariance () const |
| |
| const cv::Vec3d & | angularVelocity () const |
| |
| const cv::Mat & | angularVelocityCovariance () const |
| |
| const cv::Vec3d & | linearAcceleration () const |
| |
| const cv::Mat & | linearAccelerationCovariance () const |
| |
| const Transform & | localTransform () const |
| |
| void | convertToBaseFrame () |
| | Rotate motion (and optionally orientation) into the base frame.
|
| |
| bool | empty () const |
| | True when localTransform() is null (placeholder / unset sample).
|
| |
Inertial measurement sample (ROS sensor_msgs/Imu-like fields).
Holds orientation (quaternion), angular velocity, linear acceleration, optional 3×3 row-major covariance matrices (double), and an optional Transform expressing the IMU frame relative to the robot base.
empty() is true when localTransform() is null (default constructor). A sample constructed with Transform::getIdentity() is not empty.
convertToBaseFrame() rotates linear/angular velocity (and orientation when quaternion x/y/z are non-zero) into the base frame, then clears rotation in localTransform() while keeping translation.
- See also
- SensorData::imu()
-
IMUEvent
Definition at line 56 of file IMU.h.