15#include <opencv2/opencv.hpp>
17#include "types/fptypes.hpp"
18#include "vision/features.hpp"
35 const Vector6
w()
const {
return (Vector6() <<
ang_,
acc_).finished(); }
42 const Matrix5
W()
const
44 Matrix5
W = Matrix5::Zero();
45 W.block<3, 3>(0, 0) = SO3::wedge(
ang_);
46 W.block<3, 1>(0, 3) =
acc_;
69 return stream <<
"(" << imu.
timestamp_ <<
", " << imu.
ang_.transpose() <<
", " << imu.
acc_.transpose() <<
")";
72 Vector3
ang_ = Vector3::Zero();
73 Vector3
acc_ = Vector3::Zero();
Definition sensor_data.hpp:78
cv::Mat mask_
The mask for the given image, 255 in valid reagions, 0 in regions to be masked out.
Definition sensor_data.hpp:93
fp timestamp_
Timestamp of the Camera reading.
Definition sensor_data.hpp:94
cv::Mat image_
The image taken from the camera.
Definition sensor_data.hpp:92
friend bool operator<(const Camera &lhs, const Camera &rhs)
Comparison operator with other camera.
Definition sensor_data.hpp:83
friend bool operator<(const Camera &lhs, const fp ×tamp)
Comparison operator with timestamp.
Definition sensor_data.hpp:89
(Cache friendly) Features struct. Define a set of features detected/tracked.
Definition features.hpp:30
Struct for one IMU reading. It includes timestamp, angular velocity and linear acceleration....
Definition sensor_data.hpp:29
fp timestamp_
Timestamp of the IMU reading.
Definition sensor_data.hpp:74
Vector3 acc_
Acceleration vector.
Definition sensor_data.hpp:73
friend bool operator<(const Imu &lhs, const Imu &rhs)
Comparison operator with other imu.
Definition sensor_data.hpp:54
friend bool operator<(const Imu &lhs, const fp ×tamp)
Comparison operator with timestamp.
Definition sensor_data.hpp:60
const Vector6 w() const
Get the IMU measurement as a 6 vector (ang, acc)
Definition sensor_data.hpp:35
const Matrix5 W() const
get the IMU measurement as an extended matrix (ang, acc, 0)^ (SE23 lie algebra element)
Definition sensor_data.hpp:42
Vector3 ang_
Angular velocity vector.
Definition sensor_data.hpp:72
friend std::ostream & operator<<(std::ostream &stream, Imu const &imu)
Stream an Imu.
Definition sensor_data.hpp:67
Definition sensor_data.hpp:98
friend bool operator<(const TriangulatedFeatures &lhs, const fp ×tamp)
Comparison operator with timestamp.
Definition sensor_data.hpp:112
fp timestamp_
Timestamp of the Camera reading.
Definition sensor_data.hpp:117
std::vector< Vector3 > points_
The 3D points corresponding to the features.
Definition sensor_data.hpp:116
Features features_
The features detected in the image.
Definition sensor_data.hpp:115
friend bool operator<(const TriangulatedFeatures &lhs, const TriangulatedFeatures &rhs)
Comparison operator with other imu.
Definition sensor_data.hpp:103