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