libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
Sem_ActionsManager.hpp
1 #ifndef SEM_ACTIONSMANAGER_H
2 #define SEM_ACTIONSMANAGER_H
3 
4 #include "Logging/Logger.h"
5 #include "database/semantics/Sem_Actions.hpp"
6 #include "database/semantics/Sem_PlanParts.hpp"
7 #include "database/semantics/Sem_AgentType.hpp"
8 
9 
10 namespace Sem {
11 
33 {
34  MOVE3D_STATIC_LOGGER;
35 public:
36  ActionsManager(Actions *actions, PlanParts *planparts);
37  ~ActionsManager();
38 
54  bool isActionPossible(ActionType act_type, HRI_AGENT_TYPE agent_type, std::string &report);
55 
63  std::vector<PlanningPart> getJointsForAction(ActionType act_type, HRI_AGENT_TYPE agent_type, bool is_hri);
64 
65 
66 
67  Actions *actions() const;
68  void setActions(Actions *actions);
69 
70  PlanParts *planParts() const;
71  void setPlanParts(PlanParts *planParts);
72 
73 private:
74  Actions *_actions;
75  PlanParts *_planParts;
76 };
77 
78 } // namespace Sem
79 
80 #endif // SEM_ACTIONSMANAGER_H
Definition: Sem_ActionsManager.hpp:32
Definition: Sem_PlanParts.hpp:90
This file implements macros to help with the logging, in a way similar to ROS, using log4cxx...
std::vector< PlanningPart > getJointsForAction(ActionType act_type, HRI_AGENT_TYPE agent_type, bool is_hri)
getJointsForAction uses Actions and PlanParts to retrieve set of joints to use.
Definition: Sem_ActionsManager.cpp:59
Definition: Sem_Actions.hpp:14
Definition: Sem_Actions.hpp:80
bool isActionPossible(ActionType act_type, HRI_AGENT_TYPE agent_type, std::string &report)
ActionsManager::isActionPossible.
Definition: Sem_ActionsManager.cpp:18