mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-09 21:10:19 +08:00
Refactoring: set default local transform for camera drivers to opticalRotation. Added CameraModel::opticalRtotation() static function for convenience. Added CameraModel::load() from file directly for convenience. Added Camera::initFromFile() for convenience. Transform: Added opengl_T_rtabmap() and opengl_T_rtabmap() functions for convenience (convert back and forth between rtabmap world and opengl world coordinate frames)
This commit is contained in:
@@ -93,13 +93,11 @@ int main(int argc, char * argv[])
|
||||
std::string pathLeftImages = argv[argIndex++];
|
||||
std::string pathRightImages = argv[argIndex++];
|
||||
|
||||
Transform opticalRotation(0,0,1,0, -1,0,0,0, 0,-1,0,0);
|
||||
CameraStereoImages camera(
|
||||
pathLeftImages,
|
||||
pathRightImages,
|
||||
false, // assume that images are already rectified
|
||||
(float)cameraRate,
|
||||
opticalRotation);
|
||||
(float)cameraRate);
|
||||
|
||||
if(camera.init(calibrationDir, calibrationName))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user