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

Method costTo

swarm_exploration/active_perception/src/graph_node.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25double ViewNode::costTo(const ViewNode::Ptr& node) {
26 vector<Vector3d> path;
27 double c = ViewNode::computeCost(pos_, node->pos_, yaw_, node->yaw_, vel_, yaw_dot_, path);
28 // std::cout << "cost from " << id_ << " to " << node->id_ << " is: " << c << std::endl;
29 return c;
30}
31
32double ViewNode::searchPath(const Vector3d& p1, const Vector3d& p2, vector<Vector3d>& path) {
33 // Try connect two points with straight line

Callers 1

DijkstraSearchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected