mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-12 22:40:19 +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:
@@ -286,10 +286,10 @@ int main(int argc, char * argv[])
|
||||
pathRightImages,
|
||||
!raw,
|
||||
0.0f,
|
||||
baseToImu*models[0].localTransform()), parameters);
|
||||
baseToImu*models[0].localTransform()*CameraModel::opticalRotation().inverse()), parameters);
|
||||
printf("baseToImu=%s\n", baseToImu.prettyPrint().c_str());
|
||||
std::cout<<"baseToCam0:\n" << baseToImu*models[0].localTransform() << std::endl;
|
||||
printf("baseToCam0=%s\n", (baseToImu*models[0].localTransform()).prettyPrint().c_str());
|
||||
std::cout<<"baseToCam0:\n" << baseToImu*models[0].localTransform()*CameraModel::opticalRotation().inverse() << std::endl;
|
||||
printf("baseToCam0=%s\n", (baseToImu*models[0].localTransform()*CameraModel::opticalRotation().inverse()).prettyPrint().c_str());
|
||||
printf("imuToCam0=%s\n", models[0].localTransform().prettyPrint().c_str());
|
||||
printf("imuToCam1=%s\n", models[1].localTransform().prettyPrint().c_str());
|
||||
((CameraStereoImages*)cameraThread.camera())->setTimestamps(true, "", false);
|
||||
|
||||
Reference in New Issue
Block a user