mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-05 17:47:49 +08:00
Windows CI: make vcpkg download compatible with draft release (#1727)
* Windows CI: make vcpkg download compatible with draft release * forcing nvdia driver dll to be ignored in fixup_bundle * disabling opencv cudec and python * disabling rtabmap-console --version on cuda build * Added assert when bad imu data is provided. Added checks when zed sdk is returning nan imu data. * Updated zed sdk5 resolution and quality * Updated zed sdk5 resolution and quality * Fixing parameters reloaded when testing camera. Also fixed app freezing when closing Preferences dialog after using test camera dialog * cleanup and debug logs * Added dialogs when starting/stopping sensors/detection. Fixed nullptr bug on MainWindow::handleEvents * renamed * found a way to expose ZED model downloads * Updated default config path on Windows * Fixed extra endline in file logging (windows) * Fixed camera local transform when used with lidar and odomSensor * CI(macos): build g2o from source with OpenMP (libomp include/link fix) * Mac: added ceres dep, fixed omp not found by cmake * Mac: bundle orbbec extensions * stripping rpath of orbbec's extensions * cleanup * Realsense2 error as error (not warning) * Fixed config ownership changed to root when sarting in sudo. LidarVLP16: fixed crash on Mac by reimplementing our own socket threading * LidarVLP16: own socket implementation only for Mac (linux and windows use original PCL's reader)
This commit is contained in:
@@ -952,6 +952,22 @@ void SensorData::setFeatures(const std::vector<cv::KeyPoint> & keypoints, const
|
||||
_descriptors = descriptors;
|
||||
}
|
||||
|
||||
void SensorData::setIMU(const IMU & imu)
|
||||
{
|
||||
UASSERT(
|
||||
uIsFinite(imu.orientation()[0]) &&
|
||||
uIsFinite(imu.orientation()[1]) &&
|
||||
uIsFinite(imu.orientation()[2]) &&
|
||||
uIsFinite(imu.orientation()[3]) &&
|
||||
uIsFinite(imu.angularVelocity()[0]) &&
|
||||
uIsFinite(imu.angularVelocity()[1]) &&
|
||||
uIsFinite(imu.angularVelocity()[2]) &&
|
||||
uIsFinite(imu.linearAcceleration()[0]) &&
|
||||
uIsFinite(imu.linearAcceleration()[1]) &&
|
||||
uIsFinite(imu.linearAcceleration()[2]));
|
||||
imu_ = imu;
|
||||
}
|
||||
|
||||
unsigned long SensorData::getMemoryUsed() const // Return memory usage in Bytes
|
||||
{
|
||||
return sizeof(SensorData) +
|
||||
|
||||
Reference in New Issue
Block a user