Go to the documentation of this file.
40 localTransform_(localTransform),
44 _imuBaseFrameConversion(
false)
64 UERROR(
"no imu file found at %s",
path.c_str());
67 int number_of_lines = 0;
70 printf(
"No. IMU measurements: %d\n", number_of_lines-1);
71 if (number_of_lines - 1 <= 0) {
72 UERROR(
"no imu messages present in %s",
path.c_str());
135 std::stringstream
stream(line);
138 std::string nanoseconds =
s.substr(
s.size() - 9, 9);
139 std::string seconds =
s.substr(0,
s.size() - 9);
142 for (
int j = 0;
j < 3; ++
j) {
148 for (
int j = 0;
j < 3; ++
j) {
172 UWARN(
"IMU's acc and gyr values are null! Please disable IMU filtering.");
195 cv::Vec4d(qx,qy,
qz,qw), cv::Mat::eye(3,3,CV_64FC1),
200 UDEBUG(
"%f %f %f %f (gyro=%f %f %f, acc=%f %f %f, %fs)",
219 UWARN(
"no more imu data...");
Transform localTransform_
const cv::Vec3d linearAcceleration() const
bool init(const std::string &path)
const cv::Mat & angularVelocityCovariance() const
double UTILITE_EXPORT uStr2Double(const std::string &str)
const Transform & localTransform() const
std::map< std::string, std::string > ParametersMap
static IMUFilter * create(const ParametersMap ¶meters=ParametersMap())
void update(double gx, double gy, double gz, double ax, double ay, double az, double stamp)
virtual void getOrientation(double &qx, double &qy, double &qz, double &qw) const =0
const cv::Mat & linearAccelerationCovariance() const
Some conversion functions.
const cv::Vec4d & orientation() const
#define UASSERT(condition)
void enableIMUFiltering(int filteringStrategy=1, const ParametersMap ¶meters=ParametersMap(), bool baseFrameConversion=false)
bool _imuBaseFrameConversion
static void registerCurrentThread(const std::string &name)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
ULogger class and convenient macros.
int UTILITE_EXPORT uStr2Int(const std::string &str)
void convertToBaseFrame()
void disableIMUFiltering()
void uSleep(unsigned int ms)
virtual void mainLoopBegin()
const cv::Vec3d & angularVelocity() const
IMUThread(int rate, const Transform &localTransform)
void post(UEvent *event, bool async=true) const
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:11