return this->s_;
}
+RRTNode *RRTNode::rs() const
+{
+ return this->rs_;
+}
+
float RRTNode::ccost() const
{
return this->ccost_;
this->s_ = cs;
}
+void RRTNode::rs(RRTNode *rs)
+{
+ this->rs_ = rs;
+}
+
bool RRTNode::add_child(RRTNode *node, float cost)
{
return this->add_child(node, cost, 1);
float h_ = 0;
float t_ = 0;
float s_ = 0;
+
+ RRTNode *rs_ = nullptr; // random sample of added point
public:
RRTNode();
RRTNode(float x, float y);
float t() const;
float s() const;
+ RRTNode *rs() const;
+
float ccost() const;
float dcost() const;
float ocost() const;
void h(float ch);
void t(float ct);
void s(float cs);
+
+ void rs(RRTNode *rs);
+
bool add_child(RRTNode *node, float cost);
bool add_child(RRTNode *node, float cost, float time);
bool rem_child(RRTNode *node);