Sampler for robowflex::darts::StateSpace.  
 More...
#include <space.h>
Sampler for robowflex::darts::StateSpace. 
Definition at line 45 of file space.h.
 
◆ StateSampler()
      
        
          | StateSpace::StateSampler::StateSampler  | 
          ( | 
          const StateSpace *  | 
          space | ) | 
           | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | [in] | space | Space to sample. | 
  
   
StateSpace::StateSampler 
Definition at line 20 of file space.cpp.
   21   : ompl::base::RealVectorStateSampler(space), 
joints_(space->
joints_)
 
const std::vector< JointPtr > & joints_
Joints to sample from.
 
std::vector< JointPtr > joints_
Vector of all joints used in planning.
 
 
 
 
◆ sampleUniform()
  
  
      
        
          | void StateSpace::StateSampler::sampleUniform  | 
          ( | 
          ompl::base::State *  | 
          state | ) | 
           | 
         
       
   | 
  
override   | 
  
 
Definition at line 25 of file space.cpp.
   27     auto *as = state->as<StateType>();
 
   29     for (
const auto &joint : 
joints_)
 
   30         joint->sample(joint->getSpaceVars(as->data));
 
 
 
 
◆ sampleUniformNear()
  
  
      
        
          | void StateSpace::StateSampler::sampleUniformNear  | 
          ( | 
          ompl::base::State *  | 
          state,  | 
         
        
           | 
           | 
          const ompl::base::State *  | 
          near,  | 
         
        
           | 
           | 
          double  | 
          distance  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
override   | 
  
 
Definition at line 33 of file space.cpp.
   36     auto *as = state->as<StateType>();
 
   37     const auto *an = near->as<StateType>();
 
   39     for (
const auto &joint : 
joints_)
 
   40         joint->sampleNear(joint->getSpaceVars(as->data), joint->getSpaceVarsConst(an->data), 
distance);
 
double distance(const ompl::base::State *state1, const ompl::base::State *state2) const override
 
 
 
 
◆ joints_
Joints to sample from. 
Definition at line 63 of file space.h.
 
 
The documentation for this class was generated from the following files: