mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Camera class: localTransform parameter should not have optical rotation anymore (it is added afterwards in the constructor). OdomSensor: the extrinsics should not contain optical rotation anymore. These 2 changes make it more convenient to set transfomation parameters in the UI. MainWindow::createCamera() now has odomSensor argument for convenience (for inherited classes to set both camera and odom sensor in the same function).
This commit is contained in:
@@ -1186,7 +1186,7 @@ void CameraRealSense2::setDualMode(bool enabled, const Transform & extrinsics)
|
||||
#ifdef RTABMAP_REALSENSE2
|
||||
UASSERT(!enabled || !extrinsics.isNull());
|
||||
dualMode_ = enabled;
|
||||
dualExtrinsics_ = extrinsics;
|
||||
dualExtrinsics_ = extrinsics*CameraModel::opticalRotation();
|
||||
if(dualMode_)
|
||||
{
|
||||
odometryProvided_ = true;
|
||||
|
||||
Reference in New Issue
Block a user