1 #ifndef OBSTACLE_BASED_SAMPLER_H_
2 #define OBSTACLE_BASED_SAMPLER_H_
30 int _free = 1,
int _coll = 0,
double _step = 0,
31 bool _useBBX =
true,
string _pointSelection =
"cspace");
41 virtual void Print(ostream& _os)
const override;
64 std::vector<Cfg>& _result, std::vector<Cfg>& _collision);
73 std::vector<GroupCfgType>& _result, std::vector<GroupCfgType>& _invalid);
82 std::vector<GroupCfgType>& _result, std::vector<GroupCfgType>& _collision);
94 std::vector<Cfg>& _result, std::vector<Cfg>& _collision);
106 std::vector<GroupCfgType>& _result, std::vector<GroupCfgType>& _collision);
119 std::vector<GroupCfgType>& _result, std::vector<GroupCfgType>& _collision);
190 string m_vcLabel, m_dmLabel;
191 int m_nShellsFree, m_nShellsColl;
194 string m_pointSelection;
Definition: Boundary.h:30
Definition: GroupCfg.h:39
Definition: MultiBody.h:65
Obstacle-based sampling.
Definition: ObstacleBasedSampler.h:15
std::map< Robot *, const Boundary * > BoundaryMap
Definition: ObstacleBasedSampler.h:23
virtual bool Sampler(Cfg &_cfg, const Boundary *const _boundary, std::vector< Cfg > &_result, std::vector< Cfg > &_collision)
Definition: ObstacleBasedSampler.cpp:68
void GenerateShells(const Boundary *const _boundary, Cfg &_cFree, Cfg &_cColl, Cfg &_incr, std::vector< Cfg > &_result, std::vector< Cfg > &_collision)
Definition: ObstacleBasedSampler.cpp:372
virtual Cfg ChooseASample(Cfg &_cfg)
Definition: ObstacleBasedSampler.cpp:585
Cfg ChooseASampleOtherMethods()
Definition: ObstacleBasedSampler.cpp:611
Cfg ChooseCenterOfMass(MultiBody *_mBody)
Definition: ObstacleBasedSampler.cpp:483
Cfg ChooseRandomVertex(MultiBody *_mBody)
Definition: ObstacleBasedSampler.cpp:494
Cfg ChooseRandomTriangle(MultiBody *_mBody)
Definition: ObstacleBasedSampler.cpp:547
Vector3d ChoosePointOnTriangle(Vector3d _p, Vector3d _q, Vector3d _r)
Definition: ObstacleBasedSampler.cpp:504
Cfg ChooseExtremeVertex(MultiBody *_mBody)
Definition: ObstacleBasedSampler.cpp:565
Cfg ChooseRandomWeightedTriangle(MultiBody *_mBody)
Definition: ObstacleBasedSampler.cpp:521
virtual void Print(ostream &_os) const override
Definition: ObstacleBasedSampler.cpp:52
bool GroupInBounds(GroupCfgType &_groupCfg, const BoundaryMap &_boundaryMap)
Definition: ObstacleBasedSampler.cpp:341
Cfg GetCfgWithParams(const Vector3d &_v)
Definition: ObstacleBasedSampler.cpp:666
ObstacleBasedSampler(string _vcLabel="", string _dmLabel="", int _free=1, int _coll=0, double _step=0, bool _useBBX=true, string _pointSelection="cspace")
Definition: ObstacleBasedSampler.cpp:8
virtual ~ObstacleBasedSampler()=default
MPBaseObject::GroupCfgType GroupCfgType
Definition: ObstacleBasedSampler.h:22
Definition: SamplerMethod.h:70