Conscience Core
CommandStopFollowObject.h
Go to the documentation of this file.
1 #ifndef CommandStopFollowObject_h
2 #define CommandStopFollowObject_h
3 
4 #include "Command.h"
7 
9 
11 public:
13 
14  inline static const CommandTypeId COMMAND_ID = "STOP_FOLLOW_TRACKED_OBJECT";
15 
18  : entityToStop(entityToStop) {}
19 
21 
22  string toString() const {
23  return "CommandStopFollowObjectParams: entityToStop=" + boolToString(entityToStop != nullptr);
24  }
25 };
26 
28  string message;
29  bool success;
30 };
31 
33 public:
34  inline static const CommandTypeId COMMAND_ID = "STOP_FOLLOW_TRACKED_OBJECT";
35 
37 
38 protected:
39  const CscCommandExecutionResultObject<CommandStopFollowObjectResult> *doExecute(CscEnvironmentSimulator &environmentSimulator) override;
40  ptr<CscEntityReflexion> getEntityReflexion() const override;
41 
42 private:
43  ptr<CscEntityReflexion> entityToStop;
44 };
45 
49 
50 }
51 
52 #endif /* CommandStopFollowObject_h */
conscience_core::bridging::commands::CommandStopFollowObjectParams::~CommandStopFollowObjectParams
~CommandStopFollowObjectParams()
Definition: CommandStopFollowObject.h:20
CSC_DLL_IMPORTEXPORT
#define CSC_DLL_IMPORTEXPORT
Definition: os.h:31
conscience_core::bridging::commands::CommandStopFollowObjectResult
Definition: CommandStopFollowObject.h:27
Command.h
conscience_core::bridging::commands::CommandTypeId
string CommandTypeId
Definition: Command.h:29
conscience_utils::boolToString
string boolToString(bool value)
Definition: conscience_util.cpp:99
conscience_core::bridging::commands
Definition: cartographyCommands.cpp:4
COMMAND_RESULT_JSON_SERIALIZER
#define COMMAND_RESULT_JSON_SERIALIZER(TClass,...)
Definition: CommandExecutionResult.h:10
conscience_core::bridging::commands::CscCommand
Definition: Command.h:40
conscience_core::bridging::commands::CommandStopFollowObject
Definition: CommandStopFollowObject.h:32
conscience_core::bridging::commands::CommandStopFollowObjectResult::message
string message
Definition: CommandStopFollowObject.h:28
conscience_core::bridging::commands::CommandStopFollowObjectParams::toString
string toString() const
Definition: CommandStopFollowObject.h:22
conscience_core::bridging::commands::CommandStopFollowObjectParams::entityToStop
ptr< CscEntityReflexion > entityToStop
Definition: CommandStopFollowObject.h:12
CommandResultSpec.h
conscience_core::bridging::commands::CommandStopFollowObjectParams::CommandStopFollowObjectParams
CommandStopFollowObjectParams(ptr< CscEntityReflexion > entityToStop)
Definition: CommandStopFollowObject.h:17
COMMAND_TYPE_BUILDER
#define COMMAND_TYPE_BUILDER(PREFIX, COMMAND_REGISTER_className,...)
Definition: CscCommandAutoParse.h:505
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)
conscience_core::bridging::commands::CommandStopFollowObjectResult::success
bool success
Definition: CommandStopFollowObject.h:29
CscCommandAutoParse.h
conscience_core::bridging::commands::CommandStopFollowObjectParams
Definition: CommandStopFollowObject.h:10
conscience_core::bridging::commands::result::CscCommandExecutionResultObject
Definition: CommandExecutionResult.h:93
ptr
std::shared_ptr< T > ptr
Definition: CscCommon.h:29