MCPcopy Create free account
hub / github.com/KumarRobotics/sloam / project

Method project

sloam/src/objects/plane.cpp:153–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void 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}

Callers 4

matchFeaturesMethod · 0.45
projectModelsMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36