ompl::control::KPIECE1::CloseSamples Struct Reference

Bounded set of good samples. More...

#include <KPIECE1.h>

List of all members.

Public Member Functions

bool canSample (void) const
 Return true if samples can be selected from this set.
 CloseSamples (unsigned int size)
 Construct an object to maintain a set of at most size samples.
bool consider (Grid::Cell *cell, Motion *motion, double distance)
 Evaluate whether motion motion, part of cell cell is good enough to be part of the set of samples closest to the goal, given its distance to the goal is distance. If so, add it to the set and return true. Otherwise, return false.
bool selectMotion (Motion *&smotion, Grid::Cell *&scell)
 Select the top sample (closest to the goal) and update its position in the set subsequently (pretend the distance to the goal is larger). Returns true if the sample selection is successful.

Public Attributes

unsigned int maxSize
 Maximum number of samples to maintain.
std::set< CloseSamplesamples
 The maintained samples.

Detailed Description

Bounded set of good samples.

Definition at line 259 of file control/planners/kpiece/KPIECE1.h.


Constructor & Destructor Documentation

ompl::control::KPIECE1::CloseSamples::CloseSamples ( unsigned int  size  )  [inline]

Construct an object to maintain a set of at most size samples.

Definition at line 262 of file control/planners/kpiece/KPIECE1.h.


Member Function Documentation

bool ompl::control::KPIECE1::CloseSamples::canSample ( void   )  const [inline]

Return true if samples can be selected from this set.

Definition at line 281 of file control/planners/kpiece/KPIECE1.h.

bool ompl::control::KPIECE1::CloseSamples::consider ( Grid::Cell cell,
Motion motion,
double  distance 
)

Evaluate whether motion motion, part of cell cell is good enough to be part of the set of samples closest to the goal, given its distance to the goal is distance. If so, add it to the set and return true. Otherwise, return false.

bool ompl::control::KPIECE1::CloseSamples::selectMotion ( Motion *&  smotion,
Grid::Cell *&  scell 
)

Select the top sample (closest to the goal) and update its position in the set subsequently (pretend the distance to the goal is larger). Returns true if the sample selection is successful.


Member Data Documentation

Maximum number of samples to maintain.

Definition at line 287 of file control/planners/kpiece/KPIECE1.h.

The maintained samples.

Definition at line 290 of file control/planners/kpiece/KPIECE1.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


ompl
Author(s): Ioan Sucan/isucan@rice.edu, Mark Moll/mmoll@rice.edu, Lydia Kavraki/kavraki@rice.edu
autogenerated on Fri Jan 11 11:37:48 2013