mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-07 02:07:45 +08:00
pointcloud_to_depthimage: republish scaled camera_info in case decimation parameter has been used.
This commit is contained in:
@@ -878,7 +878,7 @@ void cameraModelToROS(
|
||||
memcpy(camInfo.K.elems, model.K_raw().data, 9*sizeof(double));
|
||||
}
|
||||
|
||||
if(camInfo.D.size() == 6)
|
||||
if(model.D_raw().total() == 6)
|
||||
{
|
||||
camInfo.D = std::vector<double>(4);
|
||||
camInfo.D[0] = model.D_raw().at<double>(0,0);
|
||||
|
||||
Reference in New Issue
Block a user