Parasol Planning Library (PPL)
LocalPlannerMethod.h
Go to the documentation of this file.
1 #ifndef PMPL_LOCAL_PLANNER_METHOD_H_
2 #define PMPL_LOCAL_PLANNER_METHOD_H_
3 
7 
33 
34  public:
35 
38 
41 
45 
46  LocalPlannerMethod(bool _saveIntermediates = false);
47 
49 
50  virtual ~LocalPlannerMethod() = default;
51 
55 
56  virtual void Print(std::ostream& _os) const override;
57 
61 
82  virtual bool IsConnected(const Cfg& _start, const Cfg& _end,
83  Cfg& _col, LPOutput* _lpOutput, double _posRes,
84  double _oriRes, bool _checkCollision = true, bool _savePath = false) = 0;
87 
90  bool IsConnected(const Cfg& _start, const Cfg& _end,
91  LPOutput* _lpOutput, double _posRes, double _oriRes,
92  bool _checkCollision = true, bool _savePath = false);
93 
96  virtual bool IsConnected(const GroupCfgType& _start, const GroupCfgType& _end,
97  GroupCfgType& _col, GroupLPOutput* _lpOutput, double _posRes,
98  double _oriRes, bool _checkCollision = true, bool _savePath = false,
99  const Formation& _formation = Formation());
100 
103  bool IsConnected(const GroupCfgType& _start, const GroupCfgType& _end,
104  GroupLPOutput* _lpOutput, double _posRes, double _oriRes,
105  bool _checkCollision = true, bool _savePath = false,
106  const Formation& _formation = Formation());
107 
124  std::vector<Cfg> BlindPath(const std::vector<Cfg>& _waypoints,
125  const double _posRes, const double _oriRes);
126 
128  std::vector<Cfg> BlindPath(const std::vector<Cfg>& _waypoints);
129 
135  std::vector<GroupCfgType> BlindPath(
136  const std::vector<GroupCfgType>& _waypoints, const double _posRes,
137  const double _oriRes, const Formation& _formation = Formation());
138 
140  std::vector<GroupCfgType> BlindPath(
141  const std::vector<GroupCfgType>& _waypoints,
142  const Formation& _formation = Formation());
143 
145 
146  protected:
147 
150 
151  bool m_saveIntermediates{false};
152 
154 };
155 
156 #endif
Definition: Cfg.h:38
Definition: GroupCfg.h:39
std::vector< size_t > Formation
Definition: GroupCfg.h:58
Definition: LocalPlannerMethod.h:32
LocalPlannerMethod(bool _saveIntermediates=false)
Definition: LocalPlannerMethod.cpp:10
virtual void Print(std::ostream &_os) const override
Definition: LocalPlannerMethod.cpp:25
virtual ~LocalPlannerMethod()=default
GroupCfgType::Formation Formation
Definition: LocalPlannerMethod.h:40
virtual bool IsConnected(const Cfg &_start, const Cfg &_end, Cfg &_col, LPOutput *_lpOutput, double _posRes, double _oriRes, bool _checkCollision=true, bool _savePath=false)=0
MPBaseObject::GroupCfgType GroupCfgType
Definition: LocalPlannerMethod.h:39
std::vector< Cfg > BlindPath(const std::vector< Cfg > &_waypoints, const double _posRes, const double _oriRes)
Definition: LocalPlannerMethod.cpp:69
bool m_saveIntermediates
Save the intermediates in the roadmap?
Definition: LocalPlannerMethod.h:151
Definition: MPBaseObject.h:46
Definition: XMLNode.h:27
Definition: GroupLPOutput.h:29
Definition: LPOutput.h:24