MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/RACER / posToIndex

Method posToIndex

swarm_exploration/path_searching/src/astar.cpp:229–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229Eigen::Vector3i Astar::posToIndex(Eigen::Vector3d pt) {
230 Vector3i idx = ((pt - origin_) * inv_resolution_).array().floor().cast<int>();
231 return idx;
232}
233
234int Astar::timeToIndex(double time) {
235 int idx = floor((time - time_origin_) * inv_time_resolution_);

Callers 4

insertChunkToMapMethod · 0.45
publishMapAllMethod · 0.45
publishUnknownMethod · 0.45
localExploreMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected