mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
createTextureCameras: using CameraModel's localTransform instead of hard coded optical rotation
This commit is contained in:
@@ -581,12 +581,9 @@ pcl::texture_mapping::CameraVector createTextureCameras(
|
||||
UASSERT(poseIter->first == modelIter->first);
|
||||
pcl::TextureMapping<pcl::PointXYZ>::Camera cam;
|
||||
|
||||
// transform into optical referential
|
||||
Transform rotation(0,-1,0,0,
|
||||
0,0,-1,0,
|
||||
1,0,0,0);
|
||||
|
||||
Transform t = poseIter->second*rotation.inverse();
|
||||
// should be in camera frame
|
||||
UASSERT(!modelIter->second.localTransform().isNull() && !poseIter->second.isNull());
|
||||
Transform t = poseIter->second*modelIter->second.localTransform();
|
||||
|
||||
cam.pose = t.toEigen3f();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user