Parasol Planning Library (PPL)
UniformObstacleBasedSampler.h
Go to the documentation of this file.
1 #ifndef UNIFORM_OBSTACLE_BASED_SAMPLER_H_
2 #define UNIFORM_OBSTACLE_BASED_SAMPLER_H_
3 
4 #include "SamplerMethod.h"
5 
20 
21  public:
22 
25 
27 
31 
33 
34  virtual ~UniformObstacleBasedSampler() = default;
35 
36  UniformObstacleBasedSampler(string _vcLabel = "", string _dmLabel = "",
37  double _margin = 0, bool _useBoundary = false);
38 
42 
43  void Print(ostream& _os) const override;
44 
48 
56  virtual bool Sampler(Cfg& _cfg, const Boundary* const _boundary,
57  std::vector<Cfg>& _result, std::vector<Cfg>& _invalid) override;
58 
59  virtual bool Sampler(GroupCfgType& _cfg, const Boundary* const _boundary,
60  std::vector<GroupCfgType>& _result, std::vector<GroupCfgType>& _invalid) override;
61 
63 
64  private:
65 
68 
69  double m_margin; //The length of line segments
70  bool m_useBoundary; //Use bounding box as obstacle
71  string m_vcLabel, m_dmLabel; //Validity checker label, distance metric label
72 
74 };
75 
76 #endif
Definition: Boundary.h:30
Definition: Cfg.h:38
Definition: GroupCfg.h:39
Definition: SamplerMethod.h:70
Definition: UniformObstacleBasedSampler.h:19
virtual bool Sampler(Cfg &_cfg, const Boundary *const _boundary, std::vector< Cfg > &_result, std::vector< Cfg > &_invalid) override
Definition: UniformObstacleBasedSampler.cpp:44
UniformObstacleBasedSampler(XMLNode &_node)
Definition: UniformObstacleBasedSampler.cpp:17
void Print(ostream &_os) const override
Definition: UniformObstacleBasedSampler.cpp:32
MPBaseObject::GroupCfgType GroupCfgType
Definition: UniformObstacleBasedSampler.h:26
virtual ~UniformObstacleBasedSampler()=default
Definition: XMLNode.h:27