Uniform distribution of an cuboid space.  
 More...
#include <RobotComponents/components/MotionPlanning/util/Samplers.h>
|  | 
| using | BoundsType = std::pair< RealType, RealType > | 
|  | Type to pass the bounds of a dimension.  More... 
 | 
|  | 
|  | 
| template<class T  = std::size_t> | 
| T | getDimensionality () const | 
|  | Returns the cuboid's dimensionality.  More... 
 | 
|  | 
| RealType | getVolume () const | 
|  | Returns the cuboid's volume.  More... 
 | 
|  | 
| template<class Iterator > | 
| bool | isInBounds (Iterator first) | 
|  | Returns whether the range [first, first + dimensionality) is a point contained by the cuboid.  More... 
 | 
|  | 
| template<class Iterator , class Generator > | 
| void | operator() (Iterator first, Generator &gen) | 
|  | Fills the range [first, first + dimensionality) with an uniform sample of the cuboid.  More... 
 | 
|  | 
| template<class Iterator > | 
|  | UniformCuboidDistribution (Iterator boundsFirst, Iterator boundsLast) | 
|  | Constructs a cuboid distribution with the bounds [boundsFirst, boundsLast).  More... 
 | 
|  | 
|  | 
| std::vector< std::uniform_real_distribution< RealType > > | spaceDist | 
|  | Distributions for the dimensions of the cuboid.  More... 
 | 
|  | 
| RealType | volume | 
|  | The cuboid's volume.  More... 
 | 
|  | 
template<class RealType>
class armarx::UniformCuboidDistribution< RealType >
Uniform distribution of an cuboid space. 
Definition at line 223 of file Samplers.h.
◆ BoundsType
Type to pass the bounds of a dimension. 
Definition at line 229 of file Samplers.h.
 
 
◆ UniformCuboidDistribution()
Constructs a cuboid distribution with the bounds [boundsFirst, boundsLast). 
bounds.first is used as lower and bounds.second as upper bound. 
- Parameters
- 
  
    | boundsFirst | The bounds for the first dimension. |  | boundsLast | One past the bounds for the last dimension. |  
 
Definition at line 238 of file Samplers.h.
 
 
◆ getDimensionality()
  
  | 
        
          | T getDimensionality | ( |  | ) | const |  | inline | 
 
Returns the cuboid's dimensionality. 
- Returns
- The cuboid's dimensionality. 
Definition at line 307 of file Samplers.h.
 
 
◆ getVolume()
  
  | 
        
          | RealType getVolume | ( |  | ) | const |  | inline | 
 
Returns the cuboid's volume. 
- Returns
- The cuboid's volume. 
Definition at line 296 of file Samplers.h.
 
 
◆ isInBounds()
  
  | 
        
          | bool isInBounds | ( | Iterator | first | ) |  |  | inline | 
 
Returns whether the range [first, first + dimensionality) is a point contained by the cuboid. 
[first, first + dimensionality) has to be a valid range. If not the behavior is undefined. 
- Parameters
- 
  
    | first | The first value of the point. |  
 
- Returns
- Whether the point is contained by the cuboid. 
Definition at line 278 of file Samplers.h.
 
 
◆ operator()()
  
  | 
        
          | void operator() | ( | Iterator | first, |  
          |  |  | Generator & | gen |  
          |  | ) |  |  |  | inline | 
 
Fills the range [first, first + dimensionality) with an uniform sample of the cuboid. 
[first, first + dimensionality) has to be a valid range. If not the behavior is undefined. 
- Parameters
- 
  
    | first | The first value to fill. |  | gen | The used generator. |  
 
Definition at line 262 of file Samplers.h.
 
 
◆ spaceDist
  
  | 
        
          | std::vector<std::uniform_real_distribution<RealType> > spaceDist |  | protected | 
 
Distributions for the dimensions of the cuboid. 
Definition at line 320 of file Samplers.h.
 
 
◆ volume
The documentation for this class was generated from the following file:
- RobotComponents/components/MotionPlanning/util/Samplers.h