mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
fixed odometry localTransform for Openni camera from OpenCV
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1361 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -2753,9 +2753,11 @@ void PreferencesDialog::testOdometry(OdomType type)
|
|||||||
}
|
}
|
||||||
else if(this->getSourceRGBD() == kSrcOpenNI_CV || this->getSourceRGBD() == kSrcOpenNI_CV_ASUS)
|
else if(this->getSourceRGBD() == kSrcOpenNI_CV || this->getSourceRGBD() == kSrcOpenNI_CV_ASUS)
|
||||||
{
|
{
|
||||||
_odomCameraOpenNICv = new CameraThread(new CameraRGBD(
|
Camera * camera = new CameraRGBD(
|
||||||
this->getGeneralInputRate(),
|
this->getGeneralInputRate(),
|
||||||
this->getSourceRGBD() == kSrcOpenNI_CV_ASUS));
|
this->getSourceRGBD() == kSrcOpenNI_CV_ASUS);
|
||||||
|
camera->setLocalTransform(this->getSourceOpenniLocalTransform());
|
||||||
|
_odomCameraOpenNICv = new CameraThread(camera);
|
||||||
if(!_odomCameraOpenNICv->init())
|
if(!_odomCameraOpenNICv->init())
|
||||||
{
|
{
|
||||||
QMessageBox::warning(this,
|
QMessageBox::warning(this,
|
||||||
|
|||||||
Reference in New Issue
Block a user