class sblMilestone

A sblMilestone represents the data structure for storing a free sample. The SBL sblPlanner grows two trees (one from the start and one form the goal) consisting of these collision-free 'sblMilestones' as nodes. Each sblMilestone stores in itself links to its parent node and children nodes.

Public Fields

osblEdge edgeFromFather
link to the father of the node

Public Methods

[more] sblMilestone ()
[more] sblMilestone (int inx, const mpkConfig& qq, double tim=0)
[more]void setIndex (const int& index)
[more]void setConfig (mpkConfig& q_n)
[more]void isFatherOf (sblMilestone& child)
[more]void setFather (int from, int to)
[more]void addChild (const sblMilestone& m)
[more]mpkConfig& getConfig ()
[more]int getIndex () const
[more]int getFather ()
[more]sblEdge& getsblEdge ()
[more]int getNrSons () const
[more]int getChild (int k)
[more]void markSafe ()
[more]bool isEqual (const sblMilestone& m)
[more]void print ()
[more]void printChilds ()
[more]double distance (const sblMilestone& m) const
[more]double L_inf (const sblMilestone& m) const

Protected Fields

oint i
an index to identify the nodes
ompkConfig* q
Configuration
odouble t
time associated to the configuration
ovector<int> children
to store who are the children of the node


Documentation

A sblMilestone represents the data structure for storing a free sample. The SBL sblPlanner grows two trees (one from the start and one form the goal) consisting of these collision-free 'sblMilestones' as nodes. Each sblMilestone stores in itself links to its parent node and children nodes.
o sblMilestone()

o sblMilestone(int inx, const mpkConfig& qq, double tim=0)
Function setRoot on the planner is the one that uses this

ovoid setIndex(const int& index)
To set the serial number of this sblMilestone

ovoid setConfig(mpkConfig& q_n)
To set the Configuration of the sblMilestone

ovoid isFatherOf(sblMilestone& child)
This function is used to set that the current milestone is the father of the milestone child.

ovoid setFather(int from, int to)
Links to the parent node in the tree

ovoid addChild(const sblMilestone& m)
To store the index of the Children Nodes

ompkConfig& getConfig()
Returns the Configuration of the sblMilestone

oint getIndex() const
To set the serial number of this sblMilestone

oint getFather()
Returns the Father of this node in the tree

osblEdge& getsblEdge()
Returns the edge from its father

oint getNrSons() const
Returns the number of its children in the Tree

oint getChild(int k)
Returns the 'kth' children

ovoid markSafe()
Marks that the edge to its father is collision free

obool isEqual(const sblMilestone& m)
To check if the two sblMilestones are equal or not

ovoid print()
Prints the Configuration and the parent information

ovoid printChilds()
Prints the list of Children

odouble distance(const sblMilestone& m) const
Returns Euclidean Distance

odouble L_inf(const sblMilestone& m) const
Returns L-infinity distance


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.