23#include <opencv2/opencv.hpp>
25#include "types/fptypes.hpp"
26#include "vision/features.hpp"
43 const Vector6
w()
const {
return (Vector6() <<
ang_,
acc_).finished(); }
50 const Matrix5
W()
const
52 Matrix5
W = Matrix5::Zero();
53 W.block<3, 3>(0, 0) = SO3::wedge(
ang_);
54 W.block<3, 1>(0, 3) =
acc_;
77 return stream <<
"(" << imu.
timestamp_ <<
", " << imu.
ang_.transpose() <<
", " << imu.
acc_.transpose() <<
")";
80 Vector3
ang_ = Vector3::Zero();
81 Vector3
acc_ = Vector3::Zero();
Definition sensor_data.hpp:86
cv::Mat mask_
The mask for the given image, 255 in valid reagions, 0 in regions to be masked out.
Definition sensor_data.hpp:101
fp timestamp_
Timestamp of the Camera reading.
Definition sensor_data.hpp:102
cv::Mat image_
The image taken from the camera.
Definition sensor_data.hpp:100
friend bool operator<(const Camera &lhs, const Camera &rhs)
Comparison operator with other camera.
Definition sensor_data.hpp:91
friend bool operator<(const Camera &lhs, const fp ×tamp)
Comparison operator with timestamp.
Definition sensor_data.hpp:97
(Cache friendly) Features struct. Define a set of features detected/tracked.
Definition features.hpp:38
Struct for one IMU reading. It includes timestamp, angular velocity and linear acceleration....
Definition sensor_data.hpp:37
fp timestamp_
Timestamp of the IMU reading.
Definition sensor_data.hpp:82
Vector3 acc_
Acceleration vector.
Definition sensor_data.hpp:81
friend bool operator<(const Imu &lhs, const Imu &rhs)
Comparison operator with other imu.
Definition sensor_data.hpp:62
friend bool operator<(const Imu &lhs, const fp ×tamp)
Comparison operator with timestamp.
Definition sensor_data.hpp:68
const Vector6 w() const
Get the IMU measurement as a 6 vector (ang, acc).
Definition sensor_data.hpp:43
const Matrix5 W() const
get the IMU measurement as an extended matrix (ang, acc, 0)^ (SE23 lie algebra element)
Definition sensor_data.hpp:50
Vector3 ang_
Angular velocity vector.
Definition sensor_data.hpp:80
friend std::ostream & operator<<(std::ostream &stream, Imu const &imu)
Stream an Imu.
Definition sensor_data.hpp:75
Definition sensor_data.hpp:106
friend bool operator<(const TriangulatedFeatures &lhs, const fp ×tamp)
Comparison operator with timestamp.
Definition sensor_data.hpp:120
fp timestamp_
Timestamp of the Camera reading.
Definition sensor_data.hpp:125
std::vector< Vector3 > points_
The 3D points corresponding to the features.
Definition sensor_data.hpp:124
Features features_
The features detected in the image.
Definition sensor_data.hpp:123
friend bool operator<(const TriangulatedFeatures &lhs, const TriangulatedFeatures &rhs)
Comparison operator with other imu.
Definition sensor_data.hpp:111