15 #include "nav2_smac_planner/node_basic.hpp"
17 namespace nav2_smac_planner
20 template<
typename Node2D>
31 if (!this->graph_node_ptr->wasVisited()) {
32 this->graph_node_ptr->pose = this->pose;
33 this->graph_node_ptr->setMotionPrimitiveIndex(this->motion_index);
43 if (!this->graph_node_ptr->wasVisited()) {
44 this->graph_node_ptr->pose = this->pose;
45 this->graph_node_ptr->setMotionPrimitive(this->prim_ptr);
46 this->graph_node_ptr->backwards(this->backward);
53 this->graph_node_ptr = node;
59 this->pose = node->pose;
60 this->graph_node_ptr = node;
61 this->motion_index = node->getMotionPrimitiveIndex();
67 this->pose = node->pose;
68 this->graph_node_ptr = node;
69 this->prim_ptr = node->getMotionPrimitive();
70 this->backward = node->isBackward();
73 template class NodeBasic<Node2D>;
74 template class NodeBasic<NodeHybrid>;
75 template class NodeBasic<NodeLattice>;
void populateSearchNode(NodeT *&node)
Take a NodeBasic and populate it with any necessary state cached in the queue for NodeT.
void processSearchNode()
Take a NodeBasic and populate it with any necessary state cached in the queue for NodeTs.