Parasol Planning Library (PPL)
DynamicObstacle.h
Go to the documentation of this file.
1 #ifndef PMPL_DYNAMIC_OBSTACLE_H_
2 #define PMPL_DYNAMIC_OBSTACLE_H_
3 
4 #include <memory>
5 #include <vector>
6 
8 #include "Utilities/XMLNode.h"
9 
10 class MPProblem;
11 class Robot;
12 
13 
23 
24  public:
25 
28 
32  DynamicObstacle(Robot* const _robot, std::vector<Cfg> _path);
33 
37  DynamicObstacle(XMLNode& _node, MPProblem* const _problem);
38 
40 
44 
47  Robot* GetRobot() const noexcept;
48 
51  const std::vector<Cfg> GetPath() const noexcept;
52 
55  const size_t GetStartTime() const noexcept;
56 
58  void SetStartTime(size_t _start);
59 
61 
62  private:
63 
66 
67  Robot* m_robot{nullptr};
68  std::vector<Cfg> m_path;
69  size_t m_startTime{0};
70 
72 
73 };
74 
75 #endif
Definition: Cfg.h:38
Definition: DynamicObstacle.h:22
DynamicObstacle(Robot *const _robot, std::vector< Cfg > _path)
Definition: DynamicObstacle.cpp:12
const std::vector< Cfg > GetPath() const noexcept
Definition: DynamicObstacle.cpp:45
const size_t GetStartTime() const noexcept
Definition: DynamicObstacle.cpp:51
Robot * GetRobot() const noexcept
Definition: DynamicObstacle.cpp:38
void SetStartTime(size_t _start)
Set the obstacle start time.
Definition: DynamicObstacle.cpp:57
Definition: MPProblem.h:34
Definition: Robot.h:31
Definition: XMLNode.h:27