Loading...
Searching...
No Matches
QRRTStarImpl.cpp
50ompl::multilevel::QRRTStarImpl::QRRTStarImpl(const base::SpaceInformationPtr &si, BundleSpace *parent_)
54 Planner::declareParam<double>("useKNearest_", this, &ompl::multilevel::QRRTStarImpl::setKNearest,
138 ompl::base::Cost line_cost = getOptimizationObjectivePtr()->motionCost(q_near->state, q_new->state);
139 ompl::base::Cost new_cost = getOptimizationObjectivePtr()->combineCosts(q_near->cost, line_cost);
265 q->children.at(i)->cost = getOptimizationObjectivePtr()->combineCosts(q->cost, q->children.at(i)->lineCost);
291 std::static_pointer_cast<geometric::PathGeometric>(solutionPath_)->append(intermediate_node->state);
304void ompl::multilevel::QRRTStarImpl::getNearestNeighbors(Configuration *x, std::vector<Configuration *> &nearest)
328 std::pow(2 * (1.0 + 1.0 / d_) * (getBundle()->getSpaceMeasure() / unitNBallMeasure(d_)), 1.0 / d_);
360 OMPL_DEBUG("Tree (level %d) has %d/%d vertices/edges", getLevel(), motions.size(), motions.size() - 1);
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Definition Cost.h:48
unsigned int addStartVertex(const PlannerDataVertex &v)
Adds the given vertex to the graph data, and marks it as a start vertex. The vertex index is returned...
Definition PlannerData.cpp:405
unsigned int addGoalVertex(const PlannerDataVertex &v)
Adds the given vertex to the graph data, and marks it as a start vertex. The vertex index is returned...
Definition PlannerData.cpp:414
virtual bool addEdge(unsigned int v1, unsigned int v2, const PlannerDataEdge &edge=PlannerDataEdge(), Cost weight=Cost(1.0))
Adds a directed edge between the given vertex indexes. An optional edge structure and weight can be s...
Definition PlannerData.cpp:424
virtual void clear()
Clear all internal datastructures. Planner settings are not affected. Subsequent calls to solve() wil...
Definition Planner.cpp:118
virtual void setup()
Perform extra configuration steps, if needed. This call will also issue a call to ompl::base::SpaceIn...
Definition Planner.cpp:92
A configuration in Bundle-space.
Definition BundleSpaceGraph.h:96
base::Cost lineCost
same as rrt*, connection cost with parent {qrrt*}
Definition BundleSpaceGraph.h:131
std::vector< Configuration * > children
The set of motions descending from the current motion {qrrt*}.
Definition BundleSpaceGraph.h:134
virtual Vertex addConfiguration(Configuration *q)
Add configuration to graph. Return its vertex in boost graph.
Definition BundleSpaceGraph.cpp:355
RoadmapNeighborsPtr nearestDatastructure_
Nearest neighbor structure for Bundle space configurations.
Definition BundleSpaceGraph.h:386
Configuration * steerTowards_Range(const Configuration *from, Configuration *to)
Steer system at Configuration *from to Configuration *to, stopping if maxdistance is reached.
Definition BundleSpaceGraph.cpp:438
std::vector< Configuration * > goalConfigurations_
List of configurations that satisfy the goal condition.
Definition BundleSpaceGraph.h:433
virtual void init()
Initialization methods for the first iteration (adding start configuration and doing sanity checks).
Definition BundleSpaceGraph.cpp:300
virtual double distance(const Configuration *a, const Configuration *b) const
Distance between two configurations using the current metric.
Definition BundleSpaceGraph.cpp:411
virtual bool checkMotion(const Configuration *a, const Configuration *b) const
Check if we can move from configuration a to configuration b using the current metric.
Definition BundleSpaceGraph.cpp:416
bool findSection() override
Call algorithm to solve the find section problem.
Definition BundleSpaceGraph.cpp:169
const ompl::base::SpaceInformationPtr & getBundle() const
Get SpaceInformationPtr for Bundle.
Definition BundleSpace.cpp:323
bool firstRun_
Variable to check if this bundle space planner has been run at.
Definition BundleSpace.h:265
virtual void grow() override
One iteration of RRT with adjusted sampling function.
Definition QRRTStarImpl.cpp:80
void log(const char *file, int line, LogLevel level, const char *m,...)
Root level logging function. This should not be invoked directly, but rather used via a logging macro...
Definition Console.cpp:120
double unitNBallMeasure(unsigned int N)
The Lebesgue measure (i.e., "volume") of an n-dimensional ball with a unit radius.
Definition GeometricEquations.cpp:55