Package org.robwork.sdurw_pathplanners
Class SBLOptions
- java.lang.Object
-
- org.robwork.sdurw_pathplanners.SBLOptions
-
public class SBLOptions extends java.lang.ObjectSBL planner setup.
SBLOptions is the value stored in SBLSetup.
SBLOptions is a seperate file so that we can keep SBLSetup as abstract as
possible.
SBLOptions is used by SBLInternal and is for internal use only.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSBLOptions.ConnectFrequencyPolicy for how often to connect trees.static classSBLOptions.NearNodeSelectionPolicy for choosing a node in the vicinity of a given node, n.static classSBLOptions.TreeSelectionPolicy for selecting a tree.
-
Constructor Summary
Constructors Constructor Description SBLOptions(long cPtr, boolean cMemoryOwn)SBLOptions(QConstraintPtr constraint, QEdgeConstraintIncrementalPtr edgeConstraint, SBLExpandPtr expansion, MetricQPtr metric, double connectRadius)Construct a new set of options for the internal algorithms.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()SBLOptions.ConnectFrequencygetConnectAt()(default is ConnectAlways).doublegetConnectRadius()Attempt connection of the trees if the distance to the nearest neighbor is below this threshold.SBLPlannerConstraintgetConstraint()The constraint that determined if a path or configuration is valid (collision free) or not.static longgetCPtr(SBLOptions obj)SBLExpandPtrgetExpansion()The expand policy used to sample new configurations in the vicinity.MetricQPtrgetMetric()the distance metric for nearest neighbor searching.SBLOptions.NearNodeSelectiongetNearNodeSelection()(default is NearestNode).doublegetNodesPerCell()(default is 10).intgetResetCount()(default is 20).intgetRootSampleInterval()(default is 25).SBLOptions.TreeSelectiongetTreeSelection()(default is UniformTree).voidsetConnectAt(SBLOptions.ConnectFrequency value)(default is ConnectAlways).voidsetConnectRadius(double value)Attempt connection of the trees if the distance to the nearest neighbor is below this threshold.voidsetConstraint(SBLPlannerConstraint value)The constraint that determined if a path or configuration is valid (collision free) or not.voidsetExpansion(SBLExpandPtr value)The expand policy used to sample new configurations in the vicinity.voidsetMetric(MetricQPtr value)the distance metric for nearest neighbor searching.voidsetNearNodeSelection(SBLOptions.NearNodeSelection value)(default is NearestNode).voidsetNodesPerCell(double value)(default is 10).voidsetResetCount(int value)(default is 20).voidsetRootSampleInterval(int value)(default is 25).voidsetTreeSelection(SBLOptions.TreeSelection value)(default is UniformTree).
-
-
-
Constructor Detail
-
SBLOptions
public SBLOptions(long cPtr, boolean cMemoryOwn)
-
SBLOptions
public SBLOptions(QConstraintPtr constraint, QEdgeConstraintIncrementalPtr edgeConstraint, SBLExpandPtr expansion, MetricQPtr metric, double connectRadius)
Construct a new set of options for the internal algorithms.
- Parameters:
constraint- [in] a constraint on the valid configurations.edgeConstraint- [in] a constraint on the edges between valid configurations.expansion- [in] the policy for how to sample new configurations in the vicinity.metric- [in] the distance metric for nearest neighbor searching.connectRadius- [in] connect trees if the distance to the nearest neighbor is below this threshold.
-
-
Method Detail
-
getCPtr
public static long getCPtr(SBLOptions obj)
-
delete
public void delete()
-
setConstraint
public void setConstraint(SBLPlannerConstraint value)
The constraint that determined if a path or configuration is valid (collision free) or not.
-
getConstraint
public SBLPlannerConstraint getConstraint()
The constraint that determined if a path or configuration is valid (collision free) or not.
-
setExpansion
public void setExpansion(SBLExpandPtr value)
The expand policy used to sample new configurations in the vicinity.
-
getExpansion
public SBLExpandPtr getExpansion()
The expand policy used to sample new configurations in the vicinity.
-
setMetric
public void setMetric(MetricQPtr value)
the distance metric for nearest neighbor searching.
-
getMetric
public MetricQPtr getMetric()
the distance metric for nearest neighbor searching.
-
setConnectRadius
public void setConnectRadius(double value)
Attempt connection of the trees if the distance to the nearest neighbor is below this threshold.
-
getConnectRadius
public double getConnectRadius()
Attempt connection of the trees if the distance to the nearest neighbor is below this threshold.
-
setResetCount
public void setResetCount(int value)
(default is 20).
-
getResetCount
public int getResetCount()
(default is 20).
-
setRootSampleInterval
public void setRootSampleInterval(int value)
(default is 25).
-
getRootSampleInterval
public int getRootSampleInterval()
(default is 25).
-
setNodesPerCell
public void setNodesPerCell(double value)
(default is 10).
-
getNodesPerCell
public double getNodesPerCell()
(default is 10).
-
setNearNodeSelection
public void setNearNodeSelection(SBLOptions.NearNodeSelection value)
(default is NearestNode).
-
getNearNodeSelection
public SBLOptions.NearNodeSelection getNearNodeSelection()
(default is NearestNode).
-
setTreeSelection
public void setTreeSelection(SBLOptions.TreeSelection value)
(default is UniformTree).
-
getTreeSelection
public SBLOptions.TreeSelection getTreeSelection()
(default is UniformTree).
-
setConnectAt
public void setConnectAt(SBLOptions.ConnectFrequency value)
(default is ConnectAlways).
-
getConnectAt
public SBLOptions.ConnectFrequency getConnectAt()
(default is ConnectAlways).
-
-