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

Method asPoint

sloam/src/objects/cylinder.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30PointT Cylinder::asPoint(const Scalar height)
31{
32 Scalar t = (height - model.root[2]) / model.ray[2];
33 Vector3 eigenPoint = model.root + t * model.ray;
34 PointT point;
35 point.x = eigenPoint[0];
36 point.y = eigenPoint[1];
37 point.z = 0;
38 return point;
39}
40
41bool Cylinder::groundBasedRoot(const Plane &gplane)
42{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected