smp::planner_incremental< typeparams > Class Template Reference

Generic incremental sampling-based motion planner. More...

#include <base_incremental.h>

Inheritance diagram for smp::planner_incremental< typeparams >:
smp::planner< typeparams > smp::rrg< typeparams > smp::rrt< typeparams > smp::rrtstar< typeparams >

List of all members.

Public Member Functions

 planner_incremental (sampler_t &sampler_in, distance_evaluator_t &distance_evaluator_in, extender_t &extender_in, collision_checker_t &collision_checker_in, model_checker_t &model_checker_in)
 A constructor that initializes all components.
int initialize (state_t *initial_state_in=0)
 A function call to initialize the incremental sampling-based planner.
vertex_tget_root_vertex ()
 Returns a pointer to the root vertex.
virtual int iteration ()=0
 A virtual call to initiate one iteration of the algorithm.

Public Attributes

vertex_troot_vertex
 A pointer to the root vertex of the incremental algorithm.

Detailed Description

template<class typeparams>
class smp::planner_incremental< typeparams >

Generic incremental sampling-based motion planner.

The generic incremental sampling-based motion planner inherits from the generic sampling-based motion planner and provides the virtual iteration() function, which is overloaded by the inheriting incremental sampling-based algorithm.


Constructor & Destructor Documentation

template<class typeparams >
smp::planner_incremental< typeparams >::planner_incremental ( sampler_t sampler_in,
distance_evaluator_t distance_evaluator_in,
extender_t extender_in,
collision_checker_t collision_checker_in,
model_checker_t model_checker_in 
)

A constructor that initializes all components.

This is the recommended constructor that initializes all components all at once.

Parameters:
sampler_inNew sampler component.
distance_evaluator_inNew distance evaluator component.
extender_inNew extension function component.
collision_checker_inNew collision checker component.
model_checker_inNew model checker component.

Member Function Documentation

template<class typeparams >
vertex_t* smp::planner_incremental< typeparams >::get_root_vertex ( ) [inline]

Returns a pointer to the root vertex.

An incremental planner might (optionally) have a root vertex, a pointer to which can be obtained using this function.

Returns:
Returns a pointer to the root vertex, and NULL if the root vertex is not set.
template<class typeparams >
int smp::planner_incremental< typeparams >::initialize ( state_t *  initial_state_in = 0)

A function call to initialize the incremental sampling-based planner.

Deletes the current graph stored by the planner. If the initial_state_in argument is non-NULL, creates a new vertex that with the state stored in the initial_state_in argument.

Parameters:
initial_state_inThe state that the root_vertex will include. If this argument is NULL, then no root vertex is created (But, the graph stored in the planner is deleted.
Returns:
Returns 1 for success, and a non-positive number for failure.

Reimplemented in smp::rrtstar< typeparams >.

template<class typeparams >
virtual int smp::planner_incremental< typeparams >::iteration ( ) [pure virtual]

A virtual call to initiate one iteration of the algorithm.

Runs one iteration of the inheriting incremental sampling-based algorithm, which overloads this function.

Returns:
Returns 1 for success, and a non-positive number for failure.

Implemented in smp::rrg< typeparams >, smp::rrt< typeparams >, and smp::rrtstar< typeparams >.


Member Data Documentation

template<class typeparams >
vertex_t* smp::planner_incremental< typeparams >::root_vertex

A pointer to the root vertex of the incremental algorithm.

Any incremental algorithm is assumed to generate a graph of trajectories of a dynamical system such that each trajectory starts from a given initial condition. This variable is a pointer to the vertex that stores the initial state.


The documentation for this class was generated from the following file: