Conscience Core
CommandMemberToObjectFromMember.h
Go to the documentation of this file.
1 #ifndef ConscienceEnvironmentInteractionCommandMemberToObjectFromMember_h
2 #define ConscienceEnvironmentInteractionCommandMemberToObjectFromMember_h
3 
4 #include "./Command.h"
6 
7 using std::string;
8 using std::vector;
9 
11 
12 
14 
15  public:
16  inline static const CommandTypeId COMMAND_ID = "MEMBER_TO_OBJECT_FROM_MEMBER";
17 
19  ptr<CscEntityReflexion> entityReflexion,
20 
21  int knowledgeId,
22  const CscState *currentState,
23  string membreToMove,
24  string membreRelative,
25  string targetEntityObjectName,
26  float distanceFromTargetX,
27  float distanceFromTargetY,
28  float distanceFromTargetZ,
29  float targetEulerX,
30  float targetEulerY,
31  float targetEulerZ,
32  float processAt);
33 
35  delete currentState;
36  }
37 
38  int getKnowledgeId();
39  const CscState *getCurrentState();
40  string getMembreToMove();
41  string getMembreRelative();
42  string getTargetEntityObjectName();
43  float getDistanceFromTargetX();
44  float getDistanceFromTargetY();
45  float getDistanceFromTargetZ();
46  float getTargetEulerX();
47  float getTargetEulerY();
48  float getTargetEulerZ();
49 
50  protected:
51  const CscCommandExecutionResultSequence * doExecute(
52  CscEnvironmentSimulator &environmentSimulator) override;
54  return entityReflexion;
55  }
56  private:
57 
58  ptr<CscEntityReflexion> entityReflexion;
59 
60  const int knowledgeId;
61  const CscState *const currentState;
62  const string membreToMove;
63  const string membreRelative;
64  const string targetEntityObjectName;
65  const float distanceFromTargetX;
66  const float distanceFromTargetY;
67  const float distanceFromTargetZ;
68  const float targetEulerX;
69  const float targetEulerY;
70  const float targetEulerZ;
71  const float processAt;
72  };
73 
74 COMMAND_REGISTER(CommandMemberToObjectFromMember,
76  int,
77  const CscState *,
78  string,
79  string,
80  string,
81  float,
82  float,
83  float,
84  float,
85  float,
86  float,
87  float)
88 
89 }
90 
91 #endif
CSC_DLL_IMPORTEXPORT
#define CSC_DLL_IMPORTEXPORT
Definition: os.h:31
conscience_core::bridging::commands::CommandMemberToObjectFromMember::~CommandMemberToObjectFromMember
~CommandMemberToObjectFromMember()
Definition: CommandMemberToObjectFromMember.h:34
Command.h
conscience_core::bridging::commands::result::CscCommandExecutionResultSequence
Definition: CommandExecutionResultSequence.h:15
conscience_core::bridging::commands::CommandTypeId
string CommandTypeId
Definition: Command.h:29
conscience_core::bridging::commands
Definition: cartographyCommands.cpp:4
conscience_core::bridging::commands::CommandMemberToObjectFromMember::getEntityReflexion
ptr< CscEntityReflexion > getEntityReflexion() const override
Definition: CommandMemberToObjectFromMember.h:53
CscState
Definition: CscState.h:24
conscience_core::bridging::commands::CscCommand
Definition: Command.h:40
CscEnvironmentSimulator
Definition: CscEnvironmentSimulator.h:35
conscience_core::bridging::commands::COMMAND_REGISTER
COMMAND_REGISTER(CommandFollowKinematicTrajectory, ptr< CscEntityReflexion >, int, const CscState *, string, string, string, string, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)
CscCommandAutoParse.h
conscience_core::bridging::commands::CommandMemberToObjectFromMember
Definition: CommandMemberToObjectFromMember.h:13
ptr
std::shared_ptr< T > ptr
Definition: CscCommon.h:29