Conscience Core
CommandUpdateWheelsPower.h
Go to the documentation of this file.
1 #ifndef ConscienceEnvironmentInteractionCommandUpdateWheelsPower_h
2 #define ConscienceEnvironmentInteractionCommandUpdateWheelsPower_h
3 
4 #include "./Command.h"
6 
8 
9 
11 
12  public:
13  inline static const CommandTypeId COMMAND_ID = "UPDATE_WHEELS_POWER";
14 
16  ptr<CscEntityReflexion> entityReflexion,
17  const int wheelsToMove,
18  const vector<int> *wheelsId,
19  const vector<float> *wheelsPower);
20 
21  const int getWheelsToMove();
22  const vector<int> *getWheelsId();
23  const vector<float> *getWheelsPower();
24 
25  protected:
26  const CscCommandExecutionResult * doExecute(
27  CscEnvironmentSimulator &environmentSimulator) override;
29  return entityReflexion;
30  }
31 
32  private:
33  ptr<CscEntityReflexion> entityReflexion;
34  const int wheelsToMove;
35  const vector<int> *wheelsId;
36  const vector<float> *wheelsPower;
37  };
38 
39 COMMAND_REGISTER(CommandUpdateWheelsPower,
41  int,
42  const vector<int> *,
43  const vector<float> *)
44 }
45 
46 #endif
CSC_DLL_IMPORTEXPORT
#define CSC_DLL_IMPORTEXPORT
Definition: os.h:34
Command.h
conscience_core::bridging::commands::CommandTypeId
string CommandTypeId
Definition: Command.h:29
conscience_core::bridging::commands::CommandUpdateWheelsPower::getEntityReflexion
ptr< CscEntityReflexion > getEntityReflexion() const override
Definition: CommandUpdateWheelsPower.h:28
conscience_core::bridging::commands::CommandUpdateWheelsPower
Definition: CommandUpdateWheelsPower.h:10
conscience_core::bridging::commands
Definition: cartographyCommands.cpp:4
conscience_core::bridging::commands::CscCommand
Definition: Command.h:40
conscience_core::bridging::commands::result::CscCommandExecutionResult
Definition: CommandExecutionResult.h:44
CscEnvironmentSimulator
Definition: CscEnvironmentSimulator.h:31
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
ptr
std::shared_ptr< T > ptr
Definition: CscCommon.h:29