| 151 | } |
| 152 | |
| 153 | void Plane::project(const SE3 &tf) |
| 154 | { |
| 155 | // features |
| 156 | Matrix4 tfm = tf.matrix(); |
| 157 | Affine3 affine(tfm); |
| 158 | for (std::size_t i = 0; i < features.size(); ++i) |
| 159 | { |
| 160 | if (!std::isfinite(features[i].x) || |
| 161 | !std::isfinite(features[i].y) || |
| 162 | !std::isfinite(features[i].z)) |
| 163 | continue; |
| 164 | features[i] = pcl::transformPoint(features[i], affine); |
| 165 | } |
| 166 | |
| 167 | // model |
| 168 | model.plane = tfm.inverse().transpose() * model.plane; |
| 169 | model.centroid = tf * model.centroid; |
| 170 | // ROS_DEBUG_STREAM("model.plane:" << model.plane); |
| 171 | // ROS_DEBUG_STREAM("model.centroid:" << model.centroid); |
| 172 | |
| 173 | // computeModel(); |
| 174 | // ROS_DEBUG_STREAM("model.plane:" << model.plane); |
| 175 | // ROS_DEBUG_STREAM("model.centroid:" << model.centroid); |
| 176 | } |
no outgoing calls