From 8c2dd7fe617b54de7a7925bd7f2686bb4b59b173 Mon Sep 17 00:00:00 2001 From: Stephen Date: Thu, 28 Mar 2013 18:20:54 -0700 Subject: [PATCH] Fixed documentation in frustum_culling for transforming to robot coordinates --- filters/include/pcl/filters/frustum_culling.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/filters/include/pcl/filters/frustum_culling.h b/filters/include/pcl/filters/frustum_culling.h index abb9f9b7e6a..8616f40c48a 100644 --- a/filters/include/pcl/filters/frustum_culling.h +++ b/filters/include/pcl/filters/frustum_culling.h @@ -108,12 +108,14 @@ namespace pcl * coordinate system (X right, Y down, Z forward), one can use: * * \code - * Eigen::Matrix4f pose = //pose in camera coordinates - * Eigen::Matrix3f cam2robot; - * cam2robot << 0, 0, 1, - * 0, -1, 0, - * 1, 0, 0; - * pose.block (0, 0, 3, 3) = cam2robot.block (0, 0, 3, 3) * pose.block (0, 0, 3, 3); //rotate + * Eigen::Matrix4f pose_orig = //pose in camera coordinates + * Eigen::Matrix4f cam2robot; + * cam2robot << 0, 0, 1, 0 + * 0,-1, 0, 0 + * 1, 0, 0, 0 + * 0, 0, 0, 1; + * Eigen::Matrix4f pose_new = pose_orig * cam2robot; + * fc.setCameraPose (pose_new); * \endcode */ void