core.h 788 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __PLANNER_CORE_H__
  2. #define __PLANNER_CORE_H__
  3. #include "common/common.h"
  4. namespace planner {
  5. class Core
  6. {
  7. public:
  8. virtual ~Core(){}
  9. virtual common::NavState computeVelocityCommands(common::Point& sta_pose, common::Twist& cmd) = 0;
  10. virtual void setPath(common::Path& path) = 0;
  11. virtual void setConfig(common::Config& conf) = 0;
  12. virtual void reset() = 0;
  13. virtual void destroy() = 0;
  14. virtual common::Config getConfig() = 0;
  15. virtual common::Path getLocalPath() = 0;
  16. virtual common::Path getGlobalPath() = 0;
  17. virtual common::Path interPath(float a) = 0;
  18. protected:
  19. virtual common::NavState computeVelocity(common::Point& sta_pose, common::Twist& cmd) = 0;
  20. };
  21. }
  22. #endif